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


    Version: See thread title for bukkit compatibility (usually RB)
    Test Server:


    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


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


    Using the latest version with my old database I receive this:

    2011-03-23 06:25:03 [INFO] npcx : initialising database connection
    2011-03-23 06:25:03 [INFO] npcx : registering monitored events
    2011-03-23 06:25:03 [SEVERE] com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'minecraft.faction_list' doesn't exist
    2011-03-23 06:25:03 [SEVERE]    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2011-03-23 06:25:03 [SEVERE]    at sun.reflect.NativeConstructorAccessorImpl.newInstance(
    2011-03-23 06:25:03 [SEVERE]    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
    2011-03-23 06:25:03 [SEVERE]    at java.lang.reflect.Constructor.newInstance(
    2011-03-23 06:25:03 [SEVERE]    at com.mysql.jdbc.Util.handleNewInstance(
    2011-03-23 06:25:03 [SEVERE]    at com.mysql.jdbc.Util.getInstance(
    2011-03-23 06:25:03 [SEVERE]    at com.mysql.jdbc.SQLError.createSQLException(
    2011-03-23 06:25:03 [SEVERE]    at com.mysql.jdbc.SQLError.createSQLException(
    2011-03-23 06:25:03 [SEVERE]    at com.mysql.jdbc.MysqlIO.checkErrorPacket(
    2011-03-23 06:25:03 [SEVERE]    at com.mysql.jdbc.MysqlIO.checkErrorPacket(
    2011-03-23 06:25:03 [SEVERE]    at com.mysql.jdbc.MysqlIO.sendCommand(
    2011-03-23 06:25:03 [SEVERE]    at com.mysql.jdbc.MysqlIO.sqlQueryDirect(
    2011-03-23 06:25:03 [SEVERE]    at com.mysql.jdbc.ConnectionImpl.execSQL(
    2011-03-23 06:25:03 [SEVERE]    at com.mysql.jdbc.ConnectionImpl.execSQL(
    2011-03-23 06:25:03 [SEVERE]    at com.mysql.jdbc.StatementImpl.executeQuery(
    2011-03-23 06:25:03 [SEVERE]    at net.gamerservices.npcx.npcx.onEnable(
    2011-03-23 06:25:03 [SEVERE]    at
    2011-03-23 06:25:03 [SEVERE]    at
    2011-03-23 06:25:03 [SEVERE]    at org.bukkit.plugin.SimplePluginManager.enablePlugin(
    2011-03-23 06:25:03 [SEVERE]    at org.bukkit.craftbukkit.CraftServer.loadPlugin(
    2011-03-23 06:25:03 [SEVERE]    at org.bukkit.craftbukkit.CraftServer.loadPlugins(
    2011-03-23 06:25:03 [SEVERE]    at net.minecraft.server.MinecraftServer.e(
    2011-03-23 06:25:03 [SEVERE]    at net.minecraft.server.MinecraftServer.a(
    2011-03-23 06:25:03 [SEVERE]    at net.minecraft.server.MinecraftServer.d(
    2011-03-23 06:25:03 [SEVERE]    at
    2011-03-23 06:25:03 [SEVERE]    at
    2011-03-23 06:25:03 [INFO] npcx version 0.03 enabled.
    It doesn't seem to be creating the new table. Your main post lost the instructions on manually creating the tables.
  3. Offline


    Am I missing how to modify settings? Like being able to change a factions settings?
  4. Offline

    David McCahon

    Finally got it working, but after all this i just came to find this mod is absolutely AWESOME thanks for your knowledge and coding skills!
  5. Offline


    Any chance of sqlite capability?
    I don't understand why 2/3 of the npc plugins use MySQL alone : /
    Simply put, many vps servers don't support mysql, so unless we want lag we can't use these awesome features you've provided!
  6. Offline

    tha d0ctor

    how do I remove NPC/Spawn groups I no longer want?
  7. Offline

    Evan Melvin

    Player tracking would be pretty cool, i.e. the npcs turning their heads to follow your movements. They seem a little artificial at the moment.

    edit: There's also extra spaces appearing before npc responses.
  8. Offline


    I can't tell from the OP, if I create a spawn group with this plugin is there a way to have the group agro on a player that wanders by? Or does a player have to attack the group before they will attack the player?
  9. Offline


    set the faction on the NPC to a negative amount (less than -1000)

    /npcx faction create -1001 evilfactiongroup

    /npcx npc faction NPCID FACTIONID

    npc shops almost done >_<

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


    Cool, this sounds awesome. I'm gonna have to give it a try soon. Thank you for the quick response :).
  11. Offline


    np! i have half implemented NPC shops but dont use them yet, still need to work on it
  12. Offline


    Woa, this guy is a machine. I havent heard of mixxit since... well very old times, where SMP even didnt have life damage, now he comes and on one week there is a NPC plugin with tons of functionality. I am really impressed.
  13. Offline


    i dont get the file when i first boot bukkit

    running bukkit 531
  14. Offline


    does anyone else have trouble with the commands? Maybe I'm just trying to remember too many. It just feels like It's hard to remember them, and tie them all together. I think it's the number thing.
    /npcx spawngroup add 1 1 <--- What If I'm on NPC 55, and I can't remember in what order I made the first 10?

    Maybe suggestions?
    Could it be possible that we could do:
    /npcx spawngroup add SPAWNGROUP NPCNAME?

    Thanks everyone!
  15. Offline

    Phantom Index

    When NPC chase you they can fly... Yeah that's kind of weird. if i fly away he chases me in the sky.
  16. Offline


    am i even able to establish mysql when im not hosting the server on this pc? im hosting it in another location..
  17. Offline


    Can't do it by name cause there might be an instance where you want two npcs with the same name (Ie: Guard) and you want them to have different responses

    My best suggestion is to name your spawngroups appropriately, eventually the spawngroup list command will allow you to filter on spawngroup name so youc an find your IDs easier when you have many spawngroups
  18. Offline


    Mixxit does the latest version add the database tables if only one is missing? You removed the instructions on manually adding the tables but your instructions still say "The SQL tables above will be generated on first boot."

    What tables above?
  19. Offline


    Added shops to npcs

    To turn an npc into a shop do /npcx npc category NPCID shop


    He will now buy items and sell them, adding 10% interest on the price he paid

    Will expand on this a bit more later

    Just wipe them with updates=true it will make them all again

    No it doesn't do any altars/changes etc as it'd be a pain to maintain at the moment

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


    2011-03-23 16:21:47 [INFO] [§4||||§8||||||§f] (§9Invester§f§f) Rysman: SHOULD I ATTACK THE GUARD
    2011-03-23 16:21:49 [INFO] [§4||||§8||||||§f] (§9Invester§f§f) Rysman: LETS GO
    2011-03-23 16:21:51 [INFO] [§4||||§8||||||§f] (§9Invester§f§f) Rysman: heal me first
    2011-03-23 16:21:52 [INFO] [§4||||§8||||||§f] (§9Invester§f§f) Rysman: :(
    2011-03-23 16:21:59 [INFO] [§2||||||||||§f] (§9Invester§f§f) Rysman: LETS GO
    2011-03-23 16:22:01 [SEVERE] java.lang.IndexOutOfBoundsException: Index: 967, Size: 967
    2011-03-23 16:22:01 [SEVERE]     at java.util.ArrayList.RangeCheck(Unknown Source)
    2011-03-23 16:22:01 [SEVERE]     at java.util.ArrayList.remove(Unknown Source)
    2011-03-23 16:22:01 [SEVERE]     at net.minecraft.server.World.d(
    2011-03-23 16:22:01 [SEVERE]     at net.minecraft.server.MinecraftServer.h(
    2011-03-23 16:22:01 [SEVERE]     at
    2011-03-23 16:22:01 [SEVERE]     at
    2011-03-23 16:22:01 [SEVERE] Unexpected exception
    java.lang.IndexOutOfBoundsException: Index: 967, Size: 967
        at java.util.ArrayList.RangeCheck(Unknown Source)
        at java.util.ArrayList.remove(Unknown Source)
        at net.minecraft.server.World.d(
        at net.minecraft.server.MinecraftServer.h(
    Made a spawngroup, created the Guard NPC. He spawns, and when the player killed the npc, that happened.

    Edit: Why do the npc's have a ranged fist attack? I've been killed 50+ blocks away by them, it's a bit overpowered. Can it be changed to a melee only?
  21. Offline


    I think it would be really cool if you could work with the author of the Vampire plugin to make it so that you can set NPC's to spread the vampirism infection! Just an idea I had because I've been looking at both of these plugins a lot today.
  22. Offline


    This is more likely to go the direction of an addon to complement towny

    That error i'm not getting that on the normal build - the range should be only about 5 blocks

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


    Is that normal distance? Confused.
  24. Offline


    Yes he will follow you into the air
  25. Offline


    Then they are fast as sin, I'm using an older machine and did not even see him near me when I died. I guess was right beside me, but my game saw him on the ground still, punching the air.
  26. Offline

    Evan Melvin

    Being able to configure what shops can buy and sell and the dialogue would be cool.
  27. Offline


    How come it doesnt create a folder for me in plugins? ive put the npcx.jar in the plugins folder, ive reloaded and restarted.. when i type /plugins, npcx.jar is enabled.. but i dont got any folder in plugins..
  28. Offline


    Version 0.041
    Fixed a bug with triggerword reply length
    Added the ability to use the text 'bankbalance' in a triggerword and replace it with the iConomy balance
  29. Offline


    Great plugin, I have 1 question though. How can I delete spawngroups and npc's?
  30. Offline


    Use a mysql browser and do it that way if you must and be sure to restart

    Or wait till commands are added that will loop the cache and delete table rows
  31. Offline


    Am i able to use mysql if my server is hosted elsewere then at my pc? Quote this, please, and thanks for your time!

Share This Page