[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

    cookiejunkie

    Great Plugin, Its what npcs should be
     
  3. Offline

    nitrousspark

    hey, i was wondering what code you used for the NPC's. im just beggining plugin developing and i wanted to make a little plugin but i dont know how to make the npcs. thanks!
     
  4. Offline

    Vein

    Hey, I'm getting an issue with my NPCs vanishing after I shut down the server or /reload it.

    How do I stop this?
     
  5. You need to have Vault installed
    Make sure you have the types.jar in the correct folder in the citizens directory. (if you want a quester, you have to have the quester.jar in the types part of citizens)
     
  6. Offline

    Lilerem94

    Okey thx it works but i have one problem to..
    if i try to create a guard he doesn't work..
    they dont move or do anything.. :( whats wrong?
     
  7. I believe Citizens2 will have support for NPC's being mobs. But in order to have player skins, they need to be named the same as a player with that skin. Skins are done from the mc.net accounts, and therefore, unless they find a way to change how basic object display is changed (eg, force client to use external images/skins), i dont think this is possible. As far as i know, the only way to do stuff like that is through spout. ((note:: i'm prolly wrong on the details, but its close enough for this explanation :D ))
     
  8. You have to have him configured properly.
    First you have to chose whether he is a bouncer [players] or a guard [mobs]
    Then you can set up distances, and which mobs he targets (you have to tell him which mob he can attack, or which player)

    Read more here:: http://wiki.citizensnpcs.net/1.x/Guard
     
  9. Offline

    Lilerem94

    yes i know i look toturials. i do the same thing but it doesnt work. :(
    i cofigured :
    /npc create *****
    /toggle guard
    /guard bouncer
    /guard radius ***
    /guard af/addflaf skeleton or another mobs..
    guard euip..
    /and guard aggro..
    but it doesn't work... I dont know :/
     
    Tin~Can~Tank likes this.
  10. Offline

    Tin~Can~Tank

    You can see it
     
  11. Offline

    Tin~Can~Tank

    Its just broken
     
  12. Offline

    Dassin

    Well i seen non-spout plugin that allowed players to make own capes skins using sites links, for example "Factions".
     
  13. Offline

    qizmo

    When i try to sell leaves it wont work :( i do /trader sell 18:1:0 20 and /trader sell 18:1 20
    it makes the sells, but it wont sell it :( pls help
     
  14. Offline

    rowanmulder

    I installed it this morning and it works fine, except for when I either reload evry plugin or restart my server, the citizens will become invisible. I still see them in the npc-profiles.yml but not in the server.

    FYI: I created a blacksmith called: Blacksmith, wearing 1 iron ingot, no armour. for more info.. ↓↓↓

    '0':
    basic:
    name: Blacksmith
    color: f
    look-when-close: 'true'
    items: 265:0,0:0,0:0,0:0,0:0,
    location: minecraftia,178.73092520394349,57.5,484.5641009160308,-12.531254,46.24589
    owner: rowanmulder
    inventory: 265/1/0,AIR*35,
    balance: '0.0'
    talk: 'true'
    talk-when-close: 'true'
    blacksmith:
    toggle: 'true'


    Also, I cant seem to find out how to skin to a npc.

    Update:
    when I disabled use-economy in the citizens.yml, the npc's started to look at me again, talk to me again and most importantly; not disappear on reload. However this fixed it, they will not charge players to repair weaponry or armour, wich I still kind of dislike :/

    sorry for my english, i'm dutch.
     
  15. Offline

    rowanmulder

    After I disabled use-economy in the citizens.yml, the npc's started to look at me again, talk to me again and most importantly; not disappear on reload.

    sorry for my english, i'm dutch
     
  16. Offline

    Vein

    Alright so I got the vanishing problem fixed. After that I had an issue with my guards not attacking anything - I got that fixed.

    NOW! Just a simple question, is it possible to make it so that if a player attacks a guard in an area, all guards in the area will attack that player?
     
  17. I fixed my problem with the guards not attacking by downloading the Vault plugin. Now everything is working the way it should.
     
  18. Offline

    htaylor99

    Why do they dissapear when i turn my server off?
     
  19. Offline

    htaylor99

    why do the npc's dissapear when i turn off my server?
     
  20. Offline

    KO_FU_MATT

    My admins can't spawn NPCs without being oped but i don't want to op them because then they will get restricted commands, because op overrides some permissions. I have added their permissions but still no, help?
     
  21. Offline

    Shreaders1

    Having problems on my server with NPC's despawning and not looking at players - Any tips? No errors in console that I've seen so far.. they just despawned after a while.. but they will not lookat players at all. I've tried /npc lookat.. I've toggled it over and over.. doesn't make a difference they refuse to move on their own lol. This wouldn't be so bad if I could have their heads in a fixed position - but when the chunk reloads (if they've not despawned) they're all looking in a strange direction like their necks are broken. Help?
     
  22. Offline

    owenftw

    Great plugin :D thanks
     
  23. Offline

    ManiakMadness64

    Is it possible to allow players to hire mercenaries with this plugin?
     
  24. Offline

    JEREMSPEED

    Please help me I need Npc's for my pvp map and they disapeared!
    I doesn't manage to find the plugin who generate conflict!
     
  25. Offline

    th37

    Did you install the vault plugin? Fixed (all) my problems with citizens.

    I've got a question concerning the Questsystem:
    Im trying to set up a quest where the Player has to kill a few "Bandits" in a mine.
    So i think GuardNpcs will be the correct target, because "EvilNpcs" aren't supportet for the "KillNPC" Objective.
    My problem is:
    1. If i simply place those targets the first player which comes across this quests and finishes it will make it impossible to complete this task by other players?
    2. To counter this, i wanted to create those Npcs inside the initial questpart and place them at the correct position. But there seems to be no option therefore? There's a teleport node, but only for players.
    Maybe I'm missing something important?
    I'm not new to programming or quest scripting but this plugin gave me quite a headache. ^^
    Any help would be appreciated. :)
     
  26. Offline

    JEREMSPEED

    Sorry I doesn't precised: I have CB 1.2.5 R1.0 and corresponding Vault installed.

    It just say me:

    Code:
    2012-05-22 10:08:18 [WARNING] Task of 'Citizens' generated an exception
    java.lang.ArrayIndexOutOfBoundsException: 1
    at net.citizensnpcs.utils.LocationUtils.loadLocation(LocationUtils.java:35)
    at net.citizensnpcs.properties.properties.BasicProperties.getWaypoints(BasicProperties.java:254)
    at net.citizensnpcs.properties.properties.BasicProperties.loadState(BasicProperties.java:320)
    at net.citizensnpcs.properties.PropertyManager.load(PropertyManager.java:46)
    at net.citizensnpcs.resources.npclib.NPCManager.register(NPCManager.java:162)
    at net.citizensnpcs.Citizens.setupNPCs(Citizens.java:279)
    at net.citizensnpcs.Citizens.access$000(Citizens.java:63)
    at net.citizensnpcs.Citizens$3.run(Citizens.java:149)
    at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:126)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:517)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:449)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) 
     
  27. Offline

    Royalgamer06

    I have this too, try to disable the message he is saying
     
  28. Offline

    th37

    Its a "simple" Array out of Bounds, which means that the programm tries to access a arrayindex wich doesnt exist.
    Not as good as the famous Nullpointer Exception, but still one of my favorites. :D
    You could decompile the whole stuff an debug/fix it, but i wouldn't advice that. (Only if you have too much free time ^^).
    I can't help you any further because i dont know how this minecraft/bukkit/plugin stuff exactly works.
    The easy fix: Make a backup of your server and then start a new one only with bukkit.
    Add citizens and then one after another every plugin you had. If the NPCs disappear again, or the error occurs, you have your conflicting plugin.

    I can tell you that Citizens, Essentials, iConomy, PermissionsBukkit, Vault and Worldedit work together .

    btw:
    I managed to create some NPCs via the command node. Next step would be to port them to the correct location, should work aswell. The problem i have atm is, how do i give them equip? The equip command is something interactive, which won't work i guess. Still very confusing this whole Questscripting stuff.
     
  29. Offline

    Gloric

    Does anyone know how to select an item ID with a sub-ID for a reward like different colored wools, 35:2, 35:4, ect. I can't figure that part out.
     
  30. Offline

    th37

  31. Offline

    JEREMSPEED

    Hello!

    I'll wait the next version...


    For equip them, do the /npc equip command after selecting a npc. Then, right-click on it with an item in your hand ( if it's an armor, it will auto equip it. If it's another item, it will auto equip in the hand of the npc.). You'll not see your items on the npc after editing. Solution: do the /npc equip command again and quit the server. Then, join the server and you'll see your npc equiped!
     

Share This Page