[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

    fullwall

    Look at my sig.
     
  3. Offline

    dannyscott

    Another sweet feature would be if it could be implented with the faction mod, having guards around faction areas, attacking other factions at sight haha. ah nevermind.
     
  4. Offline

    fullwall

    Faction guard attacking will become more viable (less plugin dependent) when bukkit permissions arrives.
     
  5. Offline

    JTR1988

    Anyway to add the ability for npcs to sit down? For example, just doing the command "/npc sitdown true" causes his animation to be like how it appears in a boat or minecart?
     
  6. Offline

    Ben Quincy

    How do you get rid of a NPC???
     
  7. Offline

    fullwall

    Select the NPC. Use /npc remove
     
  8. Well, that could *probably* be done...but I am not sure.
     
  9. Offline

    INemesisI

    hey !
    im getting this error message ...
    Code:
    18:17:09 [SCHWERWIEGEND] Could not load plugins/Citizens.jar in plugins: MultiVerse
    org.bukkit.plugin.UnknownDependencyException: MultiVerse
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:88)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:158)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:106)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:63)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    do you know what could cause this error ? need help :/ Im using Craftbukkit 612
     
  10. Offline

    Pomme72

    This plugin made my server lag. :(
     
  11. Offline

    biggetje537

    the citizens dont talk anymore and they dont follow you with their head.
    adn when is finally the guard and trader mod geupdate so i can use them
     
  12. Offline

    Kaydin Smtih

    Yeah, I can't seem to remove NPCs either. The only way I can remove them is by typing int /npc remove all, which isn't going to work out obviously. It's like it isn't registering that I've selected the NPC. I right click him, he say's his message, then I type /npc remove and it tells me I have to select an NPC. I have it setup so it doesn't look up the item list, but I've also tried it where it does look it up and I still have the same issue. Is there a bug here or something?
     
  13. Offline

    godgodgodgo

    ffs he said no more questions about ETA! :/
     
  14. Offline

    Minecrafta2z

    Huge memory spike when i spawn an NPC any idea what may cause this problem? Running 1.4.1/617 WG/WE and essentials.
     
  15. Offline

    Waffletastic

    Getting this error on start up

    15:16:02 [SEVERE] java.lang.NullPointerException
    15:16:02 [SEVERE] at sun.reflect.UnsafeFieldAccessorImpl.ensureObj(Unknown
    Source)
    15:16:02 [SEVERE] at sun.reflect.UnsafeQualifiedObjectFieldAccessorImpl.ge
    t(Unknown Source)
    15:16:02 [SEVERE] at java.lang.reflect.Field.get(Unknown Source)
    15:16:02 [SEVERE] at com.fullwall.resources.redecouverte.NPClib.NPCSpawner
    .GetWorldServer(NPCSpawner.java:27)
    15:16:02 [SEVERE] at com.fullwall.resources.redecouverte.NPClib.NPCSpawner
    .SpawnBasicHumanNpc(NPCSpawner.java:66)
    15:16:02 [SEVERE] at com.fullwall.Citizens.NPCManager.registerBasicNPC(NPC
    Manager.java:62)
    15:16:02 [SEVERE] at com.fullwall.Citizens.BasicNPCHandler.spawnExistingNP
    C(BasicNPCHandler.java:25)
    15:16:02 [SEVERE] at com.fullwall.Citizens.Citizens.setupNPCs(Citizens.jav
    a:219)
    15:16:02 [SEVERE] at com.fullwall.Citizens.Citizens.onEnable(Citizens.java
    :76)
    15:16:02 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlug
    in.java:118)
    15:16:02 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(
    JavaPluginLoader.java:514)
    15:16:02 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(Si
    mplePluginManager.java:216)
    15:16:02 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftSe
    rver.java:94)
    15:16:02 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftS
    erver.java:72)
    15:16:02 [SEVERE] at net.minecraft.server.MinecraftServer.e(MinecraftServe
    r.java:215)
    15:16:02 [SEVERE] at net.minecraft.server.MinecraftServer.a(MinecraftServe
    r.java:202)
    15:16:02 [SEVERE] at net.minecraft.server.MinecraftServer.d(MinecraftServe
    r.java:142)
    15:16:02 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:257)
    15:16:02 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:375)
    15:16:02 [SEVERE] java.lang.NullPointerException
    15:16:02 [SEVERE] at com.fullwall.resources.redecouverte.NPClib.NPCSpawner
    .SpawnBasicHumanNpc(NPCSpawner.java:67)
    15:16:02 [SEVERE] at com.fullwall.Citizens.NPCManager.registerBasicNPC(NPC
    Manager.java:62)
    15:16:02 [SEVERE] at com.fullwall.Citizens.BasicNPCHandler.spawnExistingNP
    C(BasicNPCHandler.java:25)
    15:16:02 [SEVERE] at com.fullwall.Citizens.Citizens.setupNPCs(Citizens.jav
    a:219)
    15:16:02 [SEVERE] at com.fullwall.Citizens.Citizens.onEnable(Citizens.java
    :76)
    15:16:02 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlug
    in.java:118)
    15:16:02 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(
    JavaPluginLoader.java:514)
    15:16:02 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(Si
    mplePluginManager.java:216)
    15:16:02 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftSe
    rver.java:94)
    15:16:02 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftS
    erver.java:72)
    15:16:02 [SEVERE] at net.minecraft.server.MinecraftServer.e(MinecraftServe
    r.java:215)
    15:16:02 [SEVERE] at net.minecraft.server.MinecraftServer.a(MinecraftServe
    r.java:202)
    15:16:02 [SEVERE] at net.minecraft.server.MinecraftServer.d(MinecraftServe
    r.java:142)
    15:16:02 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:257)
    15:16:02 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:375)
    15:16:02 [SEVERE] null loading Citizens v1.07 (Is it up to date?)
    java.lang.NullPointerException
    at com.fullwall.Citizens.NPCDataManager.addItems(NPCDataManager.java:27)

    at com.fullwall.Citizens.NPCManager.registerBasicNPC(NPCManager.java:67)

    at com.fullwall.Citizens.BasicNPCHandler.spawnExistingNPC(BasicNPCHandle
    r.java:25)
    at com.fullwall.Citizens.Citizens.setupNPCs(Citizens.java:219)
    at com.fullwall.Citizens.Citizens.onEnable(Citizens.java:76)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:514)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:216)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:94)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:72)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
     
  16. Offline

    Rathfon

    I copied this from my post at minecraftforum.net, so I apologize if it seems out of place.
    But hopefully some of you will enjoy reading this, because I've had pretty decent results with what I'm doing so far.

    "I don't know if it's been talked about, I did a little searching and didn't come up with much. But, and if I'm in the wrong or just sound stupid let me know, I have a way to define skins for everyone on server-side.

    While this isnt much of anything for the normal user, people with NPCs on servers that they are trying to place for a certain purpose (ex: A priest) but have to find a normal user with the priest skin and spawn them with that name. People that would like to have a "priest" or a "doctor" or a "store clerk" in their server, with a defined skin, I have a good way.

    I had to write a program for it, so it is server-side at the moment. I am working on a way to define (client-side) a way to define individual skins, have them pull from the normal server, or have them pull from a set on a server elsewhere.

    Like I said, if this has been talked about or done before, just let me know and I'll drop it.
    If not, I will continue to work on this, as I have it working already on my server as illustrated here


    Heres an example of what I'm talking about: http://img830.imageshack.us/i/20110405134944.png

    I don't know if its possible to make a plugin, I've only been looking at Java until recently, and although a lot can be done -- I do not know if the process, which is moderately simple with the program I'm finishing is doable through a plugin.
     
    Nuinbot, mbsuperstar1 and godgodgodgo like this.
  17. Offline

    Enzy

    What happened to the idea of way points was that dropped of will it be implemented in later versions
     
  18. Just to make a difference... : D

    Plugin works flawlessly for me. The users on my server think it brings a lot of immersion, and they love visiting the random NPC towns I've made.
     
  19. Offline

    Expatcat

    Am I stupid for not being able to find the permissions nodes?
     
  20. I don't like asking questions, as I feel like a nagger in a see of naggers, but is there any way of accessing the database of skins, just to find a user who has one which could be used? I mean, just to save having to spawn like 16^26 NPCs to get all the variants of names. At the moment I'm just getting names of youtube videos and using them...
     
  21. Offline

    DDMoose

  22. Offline

    Binaryclock

    "If you need to check whether an Entity is an NPC or not, there is a method in the NPCManager if you wish to do so - returns a boolean value whether it is or not."

    Can you please give an example how one would go ahead and find the NPCManger? I've used getPlugin("Citizens") to get your Citizens object and cast it, but I cannot find any method that returns NPCManger object or any boolean function that returns a proper response.

    thank you sir,
     
  23. Offline

    The_Nut

    They are the skins of actual players of minecraft. Try your name or a friends name. There is no list that I know of.
     
  24. Offline

    darthsiddious

    hey, this looks good and could really be useful. now, here is my question, is it at all possible to add boseconomy as well as iconomy in your future update? it would be great if you could actually do that. also, could guards possibly use bows as well and possibly attack certain groups of players? thanks again for your plugin!
     
  25. Offline

    fullwall

    Waypoints will be added soon. Waffletastic, that is an unusual error that some people get... it may be either your java version, or craftbukkit jar, and is related to java reflection. Spawning an NPC is like adding a whole other player to the server (albeit one that doesn't move around), so naturally, decent hardware is required. NPCManager is a static class whose methods can be called directly.
     
  26. Offline

    Dangirdas

    Can you make some type of command that the npc's can walk in the location you want to?
     
  27. Offline

    fullwall

    Have you checked the wiki? What I understand from this is, you want NPCs to move, correct? The command is /npc move.
     
  28. Offline

    Lord Chaos

    Does this plugin support iConomy and allow for people to buy NPCs and for merchant NPCs through iConomy?

    Does it work with Towny?
     
  29. Offline

    biggetje537

    sry
     
  30. Offline

    godgodgodgo

    It's ok I forgive you :D Sorry for getting angry ;)
     
  31. Offline

    Draconicus

    This is SOOO much more elegant than NPCx, even if it's a bit more basic at the moment.

    Keep up the good work! :D
     

Share This Page