[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

    fullwall

    Sorry to all, have been a bit busy lately. The thread is also getting a little unwieldy... if you have an urgent question or need help, the best way to contact me or @aPunch is on IRC (use Mibbit if you don't want to download an IRC client).
     
  3. Offline

    zupalex


    Sticky piston is not based on a damaged value !?
    I can make my traders sell colored wool and dying ingredient (pink, light gray, whatever) by using this command.
    If this is not what you wanted to do, so i don't know what you are looking for.

    And read my post again, the damae value is the third value, not the second one. I said

    /trader sell [itemid]:[amount]:[damage value]

    So before saying that something doesn't work and telling that i'm an idiot by saying things that i didn't test myself, just read correctly.
     
  4. Offline

    Beavis

    I probably did something wrong, but i have been looking for days now.
    The server isn't using the economy.yml anymore. (i know)
    Are we forced to use economy plugins? I just want my traders to sell for example coal for gold bars. But when i try to stock or let them sell i get "this server is not using an economy plugin"
     
  5. Offline

    zupalex

    In fact i don't think that you can make your trader sell an item for an other one. You can just make them buy or sell item for a currency, brought by an economy plugin.
    But i may be wrong.
     
  6. Offline

    DaEgo

    now i understand what u mean,
    i do it this way and it works !
    thx for not giving up with a idiot ;)

    but a last question, is this the way it has to work
    or is it a "bug" and it works ?
     
  7. Offline

    General_Nono

    Is it possible that:
    NPC A say: "Go to NPC B."
    And when you went to NPC B, that NPC B gives you the Reward(normal you must go back to NPC A)?

    It could be very nice, if is possilbe, or you can add that.
     
  8. Offline

    cheti1337

    How can i make it so, that a guard can attack zombies, skeletons and creepers but players cant attack the guards.
    the mob part works when i add aggro and flags, but whenever a player hits the guard, the guard will focus on the player
     
  9. Offline

    zupalex

    I think that it was design to work this way because if i remember corectly, i took this command from a fullwall's post, dug deep inside this thread.
    But again i might be wrong.

    Anyway, a lot of people asked this question and the answere is not easy to find, it should be added in the wiki.
     
  10. Offline

    DaEgo

    yeah
     
  11. Offline

    fulloflava

    could you ad a npc that can build or mine for you that whould just be so epic and great :)
     
  12. Offline

    gummby8

    I have added a long questline that chains several quests together by giving the next quest as a reward.

    This quest chain is about 6 quests long.
    If a player uses "/quest abandon" in the middle of the chain is there any way to pick up where they left off? Or do they have to pick up the original quest starter again?

    And another question, if the original quest is not set to be repeatable does abandoning the questline break the whole chain as they cannot get the first quest again?
     
  13. Workes great. Thanks!
     
  14. Offline

    Phibedy

    http://pastebin.com/wjMVAr6L
    I got the quest from NPC 0, he tells me to deliver a fish to npc 1. Npc 1 doesn´t take the fish, it just say ok. Now I move back to npc 0 he takes away the fish (Because of the reward) and gives me 30 dollers.
    In my opinion the npc 1 should take away the fish.
    What should I change?
     
  15. Offline

    DonArkada

    I have a problem. But firstly, it is shown that it's version is 1.1.3. Everywhere i download it i have version 1.1.1 or 1.1.2
    Could you expalin it?
    I make traders and all shows to be clear but if others clik on them. Nothing happens. I added to perms citizens.trader.use.trade and citizens.basic.use.*

    Could you help me?

    P.S.
    Sorry for my english but i hope you understand me ;)
     
  16. Offline

    zupalex

    Got 2 simples questions for you fullwall if by luck you see this.

    Will it be possible to add a mode for the wizards to be able to enchant your weapons / items you are holding in your hand, with a list of all possible enchantment allowed for this wizard and a price for each enchantements ?

    Is it possible to separate the skin of the NPC from its name, so you have 2 variables, one for the "name displayed" and one for the "name of the skin used by the NPC" ?
     
  17. Overhead names no :p you must use Spout to change overhead names or skins.
    Chat names can be but I dunno if this plugin allows NPC chat names to be different than the actual ones.
     
  18. Offline

    SirMalator

    My NPC'S keep on disappearing whenever I restart my server :(

    Is there a way I can stop it except making it 24/7 ???
     
  19. Offline

    blaize9

    my guard wont kill stuff, here is what i did to the guard.
    Yes! there is a zombie 3 blocks away! and it still wont attack him.
     
  20. You are the creator of NPC? i dont believe the creator can use the NPC trade system.. If youve done it correct then it should work on other players, i have trader who sells 1 bread for 2 euros, friend of mine tested he bought 10 for 20 euros :) It works , just needs to be set corretly. I personally HATE trader npc because its so freaking hard to make it work.

    Ive posted information for this already, i post it again.

    /Citizens save​
    permission node: Citizens.admin.save​



    Try that before shutting down / reseting server.
    And in the Citizens.yml
    Code:
      saving:
        delay: 72000
        save-often: true
        use-task: true
    
    have you made it bouncer with /guard bouncer command? have you made it aggressive with /guard aggro command?
     
  21. Offline

    Phibedy

    Got my mistakes, forgot the amount, and it isn´t possible that you get the item from the quester.

    Now I got another problem

    FirstSteps:
    texts:
    description: five fishes
    completion: Some money
    acceptance: catch 5 fishes
    repeats: 10
    objectives:
    '0': '
    0':
    type: collect
    materialid: 349
    amount: 5
    message: You got it
    rewards:
    '0':
    type: item
    id: 346
    amount: 1
    take: false

    What´s wrong with this quest?
     
  22. Offline

    zupalex

    What I don't get is that as it is done now, the name of the NPC define the skin it will use. But you still can change the overhead name afterward or the color but it reset the skin to the normal one (the notch one). So you can change this overhead name.
    The real question is, can you separate the name and the skin.

    Sorry if I misunderstood your answere.
     
  23. Offline

    Vincent1468

    how can i make that a player first needs to do one quest to unlock another? i know that there is a reward that gives you an quest but when i have quest1 and quest2 I can still do quest2 before quest1. can someone help me with this?
     
  24. That was always the case because the game places the skin on entities with names that have skins, but to change the color of the overhead text, the plugin adds a character before the name so the skin disappears becase there isn't a plaer with that specific name.
    So you can not separate them without client + server mods, like spout !
     
  25. Offline

    Kimberly2000

    In your quest add this to the end of the objective, and once your player reaches the destination, at NPC B, they will recieve the reward.

    finishhere: true

    Here is an example:
    Code:
        objectives:
            '0':
                '0':
                    type: move location
                    location:
                        x: 232
                        y: 72
                        z: -182
                        world: 'test'
                    amount: 3
                    message: <y>You have completed the quest to Find Ben.
                    finishhere: true
    
     
  26. Offline

    Kimberly2000

    Try:
    /guard aggro

    ...to make sure its actually in aggressive mode.
     
  27. Offline

    TypMitAxt3

    Can someone tell me the permissions of going into the traders inventory ?
     
  28. Offline

    SiLeNDiUM

    Can u make Evil NPC spawn in certain locations/regions? Not behind players.
    And make it configurable through config file or ingame.

    sry for my english.
     
  29. Offline

    zupalex

    OK !

    Thanks a lot for this very clear explanation.

    Happy new year to everyone.
     
  30. Offline

    DaEgo

    uh, never seen bevore this message in console :

    Show Spoiler

    Code:
    2011-12-31 23:05:43 [SEVERE] Could not pass event CHUNK_UNLOAD to Citizens
    java.lang.NullPointerException
        at net.citizensnpcs.utils.PacketUtils.sendPacketToPlayer(PacketUtils.java:15)
        at net.citizensnpcs.utils.PacketUtils.sendPacketToOnline(PacketUtils.java:44)
        at net.citizensnpcs.resources.npclib.NPCSpawner.despawnNPC(NPCSpawner.java:116)
        at net.citizensnpcs.resources.npclib.NPCManager.safeDespawn(NPCManager.java:86)
        at net.citizensnpcs.listeners.WorldListen.onChunkUnload(WorldListen.java:50)
        at org.bukkit.plugin.java.JavaPluginLoader$54.execute(JavaPluginLoader.java:642)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
        at net.minecraft.server.ChunkProviderServer.unloadChunks(ChunkProviderServer.java:231)
        at net.minecraft.server.World.doTick(World.java:1725)
        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:514)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
    2011-12-31 23:05:43 [SEVERE] Could not pass event CHUNK_UNLOAD to Citizens
    java.lang.NullPointerException
        at net.citizensnpcs.utils.PacketUtils.sendPacketToPlayer(PacketUtils.java:15)
        at net.citizensnpcs.utils.PacketUtils.sendPacketToOnline(PacketUtils.java:44)
        at net.citizensnpcs.resources.npclib.NPCSpawner.despawnNPC(NPCSpawner.java:116)
        at net.citizensnpcs.resources.npclib.NPCManager.safeDespawn(NPCManager.java:86)
        at net.citizensnpcs.listeners.WorldListen.onChunkUnload(WorldListen.java:50)
        at org.bukkit.plugin.java.JavaPluginLoader$54.execute(JavaPluginLoader.java:642)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
        at net.minecraft.server.ChunkProviderServer.unloadChunks(ChunkProviderServer.java:231)
        at net.minecraft.server.World.doTick(World.java:1725)
        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:514)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
    2011-12-31 23:05:44 [SEVERE] Could not pass event CHUNK_UNLOAD to Citizens
    java.lang.NullPointerException
        at net.citizensnpcs.utils.PacketUtils.sendPacketToPlayer(PacketUtils.java:15)
        at net.citizensnpcs.utils.PacketUtils.sendPacketToOnline(PacketUtils.java:44)
        at net.citizensnpcs.resources.npclib.NPCSpawner.despawnNPC(NPCSpawner.java:116)
        at net.citizensnpcs.resources.npclib.NPCManager.safeDespawn(NPCManager.java:86)
        at net.citizensnpcs.listeners.WorldListen.onChunkUnload(WorldListen.java:50)
        at org.bukkit.plugin.java.JavaPluginLoader$54.execute(JavaPluginLoader.java:642)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
        at net.minecraft.server.ChunkProviderServer.unloadChunks(ChunkProviderServer.java:231)
        at net.minecraft.server.World.doTick(World.java:1725)
        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:514)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
    2011-12-31 23:05:44 [SEVERE] Could not pass event CHUNK_UNLOAD to Citizens
    java.lang.NullPointerException
        at net.citizensnpcs.utils.PacketUtils.sendPacketToPlayer(PacketUtils.java:15)
        at net.citizensnpcs.utils.PacketUtils.sendPacketToOnline(PacketUtils.java:44)
        at net.citizensnpcs.resources.npclib.NPCSpawner.despawnNPC(NPCSpawner.java:116)
        at net.citizensnpcs.resources.npclib.NPCManager.safeDespawn(NPCManager.java:86)
        at net.citizensnpcs.listeners.WorldListen.onChunkUnload(WorldListen.java:50)
        at org.bukkit.plugin.java.JavaPluginLoader$54.execute(JavaPluginLoader.java:642)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
        at net.minecraft.server.ChunkProviderServer.unloadChunks(ChunkProviderServer.java:231)
        at net.minecraft.server.World.doTick(World.java:1725)
        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:514)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
    2011-12-31 23:05:44 [SEVERE] Could not pass event CHUNK_UNLOAD to Citizens
    java.lang.NullPointerException
        at net.citizensnpcs.utils.PacketUtils.sendPacketToPlayer(PacketUtils.java:15)
        at net.citizensnpcs.utils.PacketUtils.sendPacketToOnline(PacketUtils.java:44)
        at net.citizensnpcs.resources.npclib.NPCSpawner.despawnNPC(NPCSpawner.java:116)
        at net.citizensnpcs.resources.npclib.NPCManager.safeDespawn(NPCManager.java:86)
        at net.citizensnpcs.listeners.WorldListen.onChunkUnload(WorldListen.java:50)
        at org.bukkit.plugin.java.JavaPluginLoader$54.execute(JavaPluginLoader.java:642)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
        at net.minecraft.server.ChunkProviderServer.unloadChunks(ChunkProviderServer.java:231)
        at net.minecraft.server.World.doTick(World.java:1725)
        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:514)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
    
     
  31. Hey guys, can you please tell me when we get rid of the PVP bug?

    Cause atm my server people cant use the Wizard or any other NPC because if have it turned off.....
     

Share This Page