[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

    Akjosch

    If I understand the documentation correctly, this should be possible by adding a "rewards" block to every objective, like this:

    Code:
                '0':
                    type: delivery
                    npcdestination: 38
                    materialid: 5
                    amount: 5
                    message: Fine, let's find Father Vermillo and give him 3 SAPLING for the church's garden!
                    rewards:
                        '0':
                            type: item
                            id: 6
                            amount: 3
                            take: false
    
    Slight understanding problem here: I think you can finish the objectives in any order (as opposed to stages) - at least, that's what the "optional" and "finishnow" keywords suggest, else a combination of "finishnow" without "optional" would make no sense ... As such, it would likely be better to split the quest's objectives into separate stages.

    Should work, though not tested: Make the first stage ('0') have only one optional objective (doesn't matter which one), and add the items as stage rewards:

    Code:
            '0':
                '0':
                    type: delivery
                    npcdestination: 0 # doesn't matter
                    materialid: 1 # neither does this
                    amount: 1 # ... or this
                    message: Have some planks! # I don't think this gets printed at all ....
                    optional: true
                rewards:
                    '0':
                        type: item
                        id: 5
                        amount: 5
                        take: false
            # Real stages follow here
            '1':
                '0':
    # ...
    
     
  3. Offline

    SubLexx

    when i use /npc copy
    then geht i a copy from the npc but the old/copied npc stack in the new npc o.o and both walks together when i make waypoints or try /npc move to unstack the npc's ^^'
     
  4. Offline

    fullwall

    To all - may be promoting 1.1.3 soon as RB #1240 compatibility issues are still an issue in 1.1.2.
    @SubLexx - see ^ - please use dev builds.
     
  5. Offline

    Shooty

    hey Guys, anyone can Help me, i'll try to set my guards for they Only attack mob but i don't understand how flag's system work same With wiki Hel. So if anyone can Help me and say me what's command type, it Will be cool :)
     
  6. Offline

    Imm0rt41

    just set the type to -a, itll work fine then
     
  7. Offline

    Imm0rt41

    ok, HUGE bug you need to fix. if you name an npc after yourself and relog, the game thinks your that npc and anything you do will be outputted through him. also no chat will show up because the game is ignoring you because the npc is thought to be you. any teleports you might do will teleport him instead because again, the game thinks its you. i posted a thread in bukkit help on it, heres the thread so you can read more about it.

    http://forums.bukkit.org/threads/um-very-weird-problem-that-only-happens-on-my-server.40314/
     
  8. Offline

    Shooty

    I think if you use the dev build it's fixed

    (thanks for the help ) :)
     
  9. Offline

    Imm0rt41

    ok, yay, and thx, tell me if that does work, cause i think thats what caused my npc to start attacking mobs i defined on my server because he definitely wasnt attacking with creeper -m. he just sat there and let me die.........
     
  10. Offline

    kelthalorn

    Thx for your help. But, unfortunatly, it seams not be the good solution. I've tried your syntax but I get this message when reloading citizens :

    Code:
    [Citizens] Invalid quest objective - incorrect type specified. Quest 'Let's Find Your Way' not loaded.
    
    You speak about documentation, but I never see any documentation speaking about "optional" or "finishnow" syntaxes. Where can I find it please. I've certainly mess something and it should more efficient to see a complete documentation. At this time, I only know the wiki.
     
  11. Offline

    Akjosch

    Sorry that my ideas didn't work; I'll see if I can refine them a bit further when I'll have time to actually test them on my server.

    It's on the wiki, actually, here: http://wiki.citizensnpcs.net/index.php?title=Quester#Objectives - other than that, I just have the habit of looking through the source code directly.

    The thing about the wiki though which makes it rather useless is that nobody can contribute. You can't change stuff anonymously, you can't create an account either. A tragic waste of perfectly good wiki software. :)
     
  12. Offline

    BlancoLanda

    Code:
    19:36:28 [SEVERE] Could not pass event ENTITY_TARGET to Citizens
    java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integ
    er
            at net.citizensnpcs.SettingsManager.getInt(SettingsManager.java:41)
            at net.citizensnpcs.healers.Healer.onRightClick(Healer.java:53)
            at net.citizensnpcs.resources.npclib.HumanNPC.callRightClick(HumanNPC.ja
    va:165)
            at net.citizensnpcs.listeners.EntityListen.onEntityTarget(EntityListen.j
    ava:113)
            at org.bukkit.plugin.java.JavaPluginLoader$68.execute(JavaPluginLoader.j
    ava:719)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:339)
            at net.citizensnpcs.listeners.PlayerListen.onPlayerInteractEntity(Player
    Listen.java:78)
            at org.bukkit.plugin.java.JavaPluginLoader$12.execute(JavaPluginLoader.j
    ava:321)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:339)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:903)
            at net.minecraft.server.Packet7UseEntity.a(SourceFile: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:471)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    19:36:28 [INFO] [Citizens] An error has occurred, please wait while it is sent t
    That happens when I rightclick a healer! having this config: take-health-item: '*'

    Is there any way to take health of the healer with all the objects in hand then?
     
  13. Offline

    Tanite

    That's not the only hands-off wiki around here. I'll spare you the details but I got slapped hard enough while trying to help that I'm never touching anyone's wiki again :p
     
  14. Offline

    Shooty

    Finally it's not works for me :( say me the full command

    Anyone can say me why this quest don't works:

    Code:
    heal:
        texts:
            description: <y>-----<g>[<y> Une affaire de potions <g>]<y>-----<br><y>Nous voulons faires des potions, malheureusement, les plantes ne poussent pas<br><y>pouvez vous nous apporté 6 Os pour qu'on puisse faire<br><y> de l'engrais avec ?
            completion: Merci! Je vous est remi sur pied !
            acceptance: <g>Quête <y>accepté<g>. <y>/<g>quest <y>status
        repeats: -1
        objectives:
            '0':
                '0':
                    type: item
                    id: 352
                    amount: 6
        rewards:
             '0':
                type: item
                id: 352
                amount: 6
                take: true
             '1':
                type: health
                amount: 20

    When i try to assign, NPC say "No quest with that name..." I'd already try /citizens reload, reboot ...
     
  15. Offline

    Imm0rt41

    its "tell me" not "say me". tell is used when referring to talking to a person. saying is used when referring to saying stuff.

    and not sure on what your question is.
     
  16. Offline

    Shooty

    Ok sorry :p When i try to assign the quest "heal" to my NPC, the plugins tell my like that this quest doesn't exist.
    (I'm french)
     
  17. Offline

    Waffletastic

    @fullwall Couple question for Quests, is it possible to give a player an item of quest acceptance? Also is it possible for delivery quests, to have the quest complete once the item is delivered, not after returning to the quest giver?
     
  18. Offline

    Akjosch

    There is no objective type "item", if I remember correctly. Maybe you meant "delivery" or "collect"?
     
  19. Offline

    Akjosch

    For the second one: Try "finishnow: true" in the final "delivery" quest objective.
     
  20. Offline

    thedark54

    Hello, what permission plugin works well with your plugin ?
     
  21. I think i'm currently using 1.1.1, but when i attempt to have a reward as permissions, it tends to not complete the quest, and it normally lags or crashes my server... i NEED this functionality... but i'm just reporting it now :) (updating to 1.1.2 atm, to see if it fixes my problems)

    Latest recomended build of cb

    Above was fixed by updating to 1.1.2...

    However, when i do permissions as a reward, it assigns permission.node=false (it sets the rewarded permission node to false, instead of true)
     
  22. Offline

    Waffletastic

    Could you send me an example quest with that in it?
     
  23. Offline

    Imm0rt41

    Anything, it really doesn't matter. However, I prefer bPermissions, the guy is a great coder and it's rather simple and easy to use
     
  24. Offline

    Akjosch

    Hmm, you're right. This one looked to me like it would work, but it didn't ...

    Code:
    Test Quest:
        texts:
            description: He, can you bring a wood plank to Bob over there?
            acceptance: Great, thanks!
            completion: Aw man, I needed that. Have a coin.
        repeats: -1
        objectives:
            '0':
                '0':
                    type: delivery
                    amount: 1
                    materialid: 5
                    npcdestination: 0
                    finishere: true
                    message: "Thanks, man!"
        rewards:
            '0':
                type: money
                money: 1
                take: false
    
     
  25. Offline

    Shooty

    This is what the wiki says :

    Objective Types
    To aid with generic objective design, each objective can use one of a common set of variables:
    • amount
    • string
    • materialid
    • location
    • item
    • npcdestination (destination NPC ID)
     
  26. Offline

    Akjosch

    Yep. Those are variable names common to a few types. Those aren't types.

    And yes, the wiki is rather useless and confusing; but as much as I'd like to, I can't improve it.
     
  27. Offline

    Dragonnight09

    Ok...now how is the Inventory-editor of your plugin working?! i can only give 1 piece of armor to my NPC...
     
  28. Offline

    Deathlysteve-

    IS it just me, or when you download 1.1.2 from BukkitDev, (and change the version number from 1.1.1 to 1.1.2 in citizens.jar/plugin.yml) it comes up with THIS error...
    Code:
    2011-10-07 19:23:35 [INFO] [Citizens] NPC types loaded: quester, healer, blacksmith, trader, wizard, guard
    2011-10-07 19:23:36 [INFO] [Citizens] Permissions system found (PermissionsBukkit v1.2)
    2011-10-07 19:23:36 [INFO] [Citizens] An error has occurred, please wait while it is sent to the developers...
    2011-10-07 19:23:46 [INFO] [Citizens]
    2011-10-07 19:23:46 [INFO] [Citizens] Citizens Error Reporting - Powered by CreeperHost.net
    2011-10-07 19:23:46 [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-10-07 19:23:36 [SEVERE] Error occurred while enabling Citizens v1.1.2 (Is it up to date?): net/citizensnpcs/PermissionManager
    
    java.lang.NoClassDefFoundError: net/citizensnpcs/PermissionManager
    
        at net.citizensnpcs.questers.QuesterCommands.addPermissions(QuesterCommands.java:259)
    
        at net.citizensnpcs.permissions.PermissionManager.addPermissions(PermissionManager.java:118)
    
        at net.citizensnpcs.permissions.PermissionManager.<init>(PermissionManager.java:51)
    
        at net.citizensnpcs.Citizens.onEnable(Citizens.java:103)
    
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
    
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:941)
    
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)
    
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:174)
    
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:157)
    
        at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:416)
    
        at org.bukkit.Bukkit.reload(Bukkit.java:182)
    
        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:358)
    
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:757)
    
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:722)
    
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:715)
    
        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:471)
    
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
    
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    
    Caused by: java.lang.ClassNotFoundException: net.citizensnpcs.PermissionManager
    
        at java.net.URLClassLoader$1.run(Unknown Source)
    
        at java.net.URLClassLoader$1.run(Unknown Source)
    
        at java.security.AccessController.doPrivileged(Native Method)
    
        at java.net.URLClassLoader.findClass(Unknown Source)
    
        at java.lang.ClassLoader.loadClass(Unknown Source)
    
        at java.net.FactoryURLClassLoader.loadClass(Unknown Source)
    
        at java.lang.ClassLoader.loadClass(Unknown Source)
    
        ... 24 more
    
    2011-10-07 19:23:46 [INFO] [Citizens] An error has occurred, please wait while it is sent to the developers...
    
    2011-10-07 19:23:52 [INFO] [Citizens]
    
    2011-10-07 19:23:52 [INFO] [Citizens] Citizens Error Reporting - Powered by CreeperHost.net
    
    2011-10-07 19:23:52 [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-10-07 19:23:52 [INFO] [Citizens] Economy plugin found (iConomy v6)
    I JUST downloaded 1.1.2 fr like the 20th time and it wont work ffs!!!
     
  29. Offline

    Nibelton

    Code:
        objectives:
            '0':
                '0':
                    type: hunt
                    string: Zombie
                    amount: 10
                    message: You killed all the zombies required!
    
                '1':
                    type: hunt
                    string: Skeleton
                    amount: 10
                    message: You killed all the skeletons required!
    
    but in /quest status mobs names is empty,and no matter how much i kill its still says 0 killed
     
  30. Offline

    Exidous

    can a quest contain a objective to kill another npc? what would it be under? mob?
     
  31. Offline

    Exidous

    remove the space between the objectives like this:

    Code:
    objectives:
            '0':
                '0':
                    type: hunt
                    string: Zombie
                    amount: 10
                    message: You killed all the zombies required!
                '1':
                    type: hunt
                    string: Skeleton
                    amount: 10
                    message: You killed all the skeletons required!
    
    isnt there a parser for this plugin configs?, simple typos are most of these errors.
     

Share This Page