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

    sqlite will not be implemented with npcx everrrrr
     
  3. Offline

    Scandragon

    Well in that case, I suppose there's no point in watching this thread anymore.
    It's just not useful
     
  4. Offline

    nsko

    Love the mod's idea! But I'm getting this error when I use /npcx npc spawn <name> (and no npc appears)

    Code:
    04:36:18 [SEVERE] java.lang.ArrayIndexOutOfBoundsException: 3
    04:36:18 [SEVERE]     at net.gamerservices.npcx.npcx.onCommand(npcx.java:1841)
    04:36:18 [SEVERE]     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    04:36:18 [SEVERE]     at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:80)
    04:36:18 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:229)
    04:36:18 [SEVERE]     at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:645)
    04:36:18 [SEVERE]     at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:608)
    04:36:18 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:602)
    04:36:18 [SEVERE]     at net.minecraft.server.Packet3Chat.a(SourceFile:24)
    04:36:18 [SEVERE]     at net.minecraft.server.NetworkManager.a(SourceFile:230)
    04:36:18 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:76)
    04:36:18 [SEVERE]     at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    04:36:18 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
    04:36:18 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    04:36:18 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    
    Tried on the dev snapshot and recommended builds of craftbukkit. Latest build from github.

    Also, sometimes when an npc respawns in a spawngroup, I hit him once, and he stops doing anything. Each time I try to hit him again, I get this error:

    Code:
    04:51:32 [SEVERE] Could not pass event ENTITY_DAMAGED to npcx
    java.lang.NullPointerException
        at net.gamerservices.npclibfork.BasicHumanNpcList.getBasicHumanNpc(BasicHumanNpcList.java:24)
        at net.gamerservices.npcx.npcxEListener.onEntityDamage(npcxEListener.java:53)
        at org.bukkit.plugin.java.JavaPluginLoader$38.execute(JavaPluginLoader.java:356)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
        at net.minecraft.server.EntityHuman.a(EntityHuman.java:368)
        at net.minecraft.server.EntityPlayer.a(EntityPlayer.java:145)
        at net.minecraft.server.EntityHuman.d(EntityHuman.java:451)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:748)
        at net.minecraft.server.Packet7UseEntity.a(SourceFile:33)
        at net.minecraft.server.NetworkManager.a(SourceFile:230)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:76)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    
     
  5. Offline

    mixxit

    Only use RB

    I think i haven't checked npc spawn in a while, might possibly not work at the moment
     
  6. I have the same issue with the latest release of npcx, it was working fine with previous version.

    Also npcs from spawngroups wont spawn until I reboot the server and when I try to hit one i get this :

    Code:
    Could not pass event ENTITY_DAMAGED to npcx ...
    Note that this only happens when tried the '/npcx npc spawn' command before. NPC hit back on fresh reboot.

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

    swedish2011

    Code:
    /npcx pathgroup create test
    
    /npcx pathgroup add 1 1
    
    /npcx pathgroup add 1 2
    
    /npcx spawngroup pathgroup 1 1
    
    /npcx spawngroup pathgroup 2 1
    
    
    hmm
     
  8. Offline

    mixxit

    Ok fixed (i think)

    Hmm not seeing this atm

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

    ledhead900

    I came to love Mysql since Sqlite packs bricks when it gets large databases going.
     
  10. Offline

    swedish2011

  11. Offline

    kenjamen


    Wow thats awesome!!!! I'm off to test it right now!!!
    Thanks for that, I just dont have time to search forums lol.
    BTW you should just add that quote to your Master when u get time.
    Sometimes less is more XD
     
  12. You should if you use '/npcx npc spawn' command and then try to hit a npc.
     
  13. Offline

    mixxit

    but you said:
    Also npcs from spawngroups wont spawn until I reboot the server and when I try to hit one i get this :

    Spawngroups are NOT the spawn command - /npcx npc spawn is for temporary npcs only

    Use:
    /npcx npc create NpcName
    /npcx spawngroup create SpawngroupName
    /npcx spawngroup add SPAWNGROUPID NPCID

    this will spawn your npc immediately and permanently
     
  14. Offline

    kenjamen

    btw this is exactly what i need for quests. Just adds sooo much depth. No collecting rat tails on my server :p
     
  15. Offline

    mixxit

    *winks* well i added a new db table called player flags ;))) so keep an eye out on that front ><
     
  16. Offline

    riuthamus

  17. Yea i had this figured out.

    I apologize if u did not understand what i meant in the first place :

    If you run '/npcx npc spawn' then everything get messed up like the command is breaking the plugin. That's when I start to get errors :
    Code:
    [SEVERE] Could not pass event ENTITY_DAMAGED to npcx
    java.lang.NullPointerException
    at net.gamerservices.npclibfork.BasicHumanNpcList.getBasicHumanNpc(BasicHumanNpcList.java:24)
    at net.gamerservices.npcx.npcxEListener.onEntityDamage(npcxEListener.java:53)
    at org.bukkit.plugin.java.JavaPluginLoader$38.execute(JavaPluginLoader.java:356)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
    at net.minecraft.server.EntityHuman.a(EntityHuman.java:368)
    at net.minecraft.server.EntityPlayer.a(EntityPlayer.java:145)
    at net.minecraft.server.EntityHuman.d(EntityHuman.java:451)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:748)
    at net.minecraft.server.Packet7UseEntity.a(SourceFile:33)
    at net.minecraft.server.NetworkManager.a(SourceFile:230)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:76)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    
     
  18. Offline

    Evan Melvin

    Again, are you considering implementing a way to limit what shops can buy/sell?
     
  19. Offline

    BrassDoll

    This mod and the work behind it seems promising.

    I'm running into a bit of a snag though - /reload seems to break the NPCs for me. Is there something I'm doing wrong that would cause this (and please don't say "using '/reload' " - no other mods break from it)? generally it seems to stack two of the same guy, neither responsive.

    Also, is there a conventional way to link NPCIDs with skin files?
     
  20. Offline

    mixxit

    yes, the solution will be /npcx npc category NPCID merchant

    It's an alternate type of npc for selling/buying where the admin can create a merchant list with items in it and attach the list to the npcs

    Reload has not been tested and i haven't tried to implement for it yet

    I'm not aware of a way, maybe with client mods but then your users will need non-vanilla clients
    I had hoped you could use the name as the player skin and DisplayName for the appearance name but i couldnt get that going

    Why are you using /npcx npc spawn instead of spawngroups?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 12, 2016
  21. I'm using both, just wanted to let you know the simple spawn cmd was broken.

    Also '/npcx npc primary' seems not to work while '/npcx npc helmet,chest,legs,boots' is working.

    And could you add a command to remove pathgroups?

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

    kenjamen

    Installed and Tested(a little) and here's what I've got so far:

    1) when trying to reinstall the plugin, deleting the npcx folder DOES NOT also clear your tables. You must manually go in and delete them or you will end up corrupting them by adding on top(no biggie for now)

    2) Banks- I got the shops to connect to Stevesy my shop guy and thats awesome. The sale chat parser is boss, only thing is I wanted that particular shop to hold unlimited items(if I can configure this or if it's coming let me know :p). So instead I removed the shop properties from Stevesy and put him inside of a 'LocalShop (another plugin)'. This works perfectly, you walk in and can use the shop or talk to stevesy for additional help. I also linked Stevesy's bank account to iecon so he now makes money on the trade like any shop owner would.
    He is adjusting in iecon properly!!! <-----------If this is just a byproduct PLEASE continue to support it!!! I really like that option.(I'd really like to have npc trade shops and location shops different also so leave yours :p ).

    3) Paths- Willy was made to test this and simple paths seemed ok. I tried making a long path right off the bat and Willy(who I dressed up like a gay biker weilding a wooden sword lol) was supposed to climb a large cliff and then jump off. Right away he got stopped at ascending blocks. If I moved them he could walk but he wouldn't climb up. I tried putting stairs in front of him but he didn't seem to climb up those either. I cleared it a little more and he proceeded to pull a jesus and start moonwalking on the water for about 3mins lol(forgot to get a screenshot). So I've taken atleast that path out for now. I'll continue to test this(also I just realized that I didn't set the aggro stuff if u have that up yet so I'll go see if that helps)

    4) I noticed that when Willy was stuck and i punched him, he would come at me np and try to attack me wherever I was, then willy would try to continue back onto his next path. This behavior is already built in so I have an idea for you. Instead of trying to path, place an invis npc at your pathgroup marker(maybe one at a time, then remove it after) and then set pathing npc(willy) up to attack the invisible npc and he will automatically navigate to that area. You can then move the invis npc(tp maybe) and have willy continue his attack. This may also greatly reduce resources needed for pathing also as I noticed it slowing significantly. Thing about this method though is it would make them run and idk if you'd be able to adjust that and the options while pathing might be limited.

    5) I really need archers. I'm not sure if you have this working yet but I need basically stationary archers (at minimum) for my server eventually. If you don't plan on this let me know and maybe I can whip something up.

    6) Think about adding logic to your text parser (ie. if(shopbalance>playerbalance)=>say "im richer than u biatch" etc. Just an idea.


    (67.190.102.228 if u wanna see. )


    Hope this helps. Of course #4 is just me thinking. Idk if this would actually be a solution.
    keep up the good werk

    -k
     
  23. Offline

    oOunrealOo

    were can i get the mysql file?
     
  24. Offline

    mixxit

    Updated the help commands list
     
  25. Offline

    Dodecha

    I Love this idea. Installed it on our test server.

    One thing though: I installed 1.01 and followed the install instructions,
    the plugin doesn't make the tables and i had to use the table create data you posted in this thread (on page 15) to get the plugin up and working, might want to add that information to the install instuctions.

    Other than that, nice work!
     
  26. Offline

    mixxit

    Strange as I deleted my tables and it regenerated them for me

    Maybe try a newer version and let me know the results so i can see if its a bug i need to fix or if its something i already did

    MERCHANTS ARE IN
    /npcx merchant create MyShop
    /npcx merchant add MERCHANTID ITEMID AMOUNT PRICEBUYAT PRICESELLAT
    /npcx npc merchant NPCID MERCHANTID
    /npcx npc category NPCID merchant

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

    phatchico

    I have no idea how hard this would be to do and/or implement if even possible. But an idea that i think would work really well is if people were able to "record" their own movement as a path and then apply it to a npc. Like I said no idea if this is viable or how difficult it would be to implement.
     
  28. Offline

    nperezu


    the table of npcx is not created, but the table of iconomy is created
    please help
     
  29. Offline

    mixxit

    That is pretty much what you are doing with the command already?

    It says there:
    ALTER command denied to user 'nperezu'@
    Grant ALL privileges to that database to the user nperezu

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

    Dodecha

    Not sure where i got the version 1.01 from.. I might be mixing up plugin versions in my head.. been a long day with little rest.
    Anyways the version i downloaded was the test jar from the first post.
     
  31. Offline

    Delodien

    I'm getting this error:
    Code:
    21:27:17 [INFO] **********************************************
    21:27:17 [INFO] *   Problem during update to version 1.01    *
    21:27:17 [INFO] *  Do you have entries in merchant_entries?  *
    21:27:17 [INFO] **********************************************
    21:27:17 [SEVERE] com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Tab
    le 'npcx.merchant_entries' doesn't exist
    21:27:17 [SEVERE]       at sun.reflect.NativeConstructorAccessorImpl.newInstance
    0(Native Method)
    21:27:17 [SEVERE]       at sun.reflect.NativeConstructorAccessorImpl.newInstance
    (Unknown Source)
    21:27:17 [SEVERE]       at sun.reflect.DelegatingConstructorAccessorImpl.newInst
    ance(Unknown Source)
    21:27:17 [SEVERE]       at java.lang.reflect.Constructor.newInstance(Unknown Sou
    rce)
    21:27:17 [SEVERE]       at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
    21:27:17 [SEVERE]       at com.mysql.jdbc.Util.getInstance(Util.java:382)
    21:27:17 [SEVERE]       at com.mysql.jdbc.SQLError.createSQLException(SQLError.j
    ava:1052)
    21:27:17 [SEVERE]       at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:
    3593)
    21:27:17 [SEVERE]       at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:
    3525)
    21:27:17 [SEVERE]       at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1986)
    
    21:27:17 [SEVERE]       at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:21
    40)
    21:27:17 [SEVERE]       at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.
    java:2620)
    21:27:17 [SEVERE]       at com.mysql.jdbc.StatementImpl.executeUpdate(StatementI
    mpl.java:1662)
    21:27:17 [SEVERE]       at com.mysql.jdbc.StatementImpl.executeUpdate(StatementI
    mpl.java:1581)
    21:27:17 [SEVERE]       at net.gamerservices.npcx.myUniverse.updateDB(myUniverse
    .java:230)
    21:27:17 [SEVERE]       at net.gamerservices.npcx.myUniverse.loadSetup(myUnivers
    e.java:186)
    21:27:17 [SEVERE]       at net.gamerservices.npcx.npcx.onEnable(npcx.java:536)
    21:27:17 [SEVERE]       at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlug
    in.java:118)
    21:27:17 [SEVERE]       at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(
    JavaPluginLoader.java:451)
    21:27:17 [SEVERE]       at org.bukkit.plugin.SimplePluginManager.enablePlugin(Si
    mplePluginManager.java:217)
    21:27:17 [SEVERE]       at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftSe
    rver.java:92)
    21:27:17 [SEVERE]       at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftS
    erver.java:70)
    21:27:17 [SEVERE]       at net.minecraft.server.MinecraftServer.e(MinecraftServe
    r.java:204)
    21:27:17 [SEVERE]       at net.minecraft.server.MinecraftServer.a(MinecraftServe
    r.java:191)
    21:27:17 [SEVERE]       at net.minecraft.server.MinecraftServer.d(MinecraftServe
    r.java:131)
    21:27:17 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:246)
    21:27:17 [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:366)
    21:27:17 [INFO] **********************************************
    21:27:17 [INFO] * Your DB is currently out of sync with your *
    21:27:17 [INFO] *           version of NPCX                  *
    21:27:17 [INFO] **********************************************
     

Share This Page