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

  3. Offline

    MasDaddy

    Hi,

    I installed NPCX (version 0.454) earlier today and I am running into a few problems. I am running on CentOS 5.5 and MySQL 5.x. I also have the latest version of Bukkit running on the server.

    After setting up the database and uploading the mod to the plugin folder I started up the Minecraft server. NPCX seems to be running fine and I managed to create a few NCP's without any problems. Where I am having difficulties is with the merchant category. I setup an NPC, set it to merchant and set up a list. I managed to buy items off the merchant, but for some reason I cannot sell anything. This is the output I get when trying to sell something:
    you say to shop, "sell 266 23"
    [sell][266][23]
    <MasDaddy> sell 266 23

    I tried running NPCX with and without iConomy without any luck.

    I find this really odd as the instillation process went without a hitch and I can buy items off merchants. Any help would be greatly appreciated.
     
  4. Offline

    skillinazn

    @mixxit So I'll take that as a no you can't fix it?

    @MasDaddy format is
    /npcx merchant add MERCHANTID(NUMBER) ITEMID AMOUNT PRICETOBUYAT PRICETOSELLAT

    So if you want to buy gold ingots for 23 coins but sell for 15 coins you do

    /npcx merchant add "ID" 266 "AMOUNT" 23 15
     
  5. Offline

    mixxit

    Minimum version for support 0.464
    http://world.gamerservices.net:8080/job/npcx/npcx-promotion/artifact/dist/npcx.jar

    The npc is selling this item?

    Maybe but i'm not sure what i'm supposed to do, i'm not cancelling entity damage events

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

    MasDaddy

    Hi Mixxit,

    Thanks for the quick response. I update NCPX and my database was successfully updated (0.464 ). I created a new NCP and made him a merchant. When it came time to create a list I got the following error:

    2011-04-09 11:16:00 [WARNING] npcx: error: For input string: ""[Ljava.lang.StackTraceElement;@315068
    2011-04-09 11:16:00 [SEVERE] java.lang.NumberFormatException: For input string: ""
    2011-04-09 11:16:00 [SEVERE] at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
    2011-04-09 11:16:00 [SEVERE] at java.lang.Integer.parseInt(Integer.java:493)
    2011-04-09 11:16:00 [SEVERE] at java.lang.Integer.parseInt(Integer.java:514)
    2011-04-09 11:16:00 [SEVERE] at net.gamerservices.npcx.npcx.onCommand(npcx.java:2204)
    2011-04-09 11:16:00 [SEVERE] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    2011-04-09 11:16:00 [SEVERE] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:80)
    2011-04-09 11:16:00 [SEVERE] at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:254)
    2011-04-09 11:16:00 [SEVERE] at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:596)
    2011-04-09 11:16:00 [SEVERE] at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:559)
    2011-04-09 11:16:00 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:553)
    2011-04-09 11:16:00 [SEVERE] at net.minecraft.server.Packet3Chat.a(SourceFile:24)
    2011-04-09 11:16:00 [SEVERE] at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
    2011-04-09 11:16:00 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
    2011-04-09 11:16:00 [SEVERE] at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    2011-04-09 11:16:00 [SEVERE] at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
    2011-04-09 11:16:00 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    2011-04-09 11:16:00 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)

    Any ideas?

    PS: before the update I added the item and the buy sell values without any problems. I only encountered problems when trying to sell an item (sand), but I could buy that very same item.
     
  7. Offline

    Indyhouse

    Code:
    The official way of resetting npcx and its database is by removing the npcx folder in your plugins directory
    - on next launch this will wipe your database tables and start from fresh. 
    I tried this, and it didn't work because when the server restarts, the npcx folder is gone, which contained the .properties file with the MySQL database and login information, so it can't "wipe your database files and start from fresh." Now no matter what I do, I can't get npcx to work.

    After restarting, I updated the default .properties file and restarted again, and this is what I get:

    Code:
    2011-04-09 03:26:31 [INFO] npcx : initialising database connection
    2011-04-09 03:26:31 [INFO] npcx : loadsettings() ended
    2011-04-09 03:26:31 [INFO] npcx : registering monitored events
    2011-04-09 03:26:31 [INFO] npcx : Checking for DB Updates from DBVersion:1
    2011-04-09 03:26:31 [INFO] **********************************************
    2011-04-09 03:26:31 [INFO] *   Problem during update to version 1.01    *
    2011-04-09 03:26:31 [INFO] *  Do you have entries in merchant_entries?  *
    2011-04-09 03:26:31 [INFO] **********************************************
    2011-04-09 03:26:31 [SEVERE] com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'server506.merchant_entries' doesn't exist
    2011-04-09 03:26:31 [SEVERE]     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2011-04-09 03:26:31 [SEVERE]     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    2011-04-09 03:26:31 [SEVERE]     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    2011-04-09 03:26:31 [SEVERE]     at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
    2011-04-09 03:26:31 [SEVERE]     at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
    2011-04-09 03:26:31 [SEVERE]     at com.mysql.jdbc.Util.getInstance(Util.java:382)
    2011-04-09 03:26:31 [SEVERE]     at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1052)
    2011-04-09 03:26:31 [SEVERE]     at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3593)
    2011-04-09 03:26:31 [SEVERE]     at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3525)
    2011-04-09 03:26:31 [SEVERE]     at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1986)
    2011-04-09 03:26:31 [SEVERE]     at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2140)
    2011-04-09 03:26:31 [SEVERE]     at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2620)
    2011-04-09 03:26:31 [SEVERE]     at com.mysql.jdbc.StatementImpl.executeUpdate(StatementImpl.java:1662)
    2011-04-09 03:26:31 [SEVERE]     at com.mysql.jdbc.StatementImpl.executeUpdate(StatementImpl.java:1581)
    2011-04-09 03:26:31 [SEVERE]     at net.gamerservices.npcx.myUniverse.updateDB(myUniverse.java:316)
    2011-04-09 03:26:31 [SEVERE]     at net.gamerservices.npcx.myUniverse.checkUpdates(myUniverse.java:1072)
    2011-04-09 03:26:31 [SEVERE]     at net.gamerservices.npcx.npcx.onEnable(npcx.java:703)
    2011-04-09 03:26:31 [SEVERE]     at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
    2011-04-09 03:26:31 [SEVERE]     at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:578)
    2011-04-09 03:26:31 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:216)
    2011-04-09 03:26:31 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:115)
    2011-04-09 03:26:31 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:93)
    2011-04-09 03:26:31 [SEVERE]     at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)
    2011-04-09 03:26:31 [SEVERE]     at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)
    2011-04-09 03:26:31 [SEVERE]     at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)
    2011-04-09 03:26:31 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)
    2011-04-09 03:26:31 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    2011-04-09 03:26:31 [INFO] **********************************************
    2011-04-09 03:26:31 [INFO] * Your DB is currently out of sync with your *
    2011-04-09 03:26:31 [INFO] *           version of NPCX                  *
    2011-04-09 03:26:31 [INFO] **********************************************
    2011-04-09 03:26:31 [SEVERE] com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'server506.player_faction' doesn't exist
    2011-04-09 03:26:31 [SEVERE]     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2011-04-09 03:26:31 [SEVERE]     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    2011-04-09 03:26:31 [SEVERE]     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    2011-04-09 03:26:31 [SEVERE]     at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
    2011-04-09 03:26:31 [SEVERE]     at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
    2011-04-09 03:26:31 [SEVERE]     at com.mysql.jdbc.Util.getInstance(Util.java:382)
    2011-04-09 03:26:31 [SEVERE]     at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1052)
    2011-04-09 03:26:31 [SEVERE]     at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3593)
    2011-04-09 03:26:31 [SEVERE]     at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3525)
    2011-04-09 03:26:31 [SEVERE]     at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1986)
    2011-04-09 03:26:31 [SEVERE]     at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2140)
    2011-04-09 03:26:31 [SEVERE]     at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2620)
    2011-04-09 03:26:31 [SEVERE]     at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2570)
    2011-04-09 03:26:31 [SEVERE]     at com.mysql.jdbc.StatementImpl.executeQuery(StatementImpl.java:1474)
    2011-04-09 03:26:31 [SEVERE]     at net.gamerservices.npcx.myUniverse.loadPlayerFactions(myUniverse.java:1421)
    2011-04-09 03:26:31 [SEVERE]     at net.gamerservices.npcx.myUniverse.loadData(myUniverse.java:1307)
    2011-04-09 03:26:31 [SEVERE]     at net.gamerservices.npcx.npcx.onEnable(npcx.java:706)
    2011-04-09 03:26:31 [SEVERE]     at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
    2011-04-09 03:26:31 [SEVERE]     at
    
    ....
    
    
    and on and on...
     
  8. Offline

    MasDaddy

    Have you tried downloading a new copy of NPCX? Once you do that simply run Minecraft which will create the .properties file. After that stop Minecraft, go into the .properties file and make the correct changes to connect to your desired database.
     
  9. Offline

    mixxit

    Yes this is exactly what you need to do - delete your npcx folder and then boot the server, close the server - your new fresh config file is created - edit the file to match your mysql settings and world - boot the server

    It will now wipe your database and update it from 1.0 to 1.10
     
  10. Offline

    MasDaddy

    Hi Mixxit,

    Any ideas on what may be causing my issue? Did you have a chance to look over the error I got:
    Code:
    2011-04-09 11:16:00 [WARNING] npcx: error: For input string: ""[Ljava.lang.StackTraceElement;@315068
    2011-04-09 11:16:00 [SEVERE] java.lang.NumberFormatException: For input string: ""
    2011-04-09 11:16:00 [SEVERE] at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
    2011-04-09 11:16:00 [SEVERE] at java.lang.Integer.parseInt(Integer.java:493)
    2011-04-09 11:16:00 [SEVERE] at java.lang.Integer.parseInt(Integer.java:514)
    2011-04-09 11:16:00 [SEVERE] at net.gamerservices.npcx.npcx.onCommand(npcx.java:2204)
    2011-04-09 11:16:00 [SEVERE] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    2011-04-09 11:16:00 [SEVERE] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:80)
    2011-04-09 11:16:00 [SEVERE] at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:254)
    2011-04-09 11:16:00 [SEVERE] at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:596)
    2011-04-09 11:16:00 [SEVERE] at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:559)
    2011-04-09 11:16:00 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:553)
    2011-04-09 11:16:00 [SEVERE] at net.minecraft.server.Packet3Chat.a(SourceFile:24)
    2011-04-09 11:16:00 [SEVERE] at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
    2011-04-09 11:16:00 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
    2011-04-09 11:16:00 [SEVERE] at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    2011-04-09 11:16:00 [SEVERE] at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
    2011-04-09 11:16:00 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    2011-04-09 11:16:00 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
     
  11. Offline

    mixxit

    Thats saying the number you are providing is wrong

    s2.setInt (3,Integer.parseInt(args[4]));

    Is the line it's failing on

    That happens to be the 'amount' in the merchant list entry

    If you are trying to use nolimit, well that needs to be done differently - set a limit in the merchant list entry

    Then use /npcx merchant category MERCHANTID nolimit

    That sets them all as no limit
     
  12. Offline

    MasDaddy

    Thanks a bunch Mixxit!
     
  13. Offline

    mixxit

    Anytime!
     
  14. Offline

    grimreaperdude0

    hello mixxit how do i set up quests with this plugin?
     
  15. Offline

    Killacokie55

    Hi, im new to the forums, but me and my friend have been trying for 3hours to install this bloody MySQL we installed NPCx fine just we cant install MySQL, its all to confusing. we have are using Mac btw which u havnt given instructions on how to install -_- so please tell us how to install it.
     
  16. Offline

    Luong

    don't they have the MySQL server installation for all OS at http://dev.mysql.com/downloads/mysql/ ?

    all i know is, for mac, the installation files are DMG, how to set them up I have no idea. My sister uses a mac, I don't ever touch it, so any problems she has, her problem. I already have to deal with the other 4 pc in the house >_<

    MAC are pretty stubborn too. files you downloaded using windows, get corrupted if you transfer the file the file from windows to the mac. Or was that only for the OS dmg file for reinstalling mac's OS, dont' remember, don't care. Tire of making pc other devices compatible with the mac.
     
  17. Offline

    Guenael

  18. This plugin is just awesome, but the way to create bots, set groups, paths, categories etc... isn't really user-friendly, but coupled with a web interface it will be perfect. so i'll make one. nice work dude.

    edit: an external texts file would be nice for translation ;)
     
  19. Offline

    Nate Wiebe

    Is it possible to create a banker npc that works with iConomy? I'd like it so you can deposit and withdraw money from the banker and while it's in the bank, it has adjustable interest.
     
  20. Offline

    CHIKINS!!!

    Can you set it up for mac?

    or just make an easy jar file?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 12, 2016
  21. CHIKINS!!! you just have to put the .jar file (download it on the firt post) and to put it in the plugins folder of your minecraft server.
     
  22. Offline

    Rivus

    It would be awesome if you could use an npc to teleport a player around..
     
  23. Offline

    Mannimal0916

    Can you ask for someone to make a mac tutorial for this

    No there is more, i tried that, it doesnt work

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 12, 2016
  24. and set up the mysql connection of course.
     
  25. Offline

    Mannimal0916

    There is no way to set up the connection because the socket file cannot be found and there is no good appication. If you could thouroghly explain how to me, I would be very thankful!
     
  26. the socket file ? maybe the java sql driver is missing ?
     
  27. Offline

    Mannimal0916

    No, it just says it isn't there on my computer
     
  28. Offline

    mixxit

    Quests are done in the same fashion of everquest - you have two choices of ways to go with this as they did in everquest.

    Option 1) You make the quests using the [hint] system. For example

    Hello!
    Hello Mixxit, I just don't know what to do since my [wife] went missing
    Who is your wife?
    My wife is carlotta, i love her so much and i'm so worried about her, i wish someone could [help] me find her
    I'll help
    Great! Oh thank you so much mixxit, she was last seen near highguard

    At this point the player knows that the guy has lost his wife, carlotta and she was last seen near highguard, he wants your help to find her

    From here you can add triggerwords to ever npc in HighGuard to respond to 'carlotta' or maybe even teh npcs name who gave you the quest. You ask them about her, if they've seen her etc, till eventually you find her and she gives you the right [triggerword] to say to him or maybe even use the 'give' command to give him a flower or a piece of paper that could act as a note from her

    Option 2) You make the quests using triggerwords but do not use [hints]

    This is a more interesting one, as it stops players from chewing through your content as fast as you make it. Essentially its the same process but you dont provide [brackets] around triggerwords, it's up to the player to use his/her intelligence to figure out the right questions to ask

    This worked really well in EverQuest because it meant there were more than just the [bracket] quests. Infact Sony made an announcement that only 1/4 of everquests quests had been found - this meant that there were over 3/4 of quest rewards that nobody had ever even seen! Imagine how powerful some of those items might be if it's a really long 'epic' quest

    ---

    I would suggest your newbie area is populated with [bracket] quests and mixed in with many hidden quests that will extend the lifetime of the game for the player. Infact they may have even figured out all your quests but they will still be trying to find more because they just don't know how many there are

    This also means that when players start asking you 'IS THIS A HIDDEN QUEST?? OMG IT WOULD BE AWESOME IF IT IS'

    Then the players begin to push cool content ideas onto you whilst not knowing if this is something you have already implemented

    -

    Hope that helps, do your best to make use of [give] which every npc can do - the event is EVENT_RECEIVEXXX where XXX is the item id you want the npc to respond on

    Sorry I don't use a mac but i typed 'mac mysql' into google and it came back with 10 million results - i'd start there or at least an irc help channel for mysql - you really should tell them what you have tried in advance though (and you should have also told us that here)

    thanks, ill make an xml file for that at some point in the future but its not on my top list of priorities right now - i did guide drfox through loading up the source and compiling language changes though - he's french so if you are too maybe you could pop by our irc channel and talk to him

    Atm there is only NPCSUMMONPLAYER but when i get chance i'll add NPCWARPPLAYER|X,Y,Z (same world only)

    All the bank functions will use iconomy and if not it will fall back onto the npcx economy

    that includes:
    /civ balance
    /npcx civ givemoney
    the triggerword response variable 'playerbalance' returns a players balance
    all shop functions etc hook into iconomy/npcxeco

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 12, 2016
  29. (yes i'm french ^^)
    I thought about it, but i don't like the idea of running on custom sources.
    Also i noticed something with Merchant NPCs : if you define a default triggerword and a custom answer, it's doesn't override the default answer ("sorry, can i help you ?..").
     
  30. Offline

    mixxit

    It doesn't overwrite it, it just adds a line below it - same goes for sell buy and list
     
  31. Offline

    Guenael

    (I'm french , what's problem with french ? :p )

    hum mixit i don't find if you add it but Hitpoint and npc dommage working now ?
    I try to modify them in sql but nothing change :)
     

Share This Page