[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

    Roscoe1724

    Can anyone tell me what these variables mean in the npc-profiles.yml?

    stock: 3/64/0/,128.0/true,false,;4/64/0/,64.0/true,true,;3/64/0/,64.0/true,true,;4/64/0/,128.0/true,false,

    Much appreciated,

    Roscoe
     
  3. Offline

    Roscoe1724

    PS. I wish to know so that I can edit the traders buy/sell prices easier than standing and typing the command in game over and over and over.
     
  4. Offline

    screamingiraffe

    /guard bodyguard sets the NPC to follow you, but it doesn't do anything when you're being attacked.
    i also set /guard aggro on and off.. no change​
     
  5. Offline

    aPunch

    Are you using a dev build or v1.0.9d?
     
  6. Offline

    Spiritwind

    Any idea on when questers might be finished?
    imo, other than bug fixes, this should be top priority.
     
  7. Offline

    SkyCraft

    So, I have a slight problem, people can rapidly click and drag out things from NPC traders, and they will drop, then they just steal the items. We have a G.E.(Grand exchange) and that holds up our economy a lot. So I need to figure out how to fix that?
     
  8. Offline

    aPunch

    We will release 1.1 when we feel that it is ready. There will be no "pre-releases" (besides our developmental builds) as Mojang has done today. :p

    This is a known trader bug and is not fixable until Bukkit adds inventory event hooks to its API.
     
  9. Offline

    Spiritwind

    Theres no way that you can have the traders initiate a give command so that it goes directly into their inventory?
     
  10. Offline

    aPunch

    That is basically what we are doing. I am saying that there is no way to prevent item duping. Item duping is caused by server lag and cannot be prevented without inventory events.
     
  11. Offline

    screamingiraffe

    Greetings - I'm using the latest build 1.0.9d, the NPC will follow but not attack anything, I actually spent hours trying to figure it out. The citizens repond to commands just doesn't aggro or attack anything. The pirate and evil guys do aggro (from really really far away I might add). What makes matters worse, the evil guy and my 'bodyguard' have no collision with each other so I can't attack an evil guy without killing my bodyguard (or so called bodyguard), they stand exactly in the same spot, no matter what position I try to move to.
    by 'same spot', i mean that once i stand still, they both appear next to me always one inside the other if that makes sense.
     
  12. Offline

    Spiritwind

    The Bodyguards are still in development. Everyone is experiencing this problem and I'm sure the developers are aware of it.
    Ah, alright.
    I'm possibly going to hire a plugin developer to make an addon for this to fix the quests. If possible I would like to have at least an estimate on when questers might at least be half way stable before paying a developer for such a project.
    If you guys can push this ahead, I'd be more than willing to make a donation.
     
  13. Offline

    nick980324

    how to edit the npc-creation limit?? help me plz
     
  14. Offline

    Malific

    I spent a lot of time on this so I could manually edit the npc file and finally figured it all out.

    3/64/0/
    Item ID/Quantity of item/Item ID designation/
    example:
    yours: = 64 dirt
    35/20/6/ = 20 pink wool

    ,128.0/true,false,;
    ,cost/sells,;
    true,false,; = sells to player
    true,true,; = buys from player

    4/64/0/,64.0/true,true,;
    Npc will buy 64 cobblestone from player for 64

    Your entire string up there means (in this order):
    Npc will sell stacks of 64 dirt to the player for 128
    Npc will buy stacks of 64 cobblestone from the player for 64
    Npc will buy stacks of 64 dirt from the player for 64
    Npc will sell stacks of 64 cobblestone to the player for 128
     
  15. Offline

    Malific

    I'm having the vanishing NPC problem occurring constantly on my server, to the point I can barely keep them active longer than 2-3 minutes. I'd like to switch to a dev build of this, but I'm having issues getting it to work.

    I basically DLed all the latest .jars for citizens and the NPC toggles, dropped them into my plugin directory, deleted my entire Citizens directory except for my npc-profles.yml, then Turn on server.

    CB 1060
    Citizens build #145

    I get Massive errors (a lot of cannot send player_teleport to essentials stuff)
    Show Spoiler
    Code:
    2011-09-10 18:16:31 [SEVERE] Could not pass event PLAYER_TELEPORT to Essentials
    java.lang.NullPointerException
    	at com.earth2me.essentials.JailPlayerListener.onPlayerTeleport(JailPlayerListener.java:52)
    	at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.java:300)
    	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
    	at org.bukkit.craftbukkit.entity.CraftPlayer.teleport(CraftPlayer.java:233)
    	at net.citizensnpcs.resources.npclib.NPCSpawner.spawnNPC(NPCSpawner.java:40)
    	at net.citizensnpcs.resources.npclib.NPCManager.register(NPCManager.java:162)
    	at net.citizensnpcs.Citizens.setupNPCs(Citizens.java:310)
    	at net.citizensnpcs.Citizens.access$000(Citizens.java:63)
    	at net.citizensnpcs.Citizens$2.run(Citizens.java:139)
    	at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
    	at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:428)
    	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
    	at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    

    After this I can't access any NPC inventories and none of my NPCs are toggled even though the npc-profiles.yml has the toggles set to true for them all.

    Am I missing some sort of step or complication in the switch from 1.09d to the 1.1 dev stuff or does it simply not work yet? I'm assuming I'm doing something wrong since I see so many posts saying "switch to latest dev" to solve so many different issues. Is there a particular build I should be trying?
     
  16. Offline

    red7up

  17. For some reason I have a trader, We want the merchant to buy 64 coal from the player but he does not, he gives the Gold but does not take the coal away and keeps giving gold for the coal stack. Here is an example: 263/64/0/,266/6/0/true,true,; I am not sure what to do, please help.
     
  18. Offline

    screamingiraffe

    It's not just Bodybuard, it's the whole aggro system, its completely broken (as in, doesn't work)
    I'd consider this plugin-in to be in it's Alpha state, not even a beta, too much doesn't work.
     
  19. Offline

    grifOndOr

    Is there a fix to work with PermissionsEX ?
    trader don't work with this :/
     
  20. Offline

    Silvo

    Upon switching worlds NPCs vanish too, kinf off. They are still there you just can't see them or anybody else. How I know that? Well, my NPC has is autotalk enabled and greeted me when I aproached the position where I posted him. Guess this will be fixed when a stable 1.8MC will come out because from a development view it's no good rushing and fixing things when a tidal wave named 1.8 is at our doorsteps that will squash and trash all things before it anyway.

    Well, I really like the feature which allows you to change the NPC owner even if the owner doesn't exist. Made some traders set their owner to "Server", made their selling infinite and used their shop even if I made them.
     
  21. Offline

    THG3

    @Citizens
    @aPunch
    Code:
    2011-09-12 21:50:31 [WARNING] Task of 'Citizens' generated an exception
    java.lang.ArrayIndexOutOfBoundsException: 1
        at com.citizens.utils.LocationUtils.loadLocation(LocationUtils.java:64)
        at com.citizens.properties.properties.BasicProperties.getWaypoints(BasicProperties.java:261)
        at com.citizens.properties.properties.BasicProperties.loadState(BasicProperties.java:312)
        at com.citizens.properties.PropertyManager.load(PropertyManager.java:51)
        at com.citizens.npcs.NPCManager.register(NPCManager.java:64)
        at com.citizens.Citizens.setupNPCs(Citizens.java:305)
        at com.citizens.Citizens.access$0(Citizens.java:286)
        at com.citizens.Citizens$1.run(Citizens.java:120)
        at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:428)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  22. Offline

    theC

    what are the permsissions you need, to remove an NPC, which you don't own?
     
  23. Offline

    jonassm

    How's the lagg?
     
  24. Offline

    min

    Code:
    2011-09-16 04:38:12 [SEVERE] java.lang.NoSuchMethodError: net.minecraft.server.ItemInWorldManager.<init>(Lnet/minecraft/server/WorldServer;)V
    2011-09-16 04:38:12 [SEVERE]     at com.citizens.resources.npclib.NPCSpawner.spawnNPC(NPCSpawner.java:35)
    2011-09-16 04:38:12 [SEVERE]     at com.citizens.npcs.NPCManager.register(NPCManager.java:46)
    2011-09-16 04:38:12 [SEVERE]     at com.citizens.npcs.NPCManager.register(NPCManager.java:89)
    2011-09-16 04:38:12 [SEVERE]     at com.citizens.commands.commands.BasicCommands.create(BasicCommands.java:235)
    2011-09-16 04:38:12 [SEVERE]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2011-09-16 04:38:12 [SEVERE]     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    2011-09-16 04:38:12 [SEVERE]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    2011-09-16 04:38:12 [SEVERE]     at java.lang.reflect.Method.invoke(Unknown Source)
    2011-09-16 04:38:12 [SEVERE]     at com.citizens.resources.sk89q.CommandsManager.executeMethod(CommandsManager.java:518)
    2011-09-16 04:38:12 [SEVERE]     at com.citizens.resources.sk89q.CommandsManager.execute(CommandsManager.java:404)
    2011-09-16 04:38:12 [SEVERE]     at com.citizens.Citizens.onCommand(Citizens.java:196)
    2011-09-16 04:38:12 [SEVERE]     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:39)
    2011-09-16 04:38:12 [SEVERE]     at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:163)
    2011-09-16 04:38:12 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:347)
    2011-09-16 04:38:12 [SEVERE]     at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:756)
    2011-09-16 04:38:12 [SEVERE]     at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:721)
    2011-09-16 04:38:12 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:714)
    2011-09-16 04:38:12 [SEVERE]     at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    2011-09-16 04:38:12 [SEVERE]     at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    2011-09-16 04:38:12 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:91)
    2011-09-16 04:38:12 [SEVERE]     at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    2011-09-16 04:38:12 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:464)
    2011-09-16 04:38:12 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
    2011-09-16 04:38:12 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)

    1.8 bukkit 1123
     
  25. Offline

    sddddgjd

    Yep,it's broken in 1.8 builds...the npc library is broken :(
     
  26. Offline

    aPunch

    If you are interested in using/testing Citizens for 1.8, download the latest developmental build here. Keep in mind that dev builds are unstable and that we offer no support for them.
     
  27. Offline

    Cryptite

    Maddening! I hearsay that people are using/trying/playing with quests, but I have no idea how to write one. Does there exist any example quests.yml file that provides the proper structuring for a quest? I must write quests! I must, I must!
     
  28. Offline

    AHgpeu

    how to combine these files into one?

    or simply write to the folder plugins? get an error ...

    Code:
    2011-09-17 00:01:38 [SEVERE] Could not load 'plugins\Trader.jar' in folder 'plugins':
    java.io.FileNotFoundException: Jar does not contain plugin.yml
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:64)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:213)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:136)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:136)
            at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:103)
            at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:52)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:136)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
     
  29. Offline

    fullwall

  30. Offline

    Oozziizz

    Can you please add the permission's? I will type it in on my permissions config :D
     
  31. Offline

    L3m0nad31

    server error: could not pass event PLAYER JOIN to citezins. in game error: java.lang.Nullpointerexception: null
    any help?
     

Share This Page