[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

    Waffletastic

    @fullwall still looking for an answer for the error
     
  3. Offline

    hiro24

    I just noticed... w/ the other mods I have on my server I'm pretty sure I'm like.. 95% of the way to being able to do king of the hill w/ Citizens questing. @fullwall what are the chances that move location can have an optional timer requirement? Like... go to x,y,z and stay w/i the given radius for 5 minutes?
     
  4. Offline

    Safetybrick

    anyone have a quest.yml i can look at for examples of how to set up quest?
     
  5. Offline

    Akjosch

    That's my current one; just two quests, but they work fine. Enjoy!

    Code:
    Concrete: {
     texts: {
      description: "I've had this splendid idea of mixing gravel and sand to create ... stone!<br>Don't ask me for details, that's a trade secret. Anyway, sand I have enough, now I need full stacks of gravel to continue.<br>You'll get some of the stone and a bit of money in return. What about it?",
      acceptance: "Great. Get to it.",
      completion: "Wonderful! Here's your reward - 20 gold coins and 10 stone blocks.",
     },
     repeats: -1,
     objectives: {
      '0': { '0': { type: delivery, amount: 64, materialid: 13, npcdestination: 2 } },
     },
     rewards: {
      '0': { type: item, amount: 10, id: 1, take: false },
      '1': { type: money, money: 20, take: false },
     }
    }
    
    "Guard Check": {
     texts: {
      description: "Can you check if Bob and Arnold are ok? They should be patroulling here somewhere. Give them a bread loaf each too. They'll sure give you a tip if you are nice to them.",
      acceptance: "Thanks, buddy.",
      completion: "So they are both alive still? More luck than brains, I call it. In any case, have a coin for your trouble.",
     },
      repeats: -1,
      coin_reward: &COIN { type: money, money: 10, take: false },
      objectives: {
       '0': { # Delivery to the two NPCs
        '0': { type: delivery, amount: 1, materialid: 297, npcdestination: 0, rewards: { '0': *COIN }, message: "Delivered the bread loaf to Bob." },
        '1': { type: delivery, amount: 1, materialid: 297, npcdestination: 1, rewards: { '0': *COIN }, message: "Delivered the bread loaf to Arnold." },
       },
      },
      rewards: { '0': *COIN },
    }
    
     
  6. Offline

    fullwall

    @hiro24 - sounds good, I'll add.
     
  7. Offline

    Dragonslife

    Is it possible to put some sort of leveling system in this plugin, that allows you to level up by doing quests? So that we can also create quests that are only obtainable at a certain level? Also then it would be great if you could set the xp rate for the quest yourself (this way you can configure which quest you level up from or not).
    another cool function to add to this might be to create a feature which you can confige, that only allows players to level up if they have done a certain quest (or multiple) even tough they might have enough exp already to level up?
     
  8. Offline

    Scandragon

    fullwall might already be looking into this
     
  9. Offline

    Scandragon

    Your quest file will not work
    This one will work: http://google.com/search?q=referral+links#/n45NR8Vj
     
  10. Offline

    Akjosch

    Why not?

    Keep in mind, I tested it extensively in 1.1.2, and it works just fine on my server.
     
  11. Offline

    hiro24

    You might look into what I'm going to implement shortly on my server. I can't tell you how successful it will be as I haven't done it yet but here's my roadmap plan:

    The latest dev builds of Heroes, http://dev.bukkit.org/server-mods/heroes/ supports /hero admin exp <player> <exp> to add experience.

    Heroes is what we use on our server, and everybody loves it. It's great (once you get your classes set up and balanced :p )

    Using CommandHelper, http://wiki.sk89q.com/wiki/CommandHelper I'll be setting up running this command as something a regular user can do, but they won't know the actual command

    Then, it's just a matter of having a Citizens quest reward run a command. Something like:

    rewards:
    '0':
    type: command
    command: grantexp hiro24 100

    or whatever amount I decide on. I'll let you know how it works out once we set it all up if you're interested, but to the best of my knowledge, it should work. /fingers crossed
     
  12. Offline

    Eragon

    I have an error, so Citizens isn't runing. But before this error, there was another mistake: If I create 2 Npc with the same name and they are near to the other, one npc will go into the other. Can somebody help my?
     
  13. Offline

    AirsoftSupport

    I get:
    "java.lang.nosuchmethoderror net.minecraft.server.iteminworldmanager.<init>(Lnet/minecraft/server/WorldServer;)V"

    It told me to report this error. Anyone got any tips?
     
  14. Offline

    Drehverschluss

    Maby can someone help me with tha PermissionEx problem

    server is runnig Craftbukkit #1240
    PermissionEx 1.15
    Citizens 1.1.2
    so for the admins all works fine when i have the permission.alloweOP
    but for my different goups it wont let you create a NPC
    i think i made it correct with permission like this
    Permission for my group "Citizen"
    citizens.use.create
    citizens.npccount.unlimited
    and much more to set it up with name and and and
    but this 2 permissons will be the important for creating a amount of NPCs right?
    but everytime when someone try to create one the chat says "Allready reach limit" or somthing like that
    but thats strange i can make it as admin
    so what i do wrong?
     
  15. Offline

    Exidous

    were you able to get this to work? I cannot get it to work with or without commandhelper.
     
  16. Offline

    Waffletastic

    @fullwall do you know why I can't get location quests to work?
     
  17. Offline

    Guenael

    Hello i have special demand :)

    I have 3 groupe : Groupe1 Groupe2 Groupe3
    I want when groupe3 kill Groupe1 or Groupe2, they earn 1 kill on combat quest

    i have do that :

    Code:
    pvp1kill:
        texts:
            description: Quete PvP- /Tuer un allié/ Vous voici sur la terre de nos ennemis, trouvez en un et revennez me voir.(Tuez un membre de l'alliance)
            completion: <g>Bravo, un de moins, <player>. Vous recevez 20 Adelias et 20 flêches.
            acceptance: <g>Quete <y>acceptée<g>.
        repeats: 0
        requirements:
            '0':
                type: rank
                rank: Groupe3
        objectives:
            '0':
                '0':
                    type: player combat
                    amount: 1
                    string: 'g:Groupe1, g:Groupe2'
                    message: Allié mort; 1/1. Retournez voir Goblin.
        rewards:
             '0':
                type: money
                money: 20
             '1':
                type: item
                id: 262
                amount: 20
                take: false
    
    but when i kill somebody nothing happen ?

    Others quest type working
    Groupe1 Groupe2 Groupe3 : existe in bpermission and seem string: '*' don't work too

    -------------- EDIT -----

    Ok i find some evidences :

    All work well but if i kill more than 2 player , citizens ignore all others kill (count 2 more but display nothing), except if i restart the server, it continue to count AND display my kill and the 2 last kill before i restart . And the quest is validate after reboot (again) on final kill
     
  18. Offline

    hiro24

    Yes actually, I did get it to work. If you're interested, here's the line from my commandhelper alias file
    (Command isn't really called "secretcommand" but you never know who reads these things... so... yeah, I've got some ppl on my server who live to exploit)

    Code:
    /secretcommand $player $amount = runas(~op, /hero admin exp $player $amount)
    
    Note that you need to grab a dev build of Heroes. The /hero admin exp command was only changed a couple days ago to add exp, rather than set it. Here is a snipplet how you'd put it into your quests.yml file as a reward:

    Code:
            '3':
                type: command
                command: secretcommand <player> 250
                server: true
    
    This part is from the rewards section of a quest. Yes, actually type <player>, citizens will change it to the actual player name.

    As far as setting up your classes in heroes, that's much more involved. But with a little work, it's not too bad. But this is up and working for us and ppl seem to enjoy it. Best of luck getting it working. If you have any more questions about our setup, let me know. I'll try to help as best as I can.
     
  19. Offline

    j_is_me57

    said to report an error. so here it is:
    17:52:19 [SEVERE] java.lang.NoSuchMethodError: net.minecraft.server.ItemInWorldManager.<init>(Lnet/minecraft/server/WorldServer;)V
    17:52:19 [SEVERE] at net.citizensnpcs.resources.npclib.NPCSpawner.spawnNPC(NPCSpawner.java:31)
    17:52:19 [SEVERE] at net.citizensnpcs.resources.npclib.NPCManager.register(NPCManager.java:164)
    17:52:19 [SEVERE] at net.citizensnpcs.resources.npclib.NPCManager.register(NPCManager.java:193)
    17:52:19 [SEVERE] at net.citizensnpcs.commands.BasicCommands.create(BasicCommands.java:226)
    17:52:19 [SEVERE] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    17:52:19 [SEVERE] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    17:52:19 [SEVERE] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    17:52:19 [SEVERE] at java.lang.reflect.Method.invoke(Method.java:597)
    17:52:19 [SEVERE] at net.citizensnpcs.resources.sk89q.CommandsManager.executeMethod(CommandsManager.java:522)
    17:52:19 [SEVERE] at net.citizensnpcs.resources.sk89q.CommandsManager.execute(CommandsManager.java:406)
    17:52:19 [SEVERE] at net.citizensnpcs.Citizens.onCommand(Citizens.java:202)
    17:52:19 [SEVERE] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:39)
    17:52:19 [SEVERE] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:163)
    17:52:19 [SEVERE] at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:353)
    17:52:19 [SEVERE] at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:756)
    17:52:19 [SEVERE] at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:721)
    17:52:19 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:714)
    17:52:19 [SEVERE] at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    17:52:19 [SEVERE] at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    17:52:19 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
    17:52:19 [SEVERE] at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    17:52:19 [SEVERE] at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:464)
    17:52:19 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
    17:52:19 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
     
  20. Offline

    Scandragon

    Yes, you can also add mcMMO exp from citizens using CH.
    The problem is making the quest retrieve information to determine a players level and see if they are able to do the quest

    And also, for the commands questers need to run.. Add an extra variable called $code. Type in a random sequence of letter and numbers and have the quester add that as first or last variable. Then wrap then entire contents of the alias in an if statement to check if the code is right.
    That way, no need to protect the commands against users


    @fullwall delivery objectives are broken. Target will not accept the items
     
  21. Offline

    TheVnChecker

    My PermissionEx plugin doesn't work with your Citizens Plugin. I have create NPC-Trader but nobody of the Member can trade with them cause they haven't permission.

    I have add the Note: - citizens.trader.use.trade
     
  22. Offline

    MarcusHegelund

    I have download it. but it says "You dont have permissons to do that!"
    and im admin on the server
     
  23. Offline

    strontkever

    im looking for dev builds, but the download page on the website doesnt load...
     
  24. Offline

    homeworlder_

    There cant be multiple NPC's with the same name >_>
    1. If you say its supposed to happen then whats the purpose of /npc copy
    2. If it isnt the purpose, can you fix it :p ?
     
  25. Offline

    Drehverschluss

    I got the same problem..only OPs can use citizens anyway
    plz tell me to if you figure out the problem...i tryed out really much everything
     
  26. Offline

    markis95

    Can you make NPC animals and monsters? Like wolf, cow, slime, zombie etc... BTW very good mod.
     
  27. Offline

    runtsmcduck

    It gave this error:
    13:18:40 [SEVERE] java.lang.NoSuchMethodError: net.minecraft.server.ItemInWorldManager.<init>(Lnet/minecraft/server/WorldServer;)V
    13:18:40 [SEVERE] at net.citizensnpcs.resources.npclib.NPCSpawner.spawnNPC(NPCSpawner.java:31)
    13:18:40 [SEVERE] at net.citizensnpcs.resources.npclib.NPCManager.register(NPCManager.java:164)
    13:18:40 [SEVERE] at net.citizensnpcs.resources.npclib.NPCManager.register(NPCManager.java:193)
    13:18:40 [SEVERE] at net.citizensnpcs.commands.BasicCommands.create(BasicCommands.java:226)
    13:18:40 [SEVERE] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    13:18:40 [SEVERE] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    13:18:40 [SEVERE] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    13:18:40 [SEVERE] at java.lang.reflect.Method.invoke(Method.java:597)
    13:18:40 [SEVERE] at net.citizensnpcs.resources.sk89q.CommandsManager.executeMethod(CommandsManager.java:522)
    13:18:40 [SEVERE] at net.citizensnpcs.resources.sk89q.CommandsManager.execute(CommandsManager.java:406)
    13:18:40 [SEVERE] at net.citizensnpcs.Citizens.onCommand(Citizens.java:202)
    13:18:40 [SEVERE] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:39)
    13:18:40 [SEVERE] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:163)
    13:18:40 [SEVERE] at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:353)
    13:18:40 [SEVERE] at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:756)
    13:18:40 [SEVERE] at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:721)
    13:18:40 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:714)
    13:18:40 [SEVERE] at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    13:18:40 [SEVERE] at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    13:18:40 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
    13:18:40 [SEVERE] at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    13:18:40 [SEVERE] at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:464)
    13:18:40 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
    13:18:40 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)

    Here's the list of my plugins:
    Appleseed, DiscoSheep, DropChest, Giant Trees, Growbie, HookShot, kaDiving, Lockette, MineMaze, MyWarp, NarrowtuxLib, PaintingSwitch, Permissions, PickBoat, PickPocket, PistonChest, PorteCoulissante, PowerSigns, PumpkinDiver, RetractableBridge, RocketBoots, Scroll of Random Uselessness, StreetLamps, TeslaCoil, Tetris, UnlimitedLava, VoxelSniper, WorldEdit, WorldGuard, Citizens, ScrollingMenuSign, WormholeXTreme
     
  28. Offline

    Ampix0

    The download page of the site wont load so I cant read the instructions
     
  29. Offline

    Thaevin

    For some reason, whenever I create anyt ype of NPC whatsoever, it doubles. By that, I mean for example:
    I type in /Npc Create Town_Guard then I go somewhere else, and type in /Npc Create Town_Guard (Because I would like multiple Guards). Instead of each guard staying at their own place, the previous guard jumps and stack/bunches up with the newly created Guard. Could I have some help please?
     
  30. Offline

    Scandragon

    You can have as many as you like with the same name.
    Simply get the latest build from ci.citizensnpcs.net (temp. down at the moment)
    Stated many times over the past couple of pages.
    It's a problem with bukkit trying to prevent multiple players with the same name
     
  31. Offline

    Drehverschluss

    why nobody can answer me about my Permission EX problem?
     

Share This Page