Custom NPC

Discussion in 'Plugin Development' started by NoLiver92, Dec 24, 2012.

  1. Offline

    NoLiver92

    My BukkitDev Profile
    My Plugins (2)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I want to be able to spawn an NPC that looks like a player. i want to do this in code and not using a library or any other plugin. how would i go about doing this. (some code to start would be helpfull)
     
  2. Offline

    Jogy34

    My BukkitDev Profile
    My Plugins (10)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I would suggest looking at the code from a library that already does this to figure out what you have to do
     
  3. Offline

    MP5K

    My BukkitDev Profile
    My Plugins (0)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  4. Offline

    NoLiver92

    My BukkitDev Profile
    My Plugins (2)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    did you actually read my post?

    i stated in it :
    Jogy34 i have tried to look at one but its very difficult to debug someone else's code
     
  5. Offline

    EnvisionRed

    My BukkitDev Profile
    My Plugins (5)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  6. Offline

    NoLiver92

    My BukkitDev Profile
    My Plugins (2)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  7. Offline

    EnvisionRed

    My BukkitDev Profile
    My Plugins (5)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    If you've already got craftbukkit.jar as a source, you can import them.
     
  8. Offline

    MP5K

    My BukkitDev Profile
    My Plugins (0)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Hello NoLiver92,
    seems like i didn't read carefully enough. You could take a look at the source of one or two plugins with allows to spawn npcs to know how they do.
     
  9. Offline

    NoLiver92

    My BukkitDev Profile
    My Plugins (2)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    no i havent, so i have to add the server file into the build path then how would i access the data?
     
  10. Offline

    fireblast709

    My BukkitDev Profile
    My Plugins (3)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    with imports, the same as you do with bukkit.
     

Share This Page