[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

  3. Offline

    aPunch

    Did I miss something? Why is this thread in Plugin Submissions? :p
     
  4. Offline

    Exidous

    But he is using permissions and not group manager. I am using it though and I will give it a go, thanks fullwall.
     
  5. Offline

    wassilij

    Request:
    SPOUT GUI SPOUT GUI SPOUT GUI (especially for Quests :D)
     
  6. Offline

    spudy121

    does anyone know how to in-port old NPC's in to the new build if i change the npc-profiles.yml in any way the server has a bunch of errors and will not run but every time I need to update I don't want to have to redo all the NPC's in the game this is a really cool plugin and its the only thing stopping me from going to minecraft 1.8if anyone could help I would greatly appreciate it.
     
  7. Offline

    Exidous

    @fullwall YES!!! thank you so much for group manager support, working right now. THANK YOU THANK YOU!!!

    You just made my day btw.... donating today to you guys.
     
  8. Offline

    Schlumpf

    Hello,
    I got a question again to the Quests.
    When I change the type to delivery on the mission I need to set npcdestination: <id>.
    But is there also a type/way that you must bring the Npc you recieved the quest for example 40 wood. And you must give than 40 wood to the npc and than he gives you the reward? Sorry bad English -.-
    I mean that you get the quest: bring me 40 wood and than you must bring 40 wood to the same npc. In the type: colelct you must colelct the items from the ground but what I mean is that you just have to bring the items. Hope you guys understand what I mean :)
     
  9. Offline

    jimbobt123

    Pretty sure somebody's already asked for this but... Any plans for in-game quest creation?
     
  10. Offline

    Hryniu

    Code:
    2011-09-27 22:29:46 [SEVERE] Could not load 'plugins/Citizens.jar' in folder 'plugins':
    java.util.zip.ZipException: error in opening zip file
        at java.util.zip.ZipFile.open(Native Method)
        at java.util.zip.ZipFile.<init>(ZipFile.java:131)
        at java.util.jar.JarFile.<init>(JarFile.java:150)
        at java.util.jar.JarFile.<init>(JarFile.java:114)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:60)
        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:138)
        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)
    
    Could you bother and do something about it ? I dont want to complain, but will Citizens ever be fully stable ?
     
  11. Offline

    fullwall

    @Hryniu - you might have got a bad download, please redownload...
     
  12. Offline

    fullwall

    @Schlumpf - this will come after 1.1
     
    Schlumpf likes this.
  13. Offline

    Schlumpf

    Okay, very nice!! Keep up your good work :) Citizens is really nice!
     
  14. Offline

    Anthony Pray

    ok I tried searching but have got nothing, how do I get the NPC to move on there waypoints?
    I have a guard, who just stands there i got the flags set so he will attack monsters when they get in near but after setting the waypoints with /npc path command. The Npc dus not move. Help.

    also going to the Website and clicking Download @ http://www.citizensnpcs.net/ just sits at PLEASE WAIT...
     
  15. Offline

    Goldfinger95

    I need help. I have Citizens and Permissions. Only Ops can use the trader. i have for the normal players the permission: citizen.use.trader and citizen.* but it doesn't work without they are OP. I hope you can help me.
     
  16. Offline

    jimbobt123

    Dammit!

    Fixed it for like 5 minutes, got al traders working again.... Made a new quest, reloaded the server... then this:

    Show Spoiler

    Code:
    2011-09-28 19:54:12 [INFO] [Citizens] NPC types loaded: quester, blacksmith, wizard, healer, trader, guard
    2011-09-28 19:54:12 [INFO] [Citizens] An error has occurred, please wait while it is sent to the developers...
    2011-09-28 19:54:17 [INFO] [Citizens]
    2011-09-28 19:54:17 [INFO] [Citizens] Citizens Error Reporting - Powered by CreeperHost.net
    2011-09-28 19:54:17 [INFO] [Citizens] Below is the stacktrace that has been transmitted to the developers, no other information has been included other than Citizens version information.
    2011-09-28 19:54:12 [SEVERE] Error occurred while enabling Citizens v1.1 (Is it up to date?): java.lang.Integer cannot be cast to java.lang.String
    java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
        at net.citizensnpcs.questers.quests.QuestFactory.instantiateQuests(QuestFactory.java:17)
        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:87)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:920)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:278)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:173)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:156)
        at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:410)
        at org.bukkit.Bukkit.reload(Bukkit.java:173)
        at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:22)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:163)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:353)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:756)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:721)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:714)
        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:92)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:464)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)


    This is getting annoying. Tried removing the quest, tried removing all quests, that did nothing.

    EDIT:

    Fixed again. Apparently changing the names of quests from numbers works....
     
  17. Offline

    hiro24

    Question on questing formatting. I'm trying to get the money rewards part working, and it doesn't seem to do anything. I think I have it formatted right. Set up like this:

    Code:
        rewards:
            '0':
                type: money
                amount: 500
                take: false
    
    We're using iConomy I believe 6. I assumed it would just link into that, since our citizens creation takes from it.. just don't know if this part is formatted wrong or what. Suggestions?
     
  18. Offline

    Hryniu

    Thanks, that works now. But the Trader isnt working still. I get this message.

    Code:
    2011-09-28 16:06:42 [WARNING] Task of 'Citizens' generated an exception
    java.lang.IllegalArgumentException: n must be positive
        at java.util.Random.nextInt(Random.java:265)
        at net.citizensnpcs.resources.npclib.creatures.DefaultSpawner.getRandomInt(DefaultSpawner.java:86)
        at net.citizensnpcs.resources.npclib.creatures.DefaultSpawner.spawn(DefaultSpawner.java:38)
        at net.citizensnpcs.resources.npclib.creatures.CreatureTask.spawnCreature(CreatureTask.java:47)
        at net.citizensnpcs.resources.npclib.creatures.CreatureTask.run(CreatureTask.java:39)
        at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:439)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    2011-09-28 16:06:48 [SEVERE] java.lang.NullPointerException
    2011-09-28 16:06:48 [SEVERE]     at net.citizensnpcs.economy.EconomyManager.format(EconomyManager.java:62)
    2011-09-28 16:06:48 [SEVERE]     at net.citizensnpcs.traders.TraderMessageUtils.getPriceMessage(TraderMessageUtils.java:13)
    2011-09-28 16:06:48 [SEVERE]     at net.citizensnpcs.traders.TraderMessageUtils.getStockableMessage(TraderMessageUtils.java:19)
    2011-09-28 16:06:48 [SEVERE]     at net.citizensnpcs.traders.TraderCommands.stock(TraderCommands.java:306)
    2011-09-28 16:06:48 [SEVERE]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2011-09-28 16:06:48 [SEVERE]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    2011-09-28 16:06:48 [SEVERE]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    2011-09-28 16:06:48 [SEVERE]     at java.lang.reflect.Method.invoke(Method.java:616)
    2011-09-28 16:06:48 [SEVERE]     at net.citizensnpcs.resources.sk89q.CommandsManager.executeMethod(CommandsManager.java:517)
    2011-09-28 16:06:48 [SEVERE]     at net.citizensnpcs.resources.sk89q.CommandsManager.execute(CommandsManager.java:405)
    2011-09-28 16:06:48 [SEVERE]     at net.citizensnpcs.Citizens.onCommand(Citizens.java:199)
    2011-09-28 16:06:48 [INFO] [Citizens] An error has occurred, please wait while it is sent to the developers...
    2011-09-28 16:06:49 [INFO] [Citizens] Below is the stacktrace that has been transmitted to the developers, no other information has been included other than Citizens version information.
    2011-09-28 16:06:49 [SEVERE]     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:39)
    2011-09-28 16:06:49 [SEVERE]     at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:163)
    2011-09-28 16:06:49 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:353)
    2011-09-28 16:06:49 [SEVERE]     at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:756)
    2011-09-28 16:06:49 [SEVERE]     at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:721)
    2011-09-28 16:06:49 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:714)
    2011-09-28 16:06:49 [SEVERE]     at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    2011-09-28 16:06:49 [SEVERE]     at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    2011-09-28 16:06:49 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
    2011-09-28 16:06:49 [SEVERE]     at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    2011-09-28 16:06:49 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:464)
    2011-09-28 16:06:49 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
    2011-09-28 16:06:49 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
     
  19. Offline

    VBeregovoy

    Well, i am dont understand. I am need another permissions plugin, or i can just upgrade citizens?
    And if i am need another permissions plugin, which plugin setting like original permissions?
     
  20. Offline

    Dragonnight09

    http://pastebin.com/55Hv9VpY

    Why is this not working? I use Multiverse and i thought this would work...everytime i walk to the coordinates it won´t work...what´s wrong? The worlds name is RPG and i got the coordinates from the command /mv coord ...pls help
     
  21. Offline

    hiro24

    That matches mine in syntax almost perfectly.

    http://pastebin.com/x92CbrDP

    My quest actually does work though, but where this one gets stuck is the reward part. No money is rewarded. Not sure if it's to do w/ iConomy 6 or what.. eh, hope you get it working. I'd start by double/triple checking your coordinates. On a related note, if somebody knows why the money isn't rewarding..... :)
     
  22. Offline

    Dragonnight09

    you have a line called 'ID=0' ...money has no id so delete it and try agaiN :D
     
  23. Offline

    Dragonnight09

    besides how do you look for the coordinates? plugin, command, mod?
     
  24. Offline

    Cryptite

    If rewarding money, the node isn't amount, it's money, ala:
    Code:
    rewards:
        '0':
            type: money
            money: 500
            take: false
     
  25. Offline

    Exidous

    try the new dev build of citizens and group manager, works wonderfully.
     
  26. Offline

    VBeregovoy

    I am want permission. The new dev build can work with permissions?
    If no, would PEX work with citizens?
     
  27. Offline

    terwilliker

    Too real!
    I mean, day 1: guards happily assigned to patrol, marching heads held high, saying hi, attacking monsters,
    day 2, the guards walk their patrols but they are not saying hi anymore and have stopped attacking monsters
    day 3, the guard on the ramparts is walking most of his patrol, head down, moping. the guard in the forest is seen apparently talking discretely with monsters
    I'm afraid to log back in and find them carrying my chests out to the forest.
     
    bcliburn likes this.
  28. Offline

    terwilliker

    Already very cool!

    Would be even cooler if we could:
    pick skeletons or zombies for guards... just in case we were evil and lived in a black castle. chickens could be fun.
    give guards bows and arrows (I could not figure that out)
    give other actions than fight when flag shows someone in the radius (yell, call for help, run away, go push a button or pull a lever, run back and tell me, open doors for guests)
    let guards eat to get their health back
    additional triggers, (count a yell as a trigger so a guard could call for help and when 3 guards were together, then go after the bad one, start a patrol only at night.)
    one a patrol, signal visible objects... so, I could make waypoints into the forest targeting trees in their radius... then they go collect resources and fill up a given chest.
    maybe some random actions... collect snowballs and have a snowball fight, fight amongst themselves, look into chests,

    Anyways, very fun already! Thanks.
     
  29. Offline

    hiro24

    Thanks, that got it!
     
  30. Offline

    Chett

    Thank you. I am n Idiot and money rewards are working.
     
  31. Offline

    vax35

    I can use Citizens only if i am OP.

    If i write "citizens.*" (with permissions 3.1.6) and i am not OP, I have "You don't have permissions to do that" with an error in logs :
    Code:
     Task of 'Citizens' generated an exception
    java.lang.IllegalArgumentException: n must be positive
            at java.util.Random.nextInt(Random.java:250)
            at net.citizensnpcs.resources.npclib.creatures.DefaultSpawner.getRandomI
    nt(DefaultSpawner.java:86)
            at net.citizensnpcs.resources.npclib.creatures.DefaultSpawner.spawn(Defa
    ultSpawner.java:38)
            at net.citizensnpcs.resources.npclib.creatures.CreatureTask.spawnCreatur
    e(CreatureTask.java:47)
            at net.citizensnpcs.resources.npclib.creatures.CreatureTask.run(Creature
    Task.java:39)
            at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(C
    raftScheduler.java:137)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:439)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    Do you have solutions ?

    My permissions file :

    Code:
    groups:
        Vagabond:
            default: true
            info:
                prefix: Vagabond
                suffix: ''
                build: false
            inheritance:
            permissions:
            - essentials.suicide
            - ecoCreature.Creature.*
            - turnstile.open
            - seats.sit
        Paysan:
            default: false
            info:
                prefix: Paysan
                suffix: ''
                build: true
            inheritance:
            permissions:
            - ecoCreature.Creature.*
            - turnstile.open
            - seats.sit
            - myhome.home.basic.*
            - essentials.chat.shout
            - essentials.suicide
            - essentials.list
            - essentials.help
            - essentials.motd
            - essentials.rules
            - essentials.spawn
            - essentials.signs.warp.use
            - essentials.signs.heal.use
            - essentials.mail.*
            - essentials.msg
            - essentials.clearinventory
            - pvpreward.getreward
            - pvpreward.givereward
            - lwc.protect
            - showcase.buy.finite
            - showcase.buy.infinite
            - ChestShop.shop.buy
            - ChestShop.shop.sell
            - tombstone.use
            - tombstone.cmd.tomblist
            - tombstone.cmd.tombfind
            - tombstone.large
            - tombstone.lwc
            - tombstone.quickloot
            - tombstone.freesign
            - towny.wild.*
            - towny.top
            - creaturebox.dropspawner
            - creaturebox.placespawner
            - citizens.*
        Paysanne:
            default: false
            info:
                prefix: Paysanne
                suffix: ''
                build: true
            inheritance:
            - Paysan
            permissions:
        Citoyen:
            default: false
            info:
                prefix: Citoyen
                suffix: ''
                build: true
            inheritance:
            - Paysan
            permissions:
            - towny.spawntp
            - towny.town.resident
            - towny.town.plot
            - falsebook.ic.selftriggered
            - falsebook.ic.detection
            - falsebook.ic.standard
            - musiccraft.use
            - iConomy.payment
            - iConomy.access
            - iConomy.rank
            - iConomy.list
        Citoyenne:
            default: false
            info:
                prefix: Citoyenne
                suffix: ''
                build: true
            inheritance:
            - Citoyen
            permissions:
        Tavernier:
            default: false
            info:
                prefix: Tavernier
                suffix: ''
                build: true
            inheritance:
            - Citoyen
            permissions:
            - mybed.inn
        Commercant:
            default: false
            info:
                prefix: Commercant
                suffix: ''
                build: true
            inheritance:
            - Citoyen
            permissions:
            - showcase.finite
            - showcase.basic
            - ChestShop.shop.create
        Pilote:
            default: false
            info:
                prefix: Pilote
                suffix: ''
                build: true
            inheritance:
            - Citoyen
            permissions:
            - movecraft.airship.pilot
            - movecraft.airship.info
        Marin:
            default: false
            info:
                prefix: Marin
                suffix: ''
                build: true
            inheritance:
            - Citoyen
            permissions:
            - movecraft.boat.sail
            - movecraft.boat.info
        Chasseur:
            default: false
            info:
                prefix: Chasseur de primes
                suffix: ''
                build: true
            inheritance:
            - Citoyen
            permissions:
            - ashtheking.tent.create
        Pretre:
            default: false
            info:
                prefix: Pretre
                suffix: ''
                build: true
            inheritance:
            - Citoyen
            permissions:
            - citizens.healer.*
            - citizens.waypoints.*
        Garde:
            default: false
            info:
                prefix: Garde
                suffix: ''
                build: true
            inheritance:
            - Citoyen
            permissions:
            - citizens.guard.*
            - citizens.waypoints.*
        Forgeron:
            default: false
            info:
                prefix: Forgeron
                suffix: ''
                build: true
            inheritance:
            - Citoyen
            permissions:
            - citizens.blacksmith.*
            - citizens.waypoints.*
        Chevalier:
            default: false
            info:
                prefix: Chevalier
                suffix: ''
                build: true
            inheritance:
            - Citoyen
            permissions:
            - myhome.home.soc.*
            - falsebook.blocks.lift
            - falsebook.blocks.bridge
            - falsebook.blocks.door
            - falsebook.blocks.gate
            - showcase.finite
            - showcase.basic
            - ChestShop.shop.create
        Baron:
            default: false
            info:
                prefix: Baron
                suffix: ''
                build: true
            inheritance:
            - Chevalier
            permissions:
            - towny.town.*
            - turnstile.make
            - turnstile.makefree
            - turnstile.set.free
            - turnstile.set.locked
            - turnstile.set.price
            - turnstile.set.owner
            - turnstile.set.access
            - turnstile.set.bank
            - turnstile.earned
        Seigneur:
            default: false
            info:
                prefix: Seigneur
                suffix: ''
                build: true
            inheritance:
            - Baron
            permissions:
            - towny.nation.*
        Moderateur:
            default: false
            info:
                prefix: Mod
                suffix: ''
                build: true
            inheritance:
            - Seigneur
            permissions:
            - essentials.*
            - mybed.*
            - pvpreward.*
            - musiccraft.*
            - falsebook.anyic
            - towny.*
            - worldedit.*
            - turnstile.openfree
            - ChestShop.mod
            - lwc.mod
            - myhome.admin.*
        Admin:
            default: false
            info:
                prefix: Admin
                suffix: ''
                build: true
            inheritance:
            permissions:
            - '*'
            - pvpreward.ignoredeathtoll
    Sorry for my english, i'm french :)
    Thanks for your help :)
     

Share This Page