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

    averad

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

    Code:
    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(NativeConstructorAccessorImpl.java:39)
    2011-03-23 06:25:03 [SEVERE]    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    2011-03-23 06:25:03 [SEVERE]    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    2011-03-23 06:25:03 [SEVERE]    at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
    2011-03-23 06:25:03 [SEVERE]    at com.mysql.jdbc.Util.getInstance(Util.java:381)
    2011-03-23 06:25:03 [SEVERE]    at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1030)
    2011-03-23 06:25:03 [SEVERE]    at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)
    2011-03-23 06:25:03 [SEVERE]    at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3491)
    2011-03-23 06:25:03 [SEVERE]    at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3423)
    2011-03-23 06:25:03 [SEVERE]    at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1936)
    2011-03-23 06:25:03 [SEVERE]    at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2060)
    2011-03-23 06:25:03 [SEVERE]    at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2536)
    2011-03-23 06:25:03 [SEVERE]    at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2465)
    2011-03-23 06:25:03 [SEVERE]    at com.mysql.jdbc.StatementImpl.executeQuery(StatementImpl.java:1383)
    2011-03-23 06:25:03 [SEVERE]    at net.gamerservices.npcx.npcx.onEnable(npcx.java:736)
    2011-03-23 06:25:03 [SEVERE]    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
    2011-03-23 06:25:03 [SEVERE]    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:451)
    2011-03-23 06:25:03 [SEVERE]    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:217)
    2011-03-23 06:25:03 [SEVERE]    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:92)
    2011-03-23 06:25:03 [SEVERE]    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:70)
    2011-03-23 06:25:03 [SEVERE]    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
    2011-03-23 06:25:03 [SEVERE]    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
    2011-03-23 06:25:03 [SEVERE]    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
    2011-03-23 06:25:03 [SEVERE]    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
    2011-03-23 06:25:03 [SEVERE]    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    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

    Nate204

    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

    LucidLethargy

    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

    Shenlong

    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

    mixxit

    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

    Shenlong

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

    mixxit

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

    anon

    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

    Novemberman

    i dont get the npcx.property file when i first boot bukkit

    running bukkit 531
     
  14. Offline

    Nate204

    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.
    Like:
    /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

    bizzybusk

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

    mixxit

    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

    averad

    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

    mixxit

    *Update*
    Added shops to npcs

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

    YOU NEED ICONOMY FOR THIS (4.5.5)

    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

    n30nex

    Code:
    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(World.java:986)
    2011-03-23 16:22:01 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:354)
    2011-03-23 16:22:01 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    2011-03-23 16:22:01 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    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(World.java:986)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:354)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    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

    Shenlong

    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

    mixxit

    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

    n30nex



    Is that normal distance? Confused.
     
  24. Offline

    mixxit

    Yes he will follow you into the air
     
  25. Offline

    n30nex

    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

    bizzybusk

    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

    mixxit

    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

    dev10us

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

    mixxit

    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

    bizzybusk

    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