[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

    pudd1nG

    @fullwall @Citizens

    I've been trying a rather large number of different ways of writing this location quest. But from comparing information on the wiki to your previous post about the location node I feel the quest pasted below is the closest I have got to getting this right.

    http://pastebin.com/Ra3yVhrf

    Would really appreciate any help on getting move to location quests properly formatted.

    Thanks!!

    UPDATE: This doesn't give me back a huge error, it just tells me the type is invalid -> http://pastebin.com/TbSm0RkG
     
  3. Offline

    fullwall

    pudd1nG likes this.
  4. Offline

    pudd1nG

    You are the greatest thing since sliced bread mate, thanks!
     
  5. Offline

    berserker109

    How do i assign quests? i didn't really understood that system
     
  6. Offline

    xellllex

    ummm Can someone help me coz my citizens quests.yml is empty I tried studying the new citizens wiki. And mind you I do understand it the thing is quest.yml is empty can someone give me a draft like an Example to serve as my guide please. Thank you so much my kids are eaching for questing now.... T_T hope you reply asap...

    Show Spoiler

    Basics

    Quests are defined in the quests.yml file located in plugins/Citizens. Each root node in that file is a quest name - below, the two example quest names in quest.yml are 'example' and 'example2'. This is what you will use ingame to identify each quest. Inside this, there are text nodes - pretty self-explanatory. Note that you can use
    to denote a line break.
    The repeats option allows you to set a limit for the number of times you can repeat the quest. -1 denotes an unlimited repeat count. Set it to 1 for once-off quests.


    Yet my quests.yml is empty .........
     
  7. Offline

    Tyrazial

    I've been encountering some issues... I create a trader NPC, and any mods or admins on the server can access its inventory to buy/sell things to it, but regular players can't.

    I am using 1.1 Citizens, CB 1135 (or whatever the latest is that works with 1.8), and the Essentials package with GroupManager for perms.
     
  8. Offline

    Silvo

    M
    Change the npc traders owner to "Server"
     
  9. Offline

    Tyrazial

    Changed the owner, now when anyone right clicks them we get:

    05:09:43 [INFO] [Citizens] An error has occurred, please wait while it is sent t
    o the developers...
    05:09:46 [INFO] [Citizens] Below is the stacktrace that has been transmitted to
    the developers, no other information has been included other than Citizens versi
    on information.
    05:09:43 [SEVERE] Could not pass event ENTITY_TARGET to Citizens
    java.lang.NoClassDefFoundError: net/citizensnpcs/PermissionManager
    at net.citizensnpcs.traders.Trader.onRightClick(Trader.java:134)
    at net.citizensnpcs.resources.npclib.HumanNPC.callRightClick(HumanNPC.ja
    va:158)
    at net.citizensnpcs.listeners.EntityListen.onEntityTarget(EntityListen.j
    ava:113)
    at org.bukkit.plugin.java.JavaPluginLoader$66.execute(JavaPluginLoader.j
    ava:705)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:338)
    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:338)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:902)
    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:464)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)


    Now for another problem. My guards are flagged as bouncer, with skeletons, zombies, and spiders flagged as -m. Yet it's very rare that any of the guards will actually attack.

    Second issue with guards: When equipped with a bow, they will not fire arrows. I toggled trader on long enough to give all of them 1000 arrows, and now maybe 1/1000th of their attacks is firing an arrow. The rest they just swing at them with the bow. Can guards not used bows yet? Cause that would make my archers not as cool as I'd love them to be.

    Also: Great job you guys with this plugin. Even with the issues I've had with it I've had nothing but fun programming NPCs. I especially love the pathing ability. Patrolling guards are awesome.
     
  10. Offline

    thedark54

  11. Offline

    mspau86

    @fullwall - I asked yesterday about four issues that are frustrating me. I've got most of everything to work, BUT

    1) I cannot scroll through messages with left click.
    2) My patrolling guards (following waypoints) wont stop and kill monsters, they just keep walking.
    2) How do you enter the location for a "move location" quest? I've tried a couple different ways. (example below)
    3) Why won't it update when I kill monsters on a "hunt" quest? It always stays at zero. (example below)

    Show Spoiler

    #JOE QUEST
    explore1:
    texts:
    description: <g>(Quest) <y>Some guy once told me of a wooden tower that marked an underground cavern. Could you see if it's true<g>?
    completion: <g>Thank you for reviving my hope that there is still adventure in the world. <y>Here are 10 rupees<g>.
    acceptance: <g>Quest <y>accepted<g>.
    repeats: 1
    objectives:
    '0':
    '0':
    type: move location
    location: world;361.0;64.0;230.3537408263714;
    amount: 10
    message: <g>Location Discovered. <y>Return to Joe<g>.
    rewards:
    '0':
    type: money
    money: 5
    take: false
    #BOZWEVIAL QUEST
    zombieskele10:
    texts:
    description: <g>(Quest) <y>I hate the undead! One ate my dog Fido. Kill 10 of any zombie or skeleton for a reward.
    completion: <g>Thank you so much! Fido's spirit smiles upon you! <y> Here are 5 rupees<g>.
    acceptance: <g>Quest <y>accepted<g>.
    repeats: -1
    objectives:
    '0':
    '0':
    type: hunt
    string: '*'
    amount: 1
    message: <g>Monsters slain \o/ <y>Return to Bozwevial<g>.
    rewards:
    '0':
    type: money
    money: 5
    take: true
     
  12. Offline

    pudd1nG

    For an example of a move location quest check -> http://pastebin.com/5xjdK9y1
    (hopefully now when people search this thread this post should pop out)
     
  13. Offline

    fullwall

    @mspau86
    1) Scroll through messages with right click.
    2) Will be fixing shortly.
    3) see @pudd1nG 's post below.
    4) Will look into it.
     
  14. Offline

    fullwall

    Btw, just a few quest tips and tricks. <br> indicates a newline for descriptions. <code> indicates a colour code. <[colour name]> indicates a name, generally they are the same as the Bukkit naming except with light/dark abbreviated to d/l (dgrey, etc.)
     
  15. Offline

    Cryptite

    Is anyone else getting a loop of:

    05:09:43 [INFO] [Citizens] An error has occurred, please wait while it is sent t
    o the developers...
    05:09:46 [INFO] [Citizens] Below is the stacktrace that has been transmitted to
    the developers, no other information has been included other than Citizens versi
    on information.

    on a /reload that never ends until the server completely times out or is forced to be shutdown? It's not always, but it's often enough that it's causing problems. Perhaps I need to turn on debug mode?

    Also, what prevents the loading of other NPC types even when I have them all in the types folder. All that is present is Trader. Might that also explain the lack of their config file items?
     
  16. Offline

    mspau86

    @pudd1nG - Thanks for the example "hunt" file. I appreciate it.
    @fullwall - Sorry, I meant "I can't scroll through quests," not messages. Mistype above.
    - Additionally, thanks for all the hard work you and aPunch do. The community loves this plugin.

    @Cryptite - I was getting those messages when I had bad code in my quests or npc files. I had to go find it and fix it. It was usually that an "argument" wasn't formatted correctly, or a node was messed up. I'm not getting them anymore :)
     
  17. Offline

    jimbobt123

    Er... 2 problems.

    First: If I give a quester more than 1 quest, it reads the description from the first one for ALL of them.
    Second: Rewards aren't working
     
  18. Offline

    mspau86

    @fullwall @aPunch

    Woah, just hit a roadblock. No citizens are loading now. I restarted my server and got this error:

    [SEVERE] Error occurred while enabling Citizens v1.1 (Is it up to date?): null.

    It really happened out of nowhere. I downloaded the latest build of Citizens #208 and it's still happening.
     
  19. Offline

    vianns

    Rewards are working for me.

    I don't understand how objective's steps are working :/ (my server is offline atm, I can't test anything). Could someone explain me ?
     
  20. Offline

    fullwall

    @Cryptite - yeah, it's a problem with the plugin.yml that we're still sorting out :/
    @mspau86 - could you pastebin?
     
  21. Offline

    Poet68

  22. Offline

    mspau86

    @aPunch @fullwall
    I pasted the error below. I've had the RB 1185 CraftBukkit Build for a while. Citizens 1.1 worked up until just an hour ago.
    and Pastebin here http://pastebin.com/x8Uze8Q6

    When I start server:
    Show Spoiler

    11:00:44 [SEVERE] Error occurred while enabling Citizens v1.1 (Is it up to date?): null
    java.lang.ExceptionInInitializerError
    at net.citizensnpcs.blacksmiths.BlacksmithType.getProperties(BlacksmithType.java:17)
    at net.citizensnpcs.npctypes.CitizensNPCLoader.loadNPCType(CitizensNPCLoader.java:44)
    at net.citizensnpcs.Citizens.loadNPCTypes(Citizens.java:308)
    at net.citizensnpcs.Citizens.onEnable(Citizens.java:77)
    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 net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    Caused by: java.lang.NullPointerException
    at net.citizensnpcs.properties.CachedYAMLHandler.load(CachedYAMLHandler.java:39)
    at net.citizensnpcs.properties.CachedYAMLHandler.<init>(CachedYAMLHandler.java:30)
    at net.citizensnpcs.properties.PropertyManager.<clinit>(PropertyManager.java:12)
    ... 14 more



    When I stop Server:
    Show Spoiler

    [SEVERE] Error occurred while disabling Citizens v1.1 (Is it up to date?): Could not initialize class net.citizensnpcs.properties.PropertyManager
    java.lang.NoClassDefFoundError: Could not initialize class net.citizensnpcs.properties.PropertyManager
    at net.citizensnpcs.Citizens.onDisable(Citizens.java:152)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:128)
    at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:941)
    at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:294)
    at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:287)
    at org.bukkit.craftbukkit.CraftServer.disablePlugins(CraftServer.java:168)
    at net.minecraft.server.MinecraftServer.stop(MinecraftServer.java:325)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:404)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)


    And this is a full readout of both of them together with everything in between:
    Show Spoiler

    10:30:56 [INFO] Starting minecraft server version Beta 1.8.1
    2011-09-26 10:30:56 [INFO] Loading properties
    2011-09-26 10:30:56 [INFO] Starting Minecraft server on *:25565
    2011-09-26 10:30:56 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-1067-g6301507-b1185jnks (MC: 1.8.1)
    2011-09-26 10:30:56 [INFO] [PermissionsEx] sql backend registered!
    2011-09-26 10:30:56 [INFO] [PermissionsEx] file backend registered!
    2011-09-26 10:30:56 [INFO] [PermissionsEx] PermissionEx plugin initialized.
    2011-09-26 10:30:56 [INFO] [PermissionsEx] p2compat backend registered!
    2011-09-26 10:30:56 [INFO] [PermissionsCompat] Compatibility Layer Initalized!
    2011-09-26 10:30:57 [INFO] [PermissionsEx] Initializing file backend
    2011-09-26 10:30:57 [INFO] Preparing level "world"
    2011-09-26 10:30:57 [INFO] Default game type: 0
    2011-09-26 10:30:57 [INFO] Preparing start region for level 0 (Seed: 1782546243)
    2011-09-26 10:30:58 [INFO] Preparing spawn area: 69%
    2011-09-26 10:30:58 [INFO] Preparing start region for level 1 (Seed: -4825252061116636678)
    2011-09-26 10:30:59 [INFO] Preparing spawn area: 57%
    2011-09-26 10:30:59 [INFO] BOSEconomy: Located Permissions 2.7.7.
    2011-09-26 10:30:59 [INFO] BOSEconomy v0.7.2 enabled.
    2011-09-26 10:30:59 [INFO] [PermissionsEx] Superperms support enabled.
    2011-09-26 10:30:59 [INFO] [PermissionsEx] v1.14 enabled
    2011-09-26 10:30:59 [INFO] [TotallyOrbSome] v1.1 final Enabled!
    2011-09-26 10:30:59 [INFO] [ChatManager] ChatManager enabled!
    2011-09-26 10:30:59 [INFO] [Modifyworld] Modifyworld enabled!
    2011-09-26 10:30:59 [INFO] [PermissionsCompat] Compatibility layer enabled.
    2011-09-26 10:30:59 [INFO] [ChestShop] Permissions version 2.7.7 loaded.
    2011-09-26 10:30:59 [INFO] [ChestShop] version 3.2 initialized!
    2011-09-26 10:30:59 [INFO] [ChestShop] BOSEconomy 0.7.0 loaded.
    2011-09-26 10:30:59 [SEVERE] Error occurred while enabling Citizens v1.1 (Is it up to date?): null
    java.lang.ExceptionInInitializerError
    at net.citizensnpcs.blacksmiths.BlacksmithType.getProperties(BlacksmithType.java:17)
    at net.citizensnpcs.npctypes.CitizensNPCLoader.loadNPCType(CitizensNPCLoader.java:44)
    at net.citizensnpcs.Citizens.loadNPCTypes(Citizens.java:308)
    at net.citizensnpcs.Citizens.onEnable(Citizens.java:77)
    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 net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    Caused by: java.lang.NullPointerException
    at net.citizensnpcs.properties.CachedYAMLHandler.load(CachedYAMLHandler.java:39)
    at net.citizensnpcs.properties.CachedYAMLHandler.<init>(CachedYAMLHandler.java:30)
    at net.citizensnpcs.properties.PropertyManager.<clinit>(PropertyManager.java:12)
    ... 14 more
    2011-09-26 10:30:59 [INFO] [mcMMO] PermissionsEx found, using PermissionsEx.
    2011-09-26 10:30:59 [INFO] Loading Config File...
    2011-09-26 10:31:01 [INFO] mcMMO version 1.1.14 is enabled!
    2011-09-26 10:31:01 [INFO] mcMMO is keeping usage stats an. To opt-out for whatever bizarre reason, check plugins/stats.
    2011-09-26 10:31:02 [INFO] Server permissions file permissions.yml is empty, ignoring it
    2011-09-26 10:31:02 [INFO] Done (0.501s)! For help, type "help" or "?"
    2011-09-26 10:31:56 [INFO] CONSOLE: Stopping the server..
    2011-09-26 10:31:56 [INFO] Stopping server
    2011-09-26 10:31:56 [INFO] BOSEconomy: Saving plugin data.
    2011-09-26 10:31:56 [INFO] BOSEconomy 0.7.2 disabled.
    2011-09-26 10:31:56 [INFO] [ChestShop] Economy plugin disabled!
    2011-09-26 10:31:56 [INFO] [PermissionsEx] v1.14 disabled successfully.
    2011-09-26 10:31:56 [INFO] [ChatManager] ChatManager disabled!
    2011-09-26 10:31:56 [INFO] [Modifyworld] Modifyworld disabled!
    2011-09-26 10:31:56 [INFO] [ChestShop] version 3.2 shutting down!
    2011-09-26 10:31:56 [SEVERE] Error occurred while disabling Citizens v1.1 (Is it up to date?): Could not initialize class net.citizensnpcs.properties.PropertyManager
    java.lang.NoClassDefFoundError: Could not initialize class net.citizensnpcs.properties.PropertyManager
    at net.citizensnpcs.Citizens.onDisable(Citizens.java:152)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:128)
    at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:941)
    at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:294)
    at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:287)
    at org.bukkit.craftbukkit.CraftServer.disablePlugins(CraftServer.java:168)
    at net.minecraft.server.MinecraftServer.stop(MinecraftServer.java:325)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:404)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    2011-09-26 10:31:56 [INFO] mcMMO was disabled.
    2011-09-26 10:31:56 [INFO] Saving chunks
    2011-09-26
     
  23. Offline

    aPunch

    It is caused by not having the current recommended build of CraftBukkit. Citizens 1.1 requires CB 1185 or the plugin.yml will break.
     
  24. Offline

    aPunch

    /toggle healer

    /toggle trader

    /toggle blacksmith

    etc..
     
  25. Offline

    Roshannnn

    I Really love this plugin! (I saw videos) But, (i have 1.1) when i type /npc it says i dont have the permissions. (i dont have a permissions plugin.)
     
  26. Offline

    fullwall

    @mspau86 - try updating all the type jars with the latest build if you haven't already. Otherwise, that's a really really strange error.
     
  27. Offline

    Hryniu

    Yea.. Developers anwserd to each question, but not mine.. Can you fix this, otherwise i cannot make my trader sell thing ?And whats the purpose of the trader if he cannot sell items.
     
  28. Offline

    Adinoob

    My permissions for default players:

    - citizens.use.trader
    - citizens.trader.use.*
    - citizens.basic.use.help
    - citizens.basic.use.info
    - citizens.trader.use.trade

    Op and permission '*' can open trader, but default can't.
    I use PermissionsEx 1.14 and bPermissions 1.2.5 for testing.
     
  29. Offline

    Peepek

    how add grant to quest (in reward) ? Example please :) Can i give player item and grant to quest?
     
  30. Offline

    GioGimic

    When i toggle guard the npc will not follow me , is this just me or ?
     
  31. Offline

    pitichampi

    Hello :)
    I love your plugin but I'm wondering how to create multiple steps quests. I haven't understand everything on the wiki. Could you give a little example of a multiple steps quest please ?
    Regards.
     

Share This Page