[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

    @Exanimo - it's an error while trying to get back into position, fixing...
     
  3. Offline

    elraro

    Using #304

    Wizard teleport. I add some locations, but i cant choose the location with left click. Only teleport to the first location.
    Same with Wizard time and Wizard spawn.
     
  4. Offline

    Exanimo

    Great, thanks again! :)

    Other question: Think its possible to spawn a pre-set NPC using a single command? This may be a longer command ofcourse but i want to call it from another plugin so it would need to be 1 line.
     
  5. Offline

    fullwall

    @Exanimo - I really need to design a system for NPC templates... not sure how best to do it though.
     
  6. Offline

    hiro24

    @fullwall I almost have my "King of the hill" finished, using Citizens questing, Commandsigns and CommandHelper. I'm going to officially open it in a few days.. couldn't have done it w/o your mod though. Just wanted to say thanks. I'll post a vid if you want of the action. :)
     
  7. Offline

    aPunch

    I'll think of something, maybe a file 'templates/npcname.yml' (WOO YAML). Then when someone types /npc spawn 'filename' the NPC is given a UID and other data that shouldn't be defined in the template file.
     
  8. Offline

    fullwall

    @aPunch - templates.yml? /npc template [template] [NPC name]? Should it all even be file-based?
     
  9. Offline

    aPunch

    To the IRCs!
     
  10. Offline

    Exanimo

    I love you guys! I have an idea and you make it so! :D
    I think that could be a first step to allowing generation of soldiers for regular users! Or using an item to summon a guardian... or a mysterious Trader (that will only stay for a while?).
     
  11. Offline

    MxRacer100

    Um do guards not work? i set the flag /guard addflag 1 zombie -m And well i spawn a zombie and the guard just follows and watches me die like an idiot. None of the flags are working for me and if its my mistake then someone plz tell me exactly how to make it work
     
  12. Offline

    Ei3N

    dev build #304
    wasn't interacting with any NPC's
    when this error happens, all my guards will just stand around and not attack any of the mobs on its flag list

    Code:
    2011-10-31 14:26:55 [WARNING] Task of 'Citizens' generated an exception
    java.lang.NullPointerException
        at net.citizensnpcs.resources.npclib.PathNPC.updatePathingState(PathNPC.java:300)
        at net.citizensnpcs.resources.npclib.PathNPC.moveTick(PathNPC.java:211)
        at net.citizensnpcs.resources.npclib.HumanNPC.doTick(HumanNPC.java:104)
        at net.citizensnpcs.TickTask.run(TickTask.java:31)
        at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:441)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
     
  13. Offline

    Redrider923

    Can someone tell me how to add mcmmo exp as a reward. And is there a way to configure multiple rewards, like for a fetch quest, taking the items the person fetched, and then giving them money. I cant seem to get money to work either. i use the iconomy admin grant node but it doesnt work with amount or money.
     
  14. Offline

    SuperPyroManiac

    For some reason any time I use /tog or toggle etc it just says invalid type... There all in the folder too.
     
  15. Offline

    hiro24

    See this forum, page 295. It's possible if you use CommandHelper to make an alias for it. You can then do a "command" reward to give exp.. you "might" not need CommandHelper, but I highly recommend it. So far it's become a very useful plugin, especially when combining w/ Citizens.
     
  16. Offline

    Redrider923

    Awesome thank you! only question is how do i set that up in the quests.yml would it be like rewards: command node: /questexp $player $mining $1000 = runas(~op, '/addxp $player $skill $amount') ??? and i see that command helper is only for bukkit 1000, im running 1337. Any problems with that?
     
  17. Offline

    jogeta_masude

    Hi i have just updated to the 304 build and now my server goes into a stop/reload loop until i manually stop it and disable citizens. I have found that if i remove my current npc profiles and quests and then regenerate new blank files it will load correctly. Is there anything that can be done about this or do i just need to redo my 150 plus npcs and quests. I'd really rather not... any help would be very much appreciated.

    Also is there anywhere we can find out how to set up global trader prices? i didnt see anything in the config or any new files generated? are there default prices?

    Regards, Jordache

    BTW i love your plugin, when it works it's amazing, thanks for all the time and effort you guys put into it.
     
  18. Hello, i have a problem. When i create a Trader, nobody can use it except Admins. Can you help me? When a non-admin person right clicks nothing happens. When i click on it i get the screen and when the non-admin person click he gets the text Only one person at a time or something like that... Also i use a Mod called Mo' Creatures and the craftbukkit is on 1185. And i have a friend that uses the latest craftbukkit and Citizens and still gets the same problem :/
    P.S. The version of your plugin im using is 1.1.1
     
  19. Offline

    hiro24

    the /questexp etc etc... goes in plugins/CommandHelper/config.txt it's an alias that allows that command to be run as admin, and you let your quest reward run the command.. I do heroes exp as quest rewards in a similar manner. Here's my alias in CommandHelper:
    Code:
    /giveexp $player $amount = runas(~op, /hero admin exp $player $amount)
    
    regular players can't run the command (at least not in my experience..) and set the reward up like so
    Code:
            '0':
                type: command
                command: giveexp <player> 250
                server: true
    
    In your case, you're adding this as an alias...

    Code:
    /questexp $player $skill $amount = runas(~op, '/addxp $player $skill $amount')[/FONT]
    
    and the $player, $skill and $amount are all variables that you specify in the rewards, like this..
    Code:
            '0':
                type: command
                command: addxp <player> mining 1000
                server: true
    
     
  20. Offline

    Linus21

    Hi! When i put the quester, healer in the types folder and start server it just gets an java error :( Help me ?
     
  21. Offline

    Exanimo

    @Linus21 : What is the error? That might give us a clue what the issue is.
     
  22. Offline

    Linus21

    Well, when i put the wizard in the types folder and write /npc it says "The command was not recornized, Write /npc help for a list of commands" And so on
     
  23. Offline

    PatrickGER

  24. Offline

    Veve

    If I put the files to my plugins directory and after write /npc create blbecek, it said me: .... was payed for blbecek and next messages show me error. This shows conzole:
    Code:
    2011-11-01 21:10:59 [SEVERE] java.lang.NoSuchMethodError: net.minecraft.server.ItemInWorldManager.<init>(Lnet/minecraft/server/WorldServer;)V
    2011-11-01 21:10:59 [SEVERE]     at net.citizensnpcs.resources.npclib.NPCSpawner.spawnNPC(NPCSpawner.java:31)
    2011-11-01 21:10:59 [SEVERE]     at net.citizensnpcs.resources.npclib.NPCManager.register(NPCManager.java:164)
    2011-11-01 21:10:59 [SEVERE]     at net.citizensnpcs.resources.npclib.NPCManager.register(NPCManager.java:193)
    2011-11-01 21:10:59 [SEVERE]     at net.citizensnpcs.commands.BasicCommands.create(BasicCommands.java:226)
    2011-11-01 21:10:59 [SEVERE]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2011-11-01 21:10:59 [SEVERE]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    2011-11-01 21:10:59 [SEVERE]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    2011-11-01 21:10:59 [SEVERE]     at java.lang.reflect.Method.invoke(Method.java:597)
    2011-11-01 21:10:59 [SEVERE]     at net.citizensnpcs.resources.sk89q.CommandsManager.executeMethod(CommandsManager.java:522)
    2011-11-01 21:10:59 [SEVERE]     at net.citizensnpcs.resources.sk89q.CommandsManager.execute(CommandsManager.java:406)
    2011-11-01 21:10:59 [SEVERE]     at net.citizensnpcs.Citizens.onCommand(Citizens.java:202)
    2011-11-01 21:10:59 [SEVERE]     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:39)
    2011-11-01 21:10:59 [SEVERE]     at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:163)
    2011-11-01 21:10:59 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:353)
    2011-11-01 21:10:59 [SEVERE]     at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:756)
    2011-11-01 21:10:59 [SEVERE]     at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:721)
    2011-11-01 21:10:59 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:714)
    2011-11-01 21:10:59 [SEVERE]     at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    2011-11-01 21:10:59 [SEVERE]     at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    2011-11-01 21:10:59 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
    2011-11-01 21:10:59 [SEVERE]     at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    2011-11-01 21:10:59 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:464)
    2011-11-01 21:10:59 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
    2011-11-01 21:10:59 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    Im so sorry for my english.
    Thanks for help! :)
     
  25. Offline

    Billyyofosho

    When i try to give a Npc a job by doing /toggle Trader
    It gives me a error saying Invaild Npc Type
     
  26. Offline

    Exanimo

    These aren't custom skins... it's a player database with the skin they currently have.
    So you can make NPC's with these user's names so your NPC will have their skin.
     
    PatrickGER likes this.
  27. Offline

    Exanimo

    Is your trader.jar in the directory plugins/citizens/types ?
    Otherwise it could be that your trader.jar version doesn't match the citizens.jar, redownload them both from one source to be sure.
     
  28. Offline

    JargonTheRed

    Try typing "trader" instead of "Trader".
     
  29. Offline

    Schlumpf

    Hello,
    I got a problem: I tested your example Quest, but I can't get it work:
    Code:
    Test:
        texts:
            description: A fetch quest
            completion: <g>You win! Give me that stone.
            acceptance: <g>Challenge <y>accepted<g>.
        repeats: 1
        objectives:
            '0':
                '0':
                    type: collect
                    materialid: 3
                    amount: 3
                    message: A voice echoes... "I want that stone now!"
        rewards:
             '0':
                type: item
                id: 3
                amount: 3
                take: true
    So I added the quest to the NPC and accepted it. Now I must collect 3 dirts. I destroayed now about 20 dirt blocks collected them, but nothing happens. When I type in /quest status I just got 0/3 dirts?! I have no error nothing.
    I am using the newest Citizens Build #305, Spoutcraft #718 and Bukkit #1337

    Edit: I tested it now on a quest from me, where I made in another DEV-Build which worked there just fine, but on the Build #305 this quest doesn't work too. I can collect 1000 blocks but I still got 0 collected in the quest. There's something incompatbile :/

    Hmm, now I also tested it with a new Server the onliest Plugin is Essentials and Citizens. I also force updated my Minecraft so I have all Standart now. But the "collect" Quests even don't work!
     
  30. Offline

    fullwall

    @Schlumpf - due to exploit protections, collections are only given as true when 1) the item isn't from you or a block placed by someone and 2) when you've broken a block or killed a mob for the drops.
     
  31. Offline

    Schlumpf

    Hi,
    ok thank you for this info, but now I have an error:
    Code:
    2011-11-02 16:16:21 [SEVERE] Could not pass event BLOCK_BREAK to Citizens
    java.lang.NullPointerException
        at net.citizensnpcs.questers.quests.types.CollectQuest.incrementMap(CollectQuest.java:99)
        at net.citizensnpcs.questers.quests.types.CollectQuest.incrementMap(CollectQuest.java:94)
        at net.citizensnpcs.questers.quests.types.CollectQuest.update(CollectQuest.java:46)
        at net.citizensnpcs.questers.quests.progress.ObjectiveProgress.update(ObjectiveProgress.java:32)
        at net.citizensnpcs.questers.quests.progress.QuestProgress.updateProgress(QuestProgress.java:95)
        at net.citizensnpcs.questers.QuestManager.incrementQuest(QuestManager.java:138)
        at net.citizensnpcs.questers.listeners.QuesterBlockListen.onBlockBreak(QuesterBlockListen.java:26)
        at org.bukkit.plugin.java.JavaPluginLoader$40.execute(JavaPluginLoader.java:534)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
        at net.minecraft.server.ItemInWorldManager.c(ItemInWorldManager.java:201)
        at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:165)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:500)
        at net.minecraft.server.Packet14BlockDig.a(SourceFile:43)
        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:471)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    I am using Essentials, Citizens #305 and CraftBukkit #1337
    Edit: Same on #306
     

Share This Page