[FUN] Citizens v2.0.11 - Human NPCs for Bukkit [1.7.2]

Discussion in 'Archived: Plugin Releases' started by Citizens, Mar 5, 2011.

  1. Offline

    Citizens

    Citizens - Human NPCs for Bukkit
    Version: 2.0.11
    Authors: @fullwall and @aPunch
    Source: Citizens on GitHub

    Citizens is now on BukkitDev

    This thread will no longer be updated. We encourage you to use our page on BukkitDev. You can find information, links to our wiki and website, and the download page there.

    Showing Your Support

    We work hard to maintain Citizens. We've been working on Citizens2 around the clock on new and exciting features. A little motivation never hurts, so feel free to donate to us - fullwall and aPunch.

    If you can't donate, we appreciate a "hello" every now and then. Stop by the IRC channel #citizens on irc.esper.net to discuss Citizens and give thanks!
     
  2. Offline

    Gnomeo76

    Just got bug, told me to report it. This is with the newest version
    Code:
    02:33 PM [INFO] [Citizens] Creating new config file at gnomeo76.yml. 
    02:34 PM [SEVERE] java.lang.NoClassDefFoundError: net/minecraft/server/Packet17EntityLocationAction 
    02:34 PM [SEVERE] at net.citizensnpcs.resources.npclib.PathNPC.<init>(PathNPC.java:31) 
    02:34 PM [SEVERE] at net.citizensnpcs.resources.npclib.PathNPC.<init>(PathNPC.java:51) 
    02:34 PM [SEVERE] at net.citizensnpcs.resources.npclib.CraftNPC.<init>(CraftNPC.java:16) 
    02:34 PM [SEVERE] at net.citizensnpcs.resources.npclib.NPCSpawner.spawnNPC(NPCSpawner.java:75) 
    02:34 PM [SEVERE] at net.citizensnpcs.resources.npclib.NPCManager.register(NPCManager.java:159) 
    02:34 PM [SEVERE] at net.citizensnpcs.resources.npclib.NPCManager.register(NPCManager.java:189) 
    02:34 PM [SEVERE] at net.citizensnpcs.commands.BasicCommands.create(BasicCommands.java:226) 
    02:34 PM [SEVERE] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    02:34 PM [SEVERE] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 
    02:34 PM [SEVERE] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 
    02:34 PM [SEVERE] at java.lang.reflect.Method.invoke(Unknown Source) 
    02:34 PM [SEVERE] at net.citizensnpcs.resources.sk89q.CommandsManager.executeMethod(CommandsManager.java:530) 
    02:34 PM [SEVERE] at net.citizensnpcs.resources.sk89q.CommandsManager.execute(CommandsManager.java:407) 
    02:34 PM [SEVERE] at net.citizensnpcs.Citizens.onCommand(Citizens.java:200) 
    02:34 PM [SEVERE] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40) 
    02:34 PM [SEVERE] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:163) 
    02:34 PM [SEVERE] at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:364) 
    02:34 PM [SEVERE] at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:756) 
    02:34 PM [SEVERE] at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:721) 
    02:34 PM [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:714) 
    02:34 PM [SEVERE] at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33) 
    02:34 PM [SEVERE] at net.minecraft.server.NetworkManager.b(NetworkManager.java:226) 
    02:34 PM [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92) 
    02:34 PM [SEVERE] at net.minecraft.server.NetworkListenThread.a(SourceFile:108) 
    02:34 PM [SEVERE] at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:516) 
    02:34 PM [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:414) 
    02:34 PM [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:457) 
    02:34 PM [SEVERE] Caused by: java.lang.ClassNotFoundException: net.minecraft.server.Packet17EntityLocationAction 
    02:34 PM [SEVERE] at java.net.URLClassLoader$1.run(Unknown Source) 
    02:34 PM [SEVERE] at java.security.AccessController.doPrivileged(Native Method) 
    02:34 PM [SEVERE] at java.net.URLClassLoader.findClass(Unknown Source) 
    02:34 PM [SEVERE] at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36) 
    02:34 PM [SEVERE] at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24) 
    02:34 PM [SEVERE] at java.lang.ClassLoader.loadClass(Unknown Source) 
    02:34 PM [SEVERE] ... 27 more 
    
    I also have a suggestion, when you create an npc, it will save the current skin if its name to that npc, so that you can then change the name of it, or the player can change their skin without the npc's changing.
     
  3. Wouldn't it be possible to make Citizens download the skin for the char you make and save it with the npcs name then (with an on/off swith in the config) choose if it will update any changes to the skins or if once downloaded they will never be changed?

    This way you could download a custom skin yourself and switch the skin of any npc that's been created.

    EDIT: This part of the wiki prob answered my question. :(
     
  4. Offline

    Pokejml

    D: For some reason my Evil NPC's won't attack the players, unless it's not supposed to. Also you can't tame them!!
     
  5. Offline

    Phibedy

  6. Le's say you want a stationary guard (bouncer) that attacks monsters that get within 20 blocks.

    Create an npc where you stand:
    /npc create

    Make it a guard:
    /toggle guard

    Make it a bouncer:
    /guard bouncer

    Set the radius which the guard attacks mobs within:
    /guard radius 20

    Set guard to aggro:
    /guard aggro

    Set guard to attack skeletons:
    /guard setflag -m skeleton

    Set guard to attack zombies:
    /guard setflag -m zombie

    Do the same for every monster you want him to attack.

    Equip guard:
    /npc equip
    Now rightclick on the guard while holding the weapon/armour you want to equip him with.

    Stop equip:
    /npc equip
     
  7. I'd love it if there was any way to configure a default character that only needed one command to be summoned.

    For instance. If I want a bouncer that has aggro against all monsters but no animals or players and it would be equiped with full armor and weapon, then I'd love if I only needed to use something like "/npc guard Sven" to create this npc with all flags and equipment already done and with the name "Sven".

    This is mostly so that the feature to be able to buy NPCs becomes easier. To have to teach everyone on a server all these commands is nothing that will work. So, is this something that's possible to do or at least something that will be possible to do?

    The Second thing I would love is a way to make bouncers stay put. Since arming them with bows actually works fine, they'd be awesome to use as guards on walls and stuff, ut right now they'd just run after the mobs.

    Well.. Just things I miss. I do thing this mod is awesome, it's just that I have my own ideas about a lot of things and seem to never really find anything that works as easy as I'd hoped. To make people earn money and spend it on buying guards that guard their houses would have been awesome.

    Cheers
     
  8. Offline

    Phibedy

    Thx for answer.
    Is it possible that special Npcs can be killt by an command? /npc kill [id]

    doesn´t work.
    Is it possible to remove npcs by command and respawn them with the same id after a delay?
     
  9. Offline

    denace

    My NPCs won't sell any kind of Piston. I use the latest version of citizens. I tried this:
    /trader sell 29:1 16
    /trader sell 29:1:1 16
    /trader sell 29:1:1:1 16
    /trader sell 33:1 26
    /trader sell 33:1:1 26
    /trader sell 33:1:1:1 26
    Nothing worked, customers only get the message: This Item isn't being sold here

    To sell other items work without any problems (colored wool etc).

    In version 1.0.9 it worked, but only with normal pistons (33)...
     
  10. Offline

    Pro457

    I did all of that and my guard npcs dont even do anything. Any suggestions? It says all of the stuff like "The guard is now aggressive." but it won't attack any of the flags. Please help
     
  11. Offline

    DaEgo

    use creative and add urself a pistion and hold mouse over it and u will see the correct ID
    its like 29:7 and 33:7 or something
     
  12. Are you using the Recommended Build: 1.0.1-R1?
     
  13. Offline

    juicycool

    hello! i use Rocnmmanded Build 101-R1 and use 1559 bukkit
    and i type permission node to user :
    citizens.blacksmith.use.repair
    and didnt work :O node was changed?
    thanks!

     
  14. Offline

    zupalex

    I finally figured out why you were using damage values for the pistons when you was talking about it last week !
    For information, it's the same for the potions. The damage value given by the wiki doesn't correspond to the one you'll have to use with citizens.
     
  15. Offline

    JollyGiant13

    Everytime i try /toggle blacksmith
    I Always get *Invalid Npc type.*
    Dose Anyone know how to fix that?
     
  16. Offline

    Rogach

    A suggestion:
    make it so, that npcs can be ''owned'' by an item. So whoever holds the item controls the npcs. That way you can make magical armies.
     
  17. Offline

    bootscreen

    which citizens version do you use? and have you the blacksmith.jar in plugins/citizens/types ?
     
  18. Offline

    Yugon

    Hey,
    I have a problem with the traders. Everything works, but the selling of items. You can buy without paying any money. My server runs with 1.0.1-R1, Citizens 1.1.3 and IConomy 6.0.8b.

    Thanx Yugon
     
  19. Offline

    bootscreen

    have you enable the usage of economy in the config?

    if its enabled post the"stock" line of an trader from the npc-profile.yml
     
  20. Offline

    Pro457

    Yes and what does this mean
    Happens when I try and create a guard or npc


    2012-01-03 15:53:54 [WARNING] Task of 'Citizens' generated an exception
    java.lang.NoSuchMethodError: net.citizensnpcs.resources.npclib.PathNPC.getPlayer()Lorg/bukkit/craftbukkit/entity/CraftPlayer;
    at net.citizensnpcs.resources.npclib.PathNPC.isHoldingBow(PathNPC.java:171)
    at net.citizensnpcs.resources.npclib.PathNPC.isWithinAttackRange(PathNPC.java:181)
    at net.citizensnpcs.resources.npclib.PathNPC.updateTarget(PathNPC.java:325)
    at net.citizensnpcs.resources.npclib.PathNPC.moveTick(PathNPC.java:206)
    at net.citizensnpcs.resources.npclib.HumanNPC.doTick(HumanNPC.java:84)
    at net.citizensnpcs.TickTask.run(TickTask.java:31)
    at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:487)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:419)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
     
  21. Offline

    Pro457

    What does this mean and how do I fix it???

    2012-01-03 15:53:54 [WARNING] Task of 'Citizens' generated an exception
    java.lang.NoSuchMethodError: net.citizensnpcs.resources.npclib.PathNPC.getPlayer()Lorg/bukkit/craftbukkit/entity/CraftPlayer;
    at net.citizensnpcs.resources.npclib.PathNPC.isHoldingBow(PathNPC.java:171)
    at net.citizensnpcs.resources.npclib.PathNPC.isWithinAttackRange(PathNPC.java:181)
    at net.citizensnpcs.resources.npclib.PathNPC.updateTarget(PathNPC.java:325)
    at net.citizensnpcs.resources.npclib.PathNPC.moveTick(PathNPC.java:206)
    at net.citizensnpcs.resources.npclib.HumanNPC.doTick(HumanNPC.java:84)
    at net.citizensnpcs.TickTask.run(TickTask.java:31)
    at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:487)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:419)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
     
  22. Offline

    bootscreen

    this sounds like an old version of citizens. do you use citizens 1.1.3 and have you update the jar files in the type with new the new ones?
     
  23. Offline

    Pro457

    Yes this is the current 1.1.3 and I tested it on a plain server and it worked fine but when I had plugins it wouldnt work. Want a list of the plugins?
     
  24. Yes, list of plugins would help. :)
     
  25. Offline

    GenericMC

    I can't get the quests to work for "collect" and "delivery". The npcs just don't register the collection or having items in inventory. Is this a known glitch? Quests are crucial to my server and I must know before I release.
     
  26. Offline

    robinq97

    Someone please help! In my server only OP's can use trader's and Balcksmith's, I have tried all the permission nodes but they just can't seem to event bring up the shop list at traders and at the blacksmith they say ''You do not have permission to do this''
     
  27. Offline

    gummby8

    Post the quest writeup
     
  28. Offline

    Yugon

    Thanx to bootscreen, i didn't enable economy in my configs.... :|
     
  29. Offline

    PandaC0mmander

    can anyone here help me out? As this plugin will never support custom skins I need something else.
    I run a RP server and when you have a npc called "wizard" with a default skin it kinda ruins the atmosphere,
    In my opinion if you were to add such a feature the plugin would become much more popular.

    If anyone has any recommendations on how I could do this please help me out, Ive tried 2 other plugins designed for this purpose but they did not work :(

    Cheers
    -Dan
     
  30. Offline

    GenericMC

    Code:
    Favor:
        texts:
            description: You see a hungry Hobo begging for some bread.
            completion: Oh yes! Sweet bread! Thank you so much! Here take this, I don't know what it's for but it looks important.
            acceptance: You will give me some bread? Oo I don't know how I can repay you.. Il keep an eye out for something to give you.
        repeats: 0
        objectives:
            '0':
                '0':
                    type: delivery
                    materialid: 297
                    amount: 1
                    npcdestination: Hobo
                    optional: False
                    finishhere: True
                    message: Thank you!
    
    This is the quest I have that doesnt work, however I have over 100 more prewritten in the same format, along with collect.
    Code:
    2012-01-04 14:56:27 [INFO] [Citizens] NPC types loaded: trader, healer, blacksmith, wizard, quester, guard
    2012-01-04 14:56:27 [SEVERE] Error occurred while enabling Citizens v1.1.2 (Is it up to date?): For input string: "Hobo"
    java.lang.NumberFormatException: For input string: "Hobo"
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
    at java.lang.Integer.parseInt(Integer.java:492)
    at java.lang.Integer.parseInt(Integer.java:527)
    at net.citizensnpcs.properties.ConfigurationHandler.getInt(ConfigurationHandler.java:111)
    at net.citizensnpcs.questers.quests.QuestFactory.instantiateQuests(QuestFactory.java:78)
    at net.citizensnpcs.questers.data.QuestProperties.initialize(QuestProperties.java:14)
    at net.citizensnpcs.questers.QuesterType.registerEvents(QuesterType.java:32)
    at net.citizensnpcs.Citizens.onEnable(Citizens.java:85)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:188)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:968)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:186)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:169)
    at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:436)
    at org.bukkit.Bukkit.reload(Bukkit.java:187)
    at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:22)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:165)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:378)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:757)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:722)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:715)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:93)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:527)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
    
    This is the error I get when I upload that quest. I did have an NPC named Hobo so I'm not sure what the problem is.
     
  31. Offline

    gummby8

    "npcdestination" Needs the ID NUMBER not the name of the npc. That is why you are getting the error too :p
     

Share This Page