Inactive [Inactive][FUN] NPCX + Civilizations! [1.8] Everquest style BOTS, paths, aggro, loot, guard, shops,.

Discussion in 'Inactive/Unsupported Plugins' started by mixxit, Mar 19, 2011.

  1. Offline

    mixxit

    npcx!
    Version: See thread title for bukkit compatibility (usually RB)
    Test Server: world.soliniaonline.com:25565

    [​IMG]

    Implements everquest style npc spawngroups using the npc library allowing you to make persistent npcs/rare npcs spawn around your map. Npcs will fight back if attacked and even talk on right click. They will sell items and can even have loot assigned and be given factions and paths to walk and npc trading

    Install / Changelog / Commands / README

    All of this has now moved to http://soliniaonlinemc.wordpress.com/2011/09/24/npcx/

    Addendum

    I will be updating NPCX in the future with a rewrite for 1.9 bot functionality
     
  2. Offline

    mixxit

    not yet mate
     
  3. Offline

    skillinazn


    For some awkward reason now whenever someone spawns in a server this message overwhelms the console:

    Code:
    18:20:56 [SEVERE]       at net.gamerservices.npclibfork.NpcSpawner.SpawnBasicHum
    anNpc(NpcSpawner.java:68)
    18:20:56 [SEVERE]       at net.gamerservices.npcx.myNPC.Spawn(myNPC.java:1146)
    18:20:56 [SEVERE]       at net.gamerservices.npcx.npcx.think(npcx.java:381)
    18:20:56 [SEVERE]       at net.gamerservices.npcx.Tick.run(Tick.java:16)
    18:20:56 [SEVERE]       at java.util.TimerThread.mainLoop(Unknown Source)
    18:20:56 [SEVERE]       at java.util.TimerThread.run(Unknown Source)
    18:20:56 [SEVERE] java.lang.NullPointerException
    18:20:56 [SEVERE]       at net.gamerservices.npcx.myNPC.Spawn(myNPC.java:1148)
    18:20:56 [SEVERE]       at net.gamerservices.npcx.npcx.think(npcx.java:381)
    18:20:56 [SEVERE]       at net.gamerservices.npcx.Tick.run(Tick.java:16)
    18:20:56 [SEVERE]       at java.util.TimerThread.mainLoop(Unknown Source)
    18:20:56 [SEVERE]       at java.util.TimerThread.run(Unknown Source)
    18:20:56 [SEVERE] java.lang.NullPointerException
    18:20:56 [SEVERE]       at sun.reflect.UnsafeFieldAccessorImpl.ensureObj(Unknown
     Source)
    18:20:56 [SEVERE]       at sun.reflect.UnsafeQualifiedObjectFieldAccessorImpl.ge
    t(Unknown Source)
    18:20:56 [SEVERE]       at java.lang.reflect.Field.get(Unknown Source)
    18:20:56 [SEVERE]       at net.gamerservices.npclibfork.NpcSpawner.GetWorldServe
    r(NpcSpawner.java:31)
    18:20:56 [SEVERE]       at net.gamerservices.npclibfork.NpcSpawner.SpawnBasicHum
    anNpc(NpcSpawner.java:67)
    18:20:56 [SEVERE]       at net.gamerservices.npcx.myNPC.Spawn(myNPC.java:1146)
    18:20:56 [SEVERE]       at net.gamerservices.npcx.npcx.think(npcx.java:381)
    18:20:56 [SEVERE]       at net.gamerservices.npcx.Tick.run(Tick.java:16)
    18:20:56 [SEVERE]       at java.util.TimerThread.mainLoop(Unknown Source)
    18:20:56 [SEVERE]       at java.util.TimerThread.run(Unknown Source)
    18:20:56 [SEVERE] java.lang.NullPointerException
    18:20:56 [SEVERE]       at net.gamerservices.npclibfork.NpcSpawner.SpawnBasicHum
    anNpc(NpcSpawner.java:68)
    18:20:56 [SEVERE]       at net.gamerservices.npcx.myNPC.Spawn(myNPC.java:1146)
    18:20:56 [SEVERE]       at net.gamerservices.npcx.npcx.think(npcx.java:381)
    18:20:56 [SEVERE]       at net.gamerservices.npcx.Tick.run(Tick.java:16)
    18:20:56 [SEVERE]       at java.util.TimerThread.mainLoop(Unknown Source)
    18:20:56 [SEVERE]       at java.util.TimerThread.run(Unknown Source)
    18:20:56 [SEVERE] java.lang.NullPointerException
    18:20:56 [SEVERE]       at net.gamerservices.npcx.myNPC.Spawn(myNPC.java:1148)
    18:20:56 [SEVERE]       at net.gamerservices.npcx.npcx.think(npcx.java:381)
    18:20:56 [SEVERE]       at net.gamerservices.npcx.Tick.run(Tick.java:16)
    18:20:56 [SEVERE]       at java.util.TimerThread.mainLoop(Unknown Source)
    18:20:56 [SEVERE]       at java.util.TimerThread.run(Unknown Source)
    18:20:56 [SEVERE] java.lang.NullPointerException
    18:20:56 [SEVERE]       at sun.reflect.UnsafeFieldAccessorImpl.ensureObj(Unknown
     Source)
    18:20:56 [SEVERE]       at sun.reflect.UnsafeQualifiedObjectFieldAccessorImpl.ge
    t(Unknown Source)
    18:20:56 [SEVERE]       at java.lang.reflect.Field.get(Unknown Source)
    18:20:56 [SEVERE]       at net.gamerservices.npclibfork.NpcSpawner.GetWorldServe
    r(NpcSpawner.java:31)
    18:20:56 [SEVERE]       at net.gamerservices.npclibfork.NpcSpawner.SpawnBasicHum
    anNpc(NpcSpawner.java:67)
    18:20:56 [SEVERE]       at net.gamerservices.npcx.myNPC.Spawn(myNPC.java:1146)
    18:20:56 [SEVERE]       at net.gamerservices.npcx.npcx.think(npcx.java:381)
    18:20:56 [SEVERE]       at net.gamerservices.npcx.Tick.run(Tick.java:16)
    18:20:56 [SEVERE]       at java.util.TimerThread.mainLoop(Unknown Source)
    18:20:56 [SEVERE]       at java.util.TimerThread.run(Unknown Source)
    18:20:56 [SEVERE] java.lang.NullPointerException
    18:20:56 [SEVERE]       at net.gamerservices.npclibfork.NpcSpawner.SpawnBasicHum
    anNpc(NpcSpawner.java:68)
    18:20:56 [SEVERE]       at net.gamerservices.npcx.myNPC.Spawn(myNPC.java:1146)
    18:20:56 [SEVERE]       at net.gamerservices.npcx.npcx.think(npcx.java:381)
    18:20:56 [SEVERE]       at net.gamerservices.npcx.Tick.run(Tick.java:16)
    18:20:56 [SEVERE]       at java.util.TimerThread.mainLoop(Unknown Source)
    18:20:56 [SEVERE]       at java.util.TimerThread.run(Unknown Source)
    18:20:56 [SEVERE] java.lang.NullPointerException
    18:20:56 [SEVERE]       at net.gamerservices.npcx.myNPC.Spawn(myNPC.java:1148)
    18:20:56 [SEVERE]       at net.gamerservices.npcx.npcx.think(npcx.java:381)
    18:20:56 [SEVERE]       at net.gamerservices.npcx.Tick.run(Tick.java:16)
    18:20:56 [SEVERE]       at java.util.TimerThread.mainLoop(Unknown Source)
    18:20:56 [SEVERE]       at java.util.TimerThread.run(Unknown Source)
    18:20:56 [SEVERE] java.lang.NullPointerException
    18:20:56 [SEVERE]       at sun.reflect.UnsafeFieldAccessorImpl.ensureObj(Unknown
     Source)
    18:20:56 [SEVERE]       at sun.reflect.UnsafeQualifiedObjectFieldAccessorImpl.ge
    t(Unknown Source)
    18:20:56 [SEVERE]       at java.lang.reflect.Field.get(Unknown Source)
    18:20:56 [SEVERE]       at net.gamerservices.npclibfork.NpcSpawner.GetWorldServe
    r(NpcSpawner.java:31)
    18:20:56 [SEVERE]       at net.gamerservices.npclibfork.NpcSpawner.SpawnBasicHum
    anNpc(NpcSpawner.java:67)
    18:20:56 [SEVERE]       at net.gamerservices.npcx.myNPC.Spawn(myNPC.java:1146)
    18:20:56 [SEVERE]       at net.gamerservices.npcx.npcx.think(npcx.java:381)
    18:20:56 [SEVERE]       at net.gamerservices.npcx.Tick.run(Tick.java:16)
    18:20:56 [SEVERE]       at java.util.TimerThread.mainLoop(Unknown Source)
    18:20:56 [SEVERE]       at java.util.TimerThread.run(Unknown Source)
    18:20:56 [SEVERE] java.lang.NullPointerException
    18:20:56 [SEVERE]       at net.gamerservices.npclibfork.NpcSpawner.SpawnBasicHum
    anNpc(NpcSpawner.java:68)
    18:20:56 [SEVERE]       at net.gamerservices.npcx.myNPC.Spawn(myNPC.java:1146)
    18:20:56 [SEVERE]       at net.gamerservices.npcx.npcx.think(npcx.java:381)
    18:20:56 [SEVERE]       at net.gamerservices.npcx.Tick.run(Tick.java:16)
    18:20:56 [SEVERE]       at java.util.TimerThread.mainLoop(Unknown Source)
    18:20:56 [SEVERE]       at java.util.TimerThread.run(Unknown Source)
    18:20:56 [SEVERE] java.lang.NullPointerException
    18:20:56 [SEVERE]       at net.gamerservices.npcx.myNPC.Spawn(myNPC.java:1148)
    18:20:56 [SEVERE]       at net.gamerservices.npcx.npcx.think(npcx.java:381)
    18:20:56 [SEVERE]       at net.gamerservices.npcx.Tick.run(Tick.java:16)
    18:20:56 [SEVERE]       at java.util.TimerThread.mainLoop(Unknown Source)
    18:20:56 [SEVERE]       at java.util.TimerThread.run(Unknown Source)
    18:20:56 [SEVERE] java.lang.NullPointerException
    18:20:56 [SEVERE]       at sun.reflect.UnsafeFieldAccessorImpl.ensureObj(Unknown
     Source)
    18:20:56 [SEVERE]       at sun.reflect.UnsafeQualifiedObjectFieldAccessorImpl.ge
    t(Unknown Source)
    18:20:56 [SEVERE]       at java.lang.reflect.Field.get(Unknown Source)
    18:20:56 [SEVERE]       at net.gamerservices.npclibfork.NpcSpawner.GetWorldServe
    r(NpcSpawner.java:31)
    18:20:56 [SEVERE]       at net.gamerservices.npclibfork.NpcSpawner.SpawnBasicHum
    anNpc(NpcSpawner.java:67)
    18:20:56 [SEVERE]       at net.gamerservices.npcx.myNPC.Spawn(myNPC.java:1146)
    18:20:56 [SEVERE]       at net.gamerservices.npcx.npcx.think(npcx.java:381)
    18:20:56 [SEVERE]       at net.gamerservices.npcx.Tick.run(Tick.java:16)
    18:20:56 [SEVERE]       at java.util.TimerThread.mainLoop(Unknown Source)
    18:20:56 [SEVERE]       at java.util.TimerThread.run(Unknown Source)
    18:20:56 [SEVERE] java.lang.NullPointerException
    18:20:56 [SEVERE]       at net.gamerservices.npclibfork.NpcSpawner.SpawnBasicHum
    anNpc(NpcSpawner.java:68)
    18:20:56 [SEVERE]       at net.gamerservices.npcx.myNPC.Spawn(myNPC.java:1146)
    18:20:56 [SEVERE]       at net.gamerservices.npcx.npcx.think(npcx.java:381)
    18:20:56 [SEVERE]       at net.gamerservices.npcx.Tick.run(Tick.java:16)
    18:20:56 [SEVERE]       at java.util.TimerThread.mainLoop(Unknown Source)
    18:20:56 [SEVERE]       at java.util.TimerThread.run(Unknown Source)
    18:20:56 [SEVERE] java.lang.NullPointerException
    18:20:56 [SEVERE]       at net.gamerservices.npcx.myNPC.Spawn(myNPC.java:1148)
    18:20:56 [SEVERE]       at net.gamerservices.npcx.npcx.think(npcx.java:381)
    18:20:56 [SEVERE]       at net.gamerservices.npcx.Tick.run(Tick.java:16)
    18:20:56 [SEVERE]       at java.util.TimerThread.mainLoop(Unknown Source)
    18:20:56 [SEVERE]       at java.util.TimerThread.run(Unknown Source)
    Any ideas on this?

     
  4. Offline

    ZerG

    HELLO MR MIXXIT ! i have been wanting to add your plugin for a while now and im curious as to a [617] build do you have one available ?
     
  5. Offline

    grimreaperdude0

    hello me agen with the npc when you make them it searchs on minecraft.net fo a player with that username do you think you can make it so we can give them a skin we want or if you have done that plees tell me how to
     
  6. Offline

    fullwall

    Impossible.
     
  7. Offline

    Dawodo

    Huge plugin, almost overkill for my server ;)
    Thanks alot for it!
    However, a suggestion for this (and all other NPC plugins as well):
    Could you add a function to rename NPCs (i thought there was some .getDisplayName?) or to disable the name box completely?
     
  8. Offline

    AFakeman

    How much RAM does it eat w/ 10-20 NPCX?

    Yeah^ 1000 get!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 12, 2016
  9. Offline

    fullwall

    1000th post? W00t :D.
     
  10. Offline

    koguchi

    Well I have absolutley no idea how to use mysql but with the help of google somehow I managed to get it working through SSH, phpMyAdmin and FTP, I was reading in the install stuff, that if your using a third party host not to bother trying, but mine have a mysql system ready to go, so yeah, 5 hours of messing around and watching the install vid to learn and finally get the database to work, and as soon as that linked up, worked like a charm..

    this is....AWESOME!!!!
     
  11. Offline

    kahlilnc

    Are the merchant only allowed to sell one thing?
     
  12. Offline

    Guenael

    Hi mixxit , wool still don't work with npcx ?
     
  13. Offline

    dudes34

    Merchants can sell multiple items. For example my Blacksmith sells: Armour, Swords and tools(Pickaxes and such) as well as coal..
     
  14. Offline

    koguchi

    couple of quick questions.
    • is there a way to make the npc walk smoother/more fluid?
    • is there a way to change the time frame for the pause at the pathgroup add points
    • is there a way to make them face the direction they are walking better?
    also, the npc has some issues walking in and out/around buildings, it gets either stuck in the wall, or stops at a point and looks confused and starts punching a torch haha, and also doesnt like to go accross some gradient changes from e.g wool to a half step above/next to it... (EDIT: appears to be an isolated incident) they do however sometimes float a block above the ground :p

    not complaining, just wondering :D would really love to use these as background characters in a minecraft vid.
     
  15. Offline

    alta189

    Mineshafter
     
  16. Offline

    Willobe

    Code:
    2011-04-11 05:45:15 [WARNING] npcx: error: null[Ljava.lang.StackTraceElement;@1e61d6bf
    2011-04-11 05:45:15 [SEVERE] java.lang.NullPointerException
    2011-04-11 05:45:15 [SEVERE]     at net.gamerservices.npcx.npcx.onCommand(npcx.java:1590)
    2011-04-11 05:45:15 [SEVERE]     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    2011-04-11 05:45:15 [SEVERE]     at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:80)
    2011-04-11 05:45:15 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:254)
    2011-04-11 05:45:15 [SEVERE]     at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:596)
    2011-04-11 05:45:15 [SEVERE]     at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:559)
    2011-04-11 05:45:15 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:553)
    2011-04-11 05:45:15 [SEVERE]     at net.minecraft.server.Packet3Chat.a(SourceFile:24)
    2011-04-11 05:45:15 [SEVERE]     at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
    2011-04-11 05:45:15 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
    2011-04-11 05:45:15 [SEVERE]     at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    2011-04-11 05:45:15 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
    2011-04-11 05:45:15 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    2011-04-11 05:45:15 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    what did i do wrong :p
     
  17. Offline

    GooMan

    no idea sry :D but: I LOVE THIS PROJECT! keep it up!
     
  18. Offline

    shaggy2010

    Updating today given me this error as soon as I login
    http://pastebin.com/TRPvGPzw
    Any Ideas?
    It also takes several attempts to get any commands to go through without (error occurded)
    and the NPC does not seem to work as intended, its not got a weapon, isnt attacking when we get close.
     
  19. Offline

    Rabbit

    I have 3 questions.
    At first:
    Is it possible to create specific quests where you have to take tools or items to an NPC and earn money?
    And is there any way to forbid doing this more than once again?

    And i would like to know wheter there is any options to change the merchant senteces and inputs like: help, list, buy or sell.

    Thank you.. Great plugin
     
  20. Offline

    Willobe

    To have you NPC show the weapon, try putting a helmet on it.. worked for me. as for not attacking, they dont unless you set up their faction first, and make then evil.
     
  21. Offline

    shaggy2010

    Thanks for that, Im having mySQL erors in console still though (and it takes several attempts to get it to write to Db).
     
  22. Offline

    Guenael

    Hello Mixxit i use your plugin since some weeks, all work well but when i have more than 10 players on my server, all action take 10 seconds or more (8CPU, 8 Mb ram, 1 gigabit lan), i have around 8 NPC, do you have idea how i can decrease greatly this lag ? (When i turn of npcx , lag gone)

    THX very much
     
  23. Offline

    sheepyowl

    this plugin is REALLY hard to start using, by far the hardest plugin to use.
    once i get mysql to work(wai u no has interface?), ill give another opinion or a suggestion or something.

    but for now, i dont know if you want to keep working on this plugin or have a "to-do" list for it, but if you do, you might want to start by making it easier to set up... really, its the only reason im gonna have to learn mysql now. from what i have understood, this is not the only plugin that uses a mysql database, but it is the only one that requires the server host to actually make one himself.
    just saying you might want to consider something simpler to use. (like, for instance, NathanWolf's persistance, or something similar)

    edit: alright, nvm. i might come back SOME day, when i got WAAAAAY too much time on my hands, but i assume it wont happen. mysql requires phpmydomain(or cpanel, or whatever) which requires apache, and thats 3 different things i need to learn now to just START to use the plugin.(and ill have to learn what does what in the config files and how to make new NPCs ETC)
    im not a "ohno learn something lets bail" kind of person usually, but come on. if i wanted to learn how to start databases, and how to set webpages, i would go learn it... somewhere. the difference between this and a normal minecraft server's hosting is huge. its like hosting a different thing.

    TL;DR: ive given up because i dont have time to learn MySQL, and\or too dumb to see a simpler way to get this plugin working.
     
  24. Offline

    Luong

    just to let you know, the coloring of keywords work, but if there is a character right before or after the word, it will not be colored. for example, '[NewWorld]?' will not be colored due to the '?' character.

    Also for the response time, I think that's more of a logical programming style that may or may not be the bottleneck. I'm sure you heard of the 'Big O notation,' but who knows.

    Ugh, this thread keeps adding the '[ IMG ]' tag at the end of my post >_< lol. I have to constantly edit my post to remove it.
     
  25. Offline

    byzantinian

    I don't know what is going on, but I simply can't use this plugin. I've had it up and running (MySQL and all) for almost 2 weeks now. I don't know what logic these NPC's have but it resembles that of a nut house. Without fail all of these occurrences happen after an unspecified random period of time until server reboot.

    -Friendly (+1000 baseamount) Stationary NPC's (Guards): Forcibly stare at random spots on the ground or up in the sky. Talking to them forces them to briefly turn their head towards you to which their body and head return to facing the dirt or the stars. Once they start doing this, any further spawned NPC's of this type respawn, move 3 tiles in a random direction while swinging their weapon at air, then cease to move.

    -Friendly Pathed NPC's (Roaming Guards): Pathing eventually breaks and they walk in triangle patterns repeatedly while staring at the ceiling as if they were possessed.

    -Hostile (-1500 baseamount) Stationary NPC's (Barbarians): Have the same issue of a "forced distraction" as friendly stationary NPC's, which half the time causes hostile NPC's to ignore you completely.

    -Merchants: When spawned, move 3 tiles away from their spawn point (a shop stall) while wildly swinging their fist/weapon at nothing, then stop.

    This is on newest (version 1.9 idk the build # and it's up to date because i've forced update on config to renew) NPCx, CB 670 and from a blank database that i've recreated 3 times. Also, the inability to give NPC's weapons without giving them helmets since even the earliest versions is irritating at best.
     
  26. Offline

    Luzius

    Nice plugin.. hard to setup but easy to use.. :)

    But a question :)
    Is it possible to attach the Damage Type to the Merchant Item inside the Item list?
    Like Red Wool or Wood with a Birch Texture?
     
  27. Offline

    AlexanderDrake

    I seem to have an issue with this interacting with NoDrop and Deathmessages, whenever a player is killed by an npc I get an error telling me 'could not pass ENTITY_DEATH to NoDrop and from then on out those are broken, I've used process of elimination to determine its this mod... I really like it, so I'd like to figure out why exactly this is happening and how to fix it

    Edit: I've been told this would be a bit tough to fix as its because the plugins cant detect the killer
     
  28. Offline

    Livewire

    Just to point this out, you could always do one of two things.

    One, install XAMPP and use that pre-built local-testing-environment setup, which I did, to run it.

    Two, you don't actually need apache or phpmyadmin or cpanel. http://www.mysql.com/products/workbench/ is the workbench that works directly with mysql without requiring apache or any other software other than mysql.


    Just to point that out, although I've since bailed on this plugin as it was overkill for what I needed.
     
  29. Offline

    steve m

    Hello mate, my friend is unable to buy or sell items to the NPCs on my server! When he talks to them I can see his words on my screen in the normal chat way, is that supposed to happen


    Edit: I just remembered he also said the NPCs didnt attack him although after testing them myself it works fine!
     
  30. Offline

    skillinazn

    mixxit, does adding spam loads of items in one loottable give the chances for it to be dropped or spamming loottables to one npc give the chances for the item to be dropped? If so, then this may be a lot of work to add drops for one npc. Also, are there any events that can cause an npc to give an item to the player?
     
  31. Offline

    grimreaperdude0

    hello can i mske it so the npc dont have the iron armor on?
     

Share This Page