[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

    Scandragon

  3. Offline

    IndieHaz

    Hello,

    I love the plugin, right now I'm trying to assign npc's to a specific type.
    But whenever I use the toggle command it says: 'Invalid NPC type'.
    e.g. /toggle quester

    Would appreciate the help, sorry If I am writing this in the wrong format.
     
  4. Offline

    rareshutzu

    My NPC Guards, Bouncers, aggresive are not fighting back when hit. Is it because I've set them only mob flag?..
     
  5. Offline

    glow

    I Shall slap you for that !! Roar!.
     
  6. Offline

    hiro24

    Quick question: Saw the notes on build #262.. I'm guessing that also applies for apples? Was building a quest to go collect x number of apples, and noticed none of them were registering.

    EDIT: Well that's just wierd.. I just noticed if I used shears to break the leaves blocks from trees, they counted as apples.... o....k....
     
  7. Offline

    Waffletastic

    @fullwall is it possible for a location quest to have the quest end upon reaching the location? I tried finishhere: true but it didn't work.
     
  8. Offline

    hiro24

    Here's how I have one of mine set up.. works for us. Check it against your formatting.

    Code:
        objectives:
            '0':
                '0':
                    type: move location
                    location:
                        x: -104
                        y: 3
                        z: -57
                        world: niflheim
                    amount: 2
                    finishhere: true
                    message: Loki glares at you from the shadows....
    
     
  9. Offline

    IndieHaz

    Also just to add: when I type /toggle help nothing comes up but the =======[ NPC Toggle List <1/1> ]==========
     
  10. Offline

    Waffletastic

    Mine looks exactly like that, but I still have to return to the quest giver to finish the quest.
     
  11. Offline

    Waffletastic

    okay I did it exactly like you, but now when I get to the location and type /quest status it tells me java null pointer exception or something heres my quest setup
     
  12. Offline

    Waffletastic

    Code:
    Finding Kipper:
        texts:
            description: <g>Quest Finding Kipper.
            completion: <g>Quest Complete.
            acceptance: <g>Quest <y>accepted<g> Go find Kipper in the catacombs.
        repeats: -1
        objectives:
             '0':
                '0':
                    type: move location
                    location:
                           x: -14
                           y: 61
                           z: 911
                    world: Arvina
                    amount: 3
                    finishhere: true
                    message: <g>You found Kipper! But he looks reluctant to leave. You should go talk to him.
        rewards:
             '0':
                type: item
                id: 0
                amount: 0
                take: true
     
  13. Offline

    tutuf

    Hello,

    I would like to execute commands to give rigths to my players and I'm looking for the syntax and possibilities that rewards command can offer.
    Thanks in advance for your help.

    Code:
       rewards:
             '0':
                type : command
                command : ?
    
     
  14. Offline

    Waffletastic

    20:35:54 [SEVERE] java.lang.NullPointerException
    20:35:54 [SEVERE] at net.citizensnpcs.utils.StringUtils.format(StringUtils
    .java:256)
    20:35:54 [SEVERE] at net.citizensnpcs.questers.quests.types.LocationQuest.
    getStatus(LocationQuest.java:35)
    20:35:54 [SEVERE] at net.citizensnpcs.questers.QuesterCommands.viewCurrent
    QuestStatus(QuesterCommands.java:438)
    20:35:54 [SEVERE] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native M
    ethod)
    20:35:54 [SEVERE] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown S
    ource)
    20:35:54 [SEVERE] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unkno
    wn Source)
    20:35:54 [SEVERE] at java.lang.reflect.Method.invoke(Unknown Source)
    20:35:54 [SEVERE] at net.citizensnpcs.resources.sk89q.CommandsManager.exec
    uteMethod(CommandsManager.java:522)
    20:35:54 [SEVERE] at net.citizensnpcs.resources.sk89q.CommandsManager.exec
    ute(CommandsManager.java:406)
    20:35:54 [SEVERE] at net.citizensnpcs.Citizens.onCommand(Citizens.java:202
    )
    20:35:54 [SEVERE] at org.bukkit.command.PluginCommand.execute(PluginComman
    d.java:40)
    20:35:54 [SEVERE] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCo
    mmandMap.java:163)
    20:35:54 [SEVERE] at org.bukkit.craftbukkit.CraftServer.dispatchCommand(Cr
    aftServer.java:355)
    20:35:54 [SEVERE] at net.minecraft.server.NetServerHandler.handleCommand(N
    etServerHandler.java:757)
    20:35:54 [SEVERE] at net.minecraft.server.NetServerHandler.chat(NetServerH
    andler.java:722)
    20:35:54 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHand
    ler.java:715)
    20:35:54 [SEVERE] at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:3
    3)
    20:35:54 [SEVERE] at net.minecraft.server.NetworkManager.b(NetworkManager.
    java:226)
    20:35:54 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHand
    ler.java:92)
    20:35:54 [SEVERE] at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetSe
    rverHandler.java:500)
    20:35:54 [SEVERE] at net.minecraft.server.NetworkListenThread.a(SourceFile
    :108)
    20:35:54 [SEVERE] at net.minecraft.server.MinecraftServer.h(MinecraftServe
    r.java:471)
    20:35:54 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:374)
    20:35:54 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:417)

    Getting the above error when doing /quest status for the above quest.
     
  15. Offline

    Scandragon

    I'm assuming you want to give them a permission node

    Code:
       rewards:
             '0':
                type : permission
                permission : 'plugin.permission'
                take: false
    
    Or if you want to add them to a group
    Code:
       rewards:
             '0':
                type : rank
                rank : 'groupname'
                take: false
    
    For removing those again, change false to true
     
  16. Offline

    SilentStray

    I'm having this same issue.

    CB 1321
    With Citizens Build: Build #265
     
  17. Offline

    Scandragon

    For those using CommandHelper.. Here are some useful aliases I made for citizens

    Code:
    #Award the player mcMMO exp
    #This will NOT work with 'server: true'
    /questexp $player $skill $amount = runas(~op, '/addxp $player $skill $amount')
    
    #Requested - /quest will give /quest help (might be more useful to have it /quest status in some cases, but that's for each serverowner to decide)
    #This is for players to run
    /quest [$command='help'] [$] = /quest $command $
    
    #Create an event location for NPCs to TP to and from. This is not a command run by the questers, but by an OP
    OPs:/setevent $eventloc = store_value($eventloc, ploc())
    
    #Send the player to an eventlocation and store their current location for a return trip
    #This requires 'server: true'
    quester:/toeventloc $eventloc $player = >>>
    store_value(concat($eventloc, '_', $player), ploc($player))
    set_ploc($player, get_value($eventloc))
    <<<
    
    #Return the player from an event. Note that you can send them to different event locations and return them to each in turn
    #This requires 'server: true'
    quester:/fromeventloc $eventloc $player = set_ploc($player, get_value(concat($eventloc, '_', $player)))
     
  18. Offline

    fullwall

    @Waffletastic - do you use multiworld? Looks like the location is invalid.
     
  19. Offline

    GunGuyGunner

    I am having problems with guards radius.
    When I set a radius for guards they freeze and don't respond. If I switch Aggro off then they respond again but don't attack anything. I do
    /npc create fred
    /toggle guard
    /guard bouncer
    /guard af zombie -m
    /guard radius 50

    Then they freeze and do nothing. If I swap around adding the flag and radius, so if I add the radius first they will be fine but If I add an enemy then they freeze. Anything I'm doing wrong?
     
  20. Offline

    GooTZ

    Code:
    13:18:01 [INFO] [Citizens] Debug mode is now on.
    13:18:18 [SCHWERWIEGEND] java.lang.NoSuchMethodError: net.minecraft.server.ItemI
    nWorldManager.<init>(Lnet/minecraft/server/WorldServer;)V
    13:18:18 [SCHWERWIEGEND]        at net.citizensnpcs.resources.npclib.NPCSpawner.
    spawnNPC(NPCSpawner.java:31)
    13:18:18 [SCHWERWIEGEND]        at net.citizensnpcs.resources.npclib.NPCManager.
    register(NPCManager.java:164)
    13:18:18 [SCHWERWIEGEND]        at net.citizensnpcs.resources.npclib.NPCManager.
    register(NPCManager.java:193)
    13:18:18 [SCHWERWIEGEND]        at net.citizensnpcs.commands.BasicCommands.creat
    e(BasicCommands.java:226)
    13:18:18 [SCHWERWIEGEND]        at sun.reflect.NativeMethodAccessorImpl.invoke0(
    Native Method)
    13:18:18 [SCHWERWIEGEND]        at sun.reflect.NativeMethodAccessorImpl.invoke(U
    nknown Source)
    13:18:18 [SCHWERWIEGEND]        at sun.reflect.DelegatingMethodAccessorImpl.invo
    ke(Unknown Source)
    13:18:18 [SCHWERWIEGEND]        at java.lang.reflect.Method.invoke(Unknown Sourc
    e)
    13:18:18 [SCHWERWIEGEND]        at net.citizensnpcs.resources.sk89q.CommandsMana
    ger.executeMethod(CommandsManager.java:522)
    13:18:18 [SCHWERWIEGEND]        at net.citizensnpcs.resources.sk89q.CommandsMana
    ger.execute(CommandsManager.java:406)
    13:18:18 [SCHWERWIEGEND]        at net.citizensnpcs.Citizens.onCommand(Citizens.
    java:202)
    13:18:18 [SCHWERWIEGEND]        at org.bukkit.command.PluginCommand.execute(Plug
    inCommand.java:39)
    13:18:18 [SCHWERWIEGEND]        at org.bukkit.command.SimpleCommandMap.dispatch(
    SimpleCommandMap.java:163)
    13:18:18 [SCHWERWIEGEND]        at org.bukkit.craftbukkit.CraftServer.dispatchCo
    mmand(CraftServer.java:353)
    13:18:18 [SCHWERWIEGEND]        at net.minecraft.server.NetServerHandler.handleC
    ommand(NetServerHandler.java:756)
    13:18:18 [SCHWERWIEGEND]        at net.minecraft.server.NetServerHandler.chat(Ne
    tServerHandler.java:721)
    13:18:18 [SCHWERWIEGEND]        at net.minecraft.server.NetServerHandler.a(NetSe
    rverHandler.java:714)
    13:18:18 [SCHWERWIEGEND]        at net.minecraft.server.Packet3Chat.a(Packet3Cha
    t.java:33)
    13:18:18 [SCHWERWIEGEND]        at net.minecraft.server.NetworkManager.b(Network
    Manager.java:226)
    13:18:18 [SCHWERWIEGEND]        at net.minecraft.server.NetServerHandler.a(NetSe
    rverHandler.java:92)
    13:18:18 [SCHWERWIEGEND]        at net.minecraft.server.NetworkListenThread.a(So
    urceFile:108)
    13:18:18 [SCHWERWIEGEND]        at net.minecraft.server.MinecraftServer.h(Minecr
    aftServer.java:464)
    13:18:18 [SCHWERWIEGEND]        at net.minecraft.server.MinecraftServer.run(Mine
    craftServer.java:374)
    13:18:18 [SCHWERWIEGEND]        at net.minecraft.server.ThreadServerApplication.
    run(SourceFile:417)
    if I would create a npc this fail will print to the console... What is wrong?

    Greetz GooTZ
     
  21. Offline

    Waffletastic

    Yes I use multiverse, but all the info is correct
     
  22. Offline

    Waffletastic

    Yes I use multiverse, but all the info is correct
     
  23. Offline

    Scandragon

    Waffle, did you upgrade from a pre-1.1.x Citizens recently?
     
  24. Offline

    Waffletastic

    No, I haven't upgraded recently
     
  25. Offline

    fullwall

    @Waffletastic - does multiverse load its worlds after Citizens loads quests?
     
  26. Offline

    Waffletastic

    No
    No it doesn't
     
  27. Offline

    hiro24

    could someone help me out with how to set up collect quests for:

    apples
    stone swords

    neither seems to work for some reason
     
  28. Offline

    IndieHaz

    Hello,

    I'm trying to assign npc's to a specific type.
    But whenever I use the toggle command it says: 'Invalid NPC type'.
    e.g. /toggle quester

    Would appreciate the help, sorry If I am writing this in the wrong format.

    Also just to add: when I type /toggle help nothing comes up but the =======[ NPC Toggle List <1/1> ]==========
     
  29. Offline

    hiro24

    you may not have permissions set up to allow for toggling. Here are the nodes our admins have related to it in our permissions.yml

    citizens.toggle.help: true
    citizens.toggle.all: true
    citizens.toggle.blacksmith: true
    citizens.toggle.guard: true
    citizens.toggle.healer: true
    citizens.toggle.quester: true
    citizens.toggle.trader: true
    citizens.toggle.wizard: true

    Also, the different types have their own jar files, which go in plugins/Citizens/types folder. You might make sure you have those.
     
  30. Offline

    rareshutzu

    My guards are still not fighting back and the bouncer that patrols an area is not attacking mobs around him
     
  31. Offline

    GunGuyGunner

    Does anyone know what could be wrong?
     

Share This Page