[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

    wille98

    yeah allrigt thats stupid by me but i hasnt read that yet?
     
  3. Offline

    Afforess

    No - you've got to get rid of your assumption that all inventories are size 36.
     
    mbsuperstar1 likes this.
  4. Anyway to add custom skins to npc's? or anywhere that people post character names as the default guy with the name i want look boring lol :p
     
  5. Offline

    Trenix

    What about a banker, allows you to purchase bank accounts where you can withdraw and deposit money but it must be only at the NPC. Also, an innkeeper, where you pay to bind to him. Upon death, the innkeeper would actually give you an option for where you'd like to spawn, either near him (if you binding to him) or your last respawn location (bed/main). Also a storage npc, which stores your items. That way you don't need to walk around with a full inventory when visiting another player's town.
     
  6. Offline

    Daniel Few

    I love the idea of bankers. However i'd like 3 options:
    1. Each banker is their own bank. So you must be at the correct banker to withdraw money
    2. You can group mutiple bankers together to create a set for the bank, and you can withdraw from any of those. And you can make multiple sets (eg. different banks)
    3. You can have all bankers linked so u can withdraw money from any.
    -DanJames
     
  7. Offline

    Xemnas33

    Bankers are on the list I believe ;) and what you said above sounds great.

    Custom Skins = Client mod.
     
    mbsuperstar1 likes this.
  8. Offline

    fullwall

    @Afforess - I don't make that assumption. The error comes when I try to use inventory.setContents(). You may need to change the CraftPlayerInventory constructor's inventory size.
     
  9. Offline

    Afforess

    CraftInventory and CraftInventoryPlayer do not use a hardcoded size. You will need to match your itemstack array to the same size as inventory.getContents().length
     
  10. Offline

    fullwall

    @Afforess - code snippet -
    Code:
    private void cloneInventory(PlayerInventory source,			PlayerInventory target) {
    		ItemStack[] contents = new ItemStack[source.getContents().length];
    System.arraycopy(source.getContents(), 0, contents, 0, contents.length);
    target.setContents(contents);
    
     
  11. Offline

    Afforess

    You handle the source's size fine, but assumed the target's size is identical.
     
  12. Offline

    fullwall

    Craftbukkit has updated to 1.6.5, changing the obfuscation. This is why we didn't update to 1.6.4 before.
     
  13. Offline

    fullwall

    @Afforess - called with an inventory created from new CraftPlayerInventory(null);
     
  14. Offline

    ledhead900

    So when are these commands being re structured to simple nodes based on use.

    "I'm not pushing, just throwing this out there as a reminder, < to cover my any comments related to such"

    Just curiouse since I'm itching to install this but I really am trying to wait for 1.6 reco from bukkit and the nodes fixed up.
     
  15. Offline

    TheChrisHill

    @fullwall

    I'm STILL having problems with traders losing inventory... this time I didn't even restart the server. It's probably because I'm on 766 , I'll update to 803 and see how that goes.
     
  16. Offline

    fullwall

    We need to find a really clear permissions nodes structure - suggestions would be welcome.
     
  17. Offline

    ledhead900

    Well my idea was to just have all creation regarding npc creation into a node like.

    Nodename.create " to handle all creation aspects of the system"

    With sub nodes like nodename.create.command for instance you could split creation into groups creation for wizard and trader so on and so forth.

    "Example"
    Nodename.create.trader " this would give the ability to Create NEW NPC traders but not remove or edit existing ones that u did not create.
    ------------------------------------------------------------------------------------

    Then you would have your......

    Nodename.modify " your everyday Staff use to maintain all npcs on server but no remove them or rename them but the ability to fix their loot and reset when stuck.

    Then the easiest.......

    Nodename.player " ability to use talk to and use them but not create or modify"
    Nodename.admin "Everything"

    Tho I am un familiar with the current commands so I cannot sort this list down for you that's why I was waiting for such system before use as I feel currently its a little complicated and bulky to set up in permissions and it would be a waste of my time setting it up NOW knowing you guys plan to make a node system like described.
     
  18. Offline

    l0stb3ta

    Not sure if these has been reported yet or not, but when I give my NPCs something to wear, or an item to hold, the previous thing they were wearing disappears. Doesn't fix by relogging, nor by restarting the server. I'm not getting any errors about it server-side, either.

    I'm also unable to use the trader. When I try, even though my server log says that Citizens detected iConomy, it thinks that iConomy isn't installed whenever I try to give the trader any money, or view the trader's inventory (via buy/sell, not the stocking window). I'll try updating things on the server and see if that fixes the issue... let me know if you would like more information. I'd be glad to put Citizens into a sort of debugging mode and provide the console vomit from that, but I haven't seen an option for it. >.>

    Just thought I'd give you guys the heads up, if you weren't aware already. =)
     
  19. Offline

    fullwall

    @l0stb3ta - both issues should be fixed in the next version already (wait for the next RB....)
     
    tr0y likes this.
  20. Offline

    Pomme72

    Hi !

    Very good plugin, but I just have a question : Does it support iConomy ? And if not, what plugin of economy does he support ?

    Thank you so much :)
     
  21. Offline

    fullwall

    Yes it supports iConomy.
     
    tr0y likes this.
  22. Offline

    Pomme72

    Okay thank you, and I have another question :

    Does it allow every players to create NPC ? No permissions support ? :(
     
  23. Offline

    Pim1234

    this plugin has permissions support...

    "Please read the wiki first before asking questions on the thread"

    when you go to the wiki you will directly see it
     
  24. Offline

    Raspberry

    Flag that original post ... maybe if they get a warning they'll stop being so overtly stupid / inconsiderate.
     
  25. Offline

    Raspberry

    Stop feeding the trolls.
     
  26. Offline

    Daniel Few

    Good points :)
    -DanJames
     
  27. Offline

    Briggybros

    For some reason which I cannot fathom, this doesn't work on my server. whenever I type; "/npc create [Name]" It Usually comes up with "You need an extra [Ammount] Dollars." which I can handle, but when I have enough and try again it sais "An internal error occurred whilst trying to perform this command" what's wrong here?
     
  28. Offline

    Daniel Few

    @Citizens
    @fullwall
    Hello! I'm having some difficulties setting the NPC's color. I use:
    then right click him and use:
    The NPC blinks 1nce (he seems to disapear for a split second, refresh) but the color doesn't change.
    Am i doing something wrong?
    -DanJames
     
  29. Offline

    Kainzo

    Such an awesome concept - bravo for various great things done in this
     
  30. Offline

    fullwall

    @DanielFew - old bug that was fixed a while ago, will be fixed in 1.6 release.
    @Kainzo - thanks! Wait till you see guards/mob NPCs... :). I want Heroes :S.
     
    mbsuperstar1 likes this.
  31. Offline

    nexusrightsi

    hmm works for me but when i try to give the npc gear it will onley give them 1 item and if i give them another item it deletes the older one and onley uses the new given gear is there a way to solve this i have lookd into the map with prop and such but couldn't find annything I also noticed there where 2 other kind of npc Questers and Bandits are they still in the made or you just forgot about them ?
     

Share This Page