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

    ok try the latest version

    also change your worldname to what it is in server.properties
     
  3. Same as above. npcx : ERROR - Error during MySQL login
    I never did get a npcx folder to generate so I made one with the information above... still no luck.

    I can log into mysql manually but for some reason the npcx.jar can not.

    Where do you find.... ok try the latest version
     
  4. Offline

    relik0fages

    i get this lovely piece now :
    21:55:26 [INFO] npcx : load settings begun
    21:55:26 [INFO] jdbc:mysql://localhost:null/npcx
    21:55:26 [INFO] npcx : loadsettings() ended
    21:55:26 [INFO] npcx : initialising database connection
    21:55:26 [INFO] *****************************************
    21:55:26 [INFO] npcx : ERROR - Error during MySQL login
    21:55:26 [INFO] *****************************************
    21:55:26 [SEVERE] java.sql.SQLException: Illegal connection port value 'null'
    21:55:26 [SEVERE] at com.mysql.jdbc.SQLError.createSQLException(SQLError.j
    ava:1055)
    21:55:26 [SEVERE] at com.mysql.jdbc.SQLError.createSQLException(SQLError.j
    ava:956)
    21:55:26 [SEVERE] at com.mysql.jdbc.SQLError.createSQLException(SQLError.j
    ava:926)
    21:55:26 [SEVERE] at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionI
    mpl.java:2018)
    21:55:26 [SEVERE] at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.j
    ava:718)
    21:55:26 [SEVERE] at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection
    .java:46)
    21:55:26 [SEVERE] at sun.reflect.NativeConstructorAccessorImpl.newInstance
    0(Native Method)
    21:55:26 [SEVERE] at sun.reflect.NativeConstructorAccessorImpl.newInstance
    (Unknown Source)
    21:55:26 [SEVERE] at sun.reflect.DelegatingConstructorAccessorImpl.newInst
    ance(Unknown Source)
    21:55:26 [SEVERE] at java.lang.reflect.Constructor.newInstance(Unknown Sou
    rce)
    21:55:26 [SEVERE] at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
    21:55:26 [SEVERE] at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionI
    mpl.java:302)
    21:55:26 [SEVERE] at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegist
    eringDriver.java:282)
    21:55:26 [SEVERE] at java.sql.DriverManager.getConnection(Unknown Source)
    21:55:26 [SEVERE] at java.sql.DriverManager.getConnection(Unknown Source)
    21:55:26 [SEVERE] at net.gamerservices.npcx.npcx.onEnable(npcx.java:660)
    21:55:26 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlug
    in.java:118)
    21:55:26 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(
    JavaPluginLoader.java:451)
    21:55:26 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(Si
    mplePluginManager.java:217)
    21:55:26 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftSe
    rver.java:92)
    21:55:26 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftS
    erver.java:70)
    21:55:26 [SEVERE] at net.minecraft.server.MinecraftServer.e(MinecraftServe
    r.java:204)
    21:55:26 [SEVERE] at net.minecraft.server.MinecraftServer.a(MinecraftServe
    r.java:191)
    21:55:26 [SEVERE] at net.minecraft.server.MinecraftServer.d(MinecraftServe
    r.java:131)
    21:55:26 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:246)
    21:55:26 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:366)
     
  5. Offline

    mixxit

    at command prompt type
    mysql -u npcx -p

    login see what it says

    come to irc i can help quicker there

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

    n30nex

    So pathgroup commands are recognized by the plugin currently, but will not execute? I gave them a try with a group named group1 and a path named patrol, but I get error spammed when I do /npcx spawngroup pathgroup group1 patrol.

    I used "/npcx pathgroup add patrol 1" then "/npcx pathgroup add patrol 2"

    Was my format incorrect? As much information as you stuffed into the github, it's hard to distinguish the syntax, did I set the pathing up wrong?
     
  7. Offline

    mixxit

    /npcx spawngroup pathgroup SPAWNGROUPID PATHGROUPID

    updated the ingame help to reflect
     
  8. Offline

    byzantinian

    Is there a flag I could set so they are attack on sight? Allowing "guards" and/or wandering human aggressive mobs?
     
  9. Offline

    mixxit

    create a faction, set the baseamount to -1500 and then give the faction to the npc with /npcx npc faction
    he will now aggro any player by default
     
  10. Offline

    byzantinian

    you are awesome, i'm adding this to my server N-O-W =D
     
  11. Offline

    Daveyo

    Code:
    22:32:29 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-544-
    g6c6c30a-b556jnks (MC: 1.3)
    22:32:29 [INFO] Preparing level "world"
    22:32:33 [INFO] npcx : load settings begun
    22:32:33 [INFO] jdbc:mysql://localhost:3306/npcx
    22:32:33 [INFO] npcx : loadsettings() ended
    22:32:33 [INFO] npcx : initialising database connection
    22:32:33 [INFO] npcx : registering monitored events
    22:32:33 [INFO] npcx : loading factions
    22:32:33 [INFO] npcx : Loaded 0 factions.
    22:32:33 [INFO] npcx : loading pathgroups
    22:32:33 [INFO] npcx : Loaded 0 pathgroup.
    22:32:33 [INFO] npcx : loading loottables
    22:32:33 [INFO] npcx : Loaded 0 loottables.
    22:32:33 [INFO] npcx : loading spawngroups
    22:32:33 [INFO] 2 spawngroups loaded
    22:32:33 [INFO] npcx version 0.152 enabled.
    22:32:33 [INFO] [(Plugin)] Successfully linked with iConomy.
    22:32:40 [INFO] DC: PlayerJoin success for DaveYo1
    22:32:40 [SEVERE] Exception in thread "Timer-1"
    22:32:40 [SEVERE] java.lang.NoSuchMethodError: redecouverte.npcspawner.NpcSpawne
    r.SpawnBasicHumanNpc(Ljava/lang/String;Ljava/lang/String;Lorg/bukkit/World;DDDDD
    )Lredecouverte/npcspawner/BasicHumanNpc;
    22:32:40 [SEVERE]       at net.gamerservices.npcx.npcx.think(npcx.java:320)
    22:32:40 [SEVERE]       at net.gamerservices.npcx.Tick.run(Tick.java:16)
    22:32:40 [SEVERE]       at java.util.TimerThread.mainLoop(Unknown Source)
    22:32:40 [SEVERE]       at java.util.TimerThread.run(Unknown Source)
    any ideas? I followed the instructions, typed in the commands from the mysql> command prompt line. Seemed like everything went through correct on mysql. The commands work but then nothing spawns.
     
  12. Offline

    mrgreaper

    couldnt get help in irc,
    what permision node do i add to allow my users to create shops and guards?
     
  13. Offline

    mixxit

    you have to wait a bit longer in irc, i was checking out a new build

    what did you specify for your world name? it needs to be the same as what minecraft is loading as default

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

    mrgreaper

    i did sit there for quite some time, im in the process of adding this to the server but cant find the permision nodes do all players have permision to create all npcs?
    what we would like to do is have what we had with mpctrader before it was abandoned
    player creates a npc shop (for which they are charged iconomy amount
    player stocks shop from inventory
    player sets price
    other players buy from them and they get the currency

    the fact players can have guards too is very cool

    just need to know how to set it up and if what we need is possible
     
  15. Offline

    mixxit

    this is for creating player content not for player shops or anything like that

    i was thinking of adding stuff onto towny to facilitate that though so just wait around :)
     
  16. Offline

    mrgreaper

    ok :(
    can you make the player npc shops independent of towny as we dont use that

    its a shame there is no npc traders at mo, some one created them then abandoned them and no one has been able to recreate it
     
  17. Offline

    Daveyo

    my world name is indeed world. The only thing standing out is db pass is db-pass=p4ssw0rd\! should i delete the \! at the end of it?
     
  18. Offline

    habbah

    sucks that mysql is mandatory
     
  19. Offline

    Daveyo

    thought the same thing, but use the bigbrother walkthrough. So helpful. After that the mysql is pretty easy to setup for other addons
     
  20. Offline

    Nachocuban

    Installed mysql, put the downloaded connecter in the java folder, put the connector you gave into the minecraft/lib. I created the database in mysql, created the user, gave permissions, i can log on to the user via the command line. But i am getting this error on start up. Plugin does not work in game. using... cb 556, NPCX .156
    Error Log (open)

    Code:
    25566
    2011-03-24 23:59:51 [WARNING] **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
    2011-03-24 23:59:51 [WARNING] The server will make no attempt to authenticate usernames. Beware.
    2011-03-24 23:59:51 [WARNING] While this makes the game possible to play without internet access, it also opens up the ability for hackers to connect with any username they choose.
    2011-03-24 23:59:51 [WARNING] To change this, set "online-mode" to "true" in the server.settings file.
    2011-03-24 23:59:51 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-544-g6c6c30a-b556jnks (MC: 1.3)
    2011-03-24 23:59:51 [INFO] Preparing level "world"
    2011-03-24 23:59:51 [INFO] Preparing start region
    2011-03-24 23:59:52 [INFO] npcx : load settings begun
    2011-03-24 23:59:52 [INFO] jdbc:mysql://localhost:3306/npcx
    2011-03-24 23:59:52 [INFO] npcx : loadsettings() ended
    2011-03-24 23:59:52 [INFO] npcx : initialising database connection
    2011-03-24 23:59:54 [INFO] *****************************************
    2011-03-24 23:59:54 [INFO] npcx : ERROR - Error during MySQL login
    2011-03-24 23:59:54 [INFO] *****************************************
    2011-03-24 23:59:54 [SEVERE] com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
    
    The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
    2011-03-24 23:59:54 [SEVERE]     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2011-03-24 23:59:54 [SEVERE]     at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    2011-03-24 23:59:54 [SEVERE]     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    2011-03-24 23:59:54 [SEVERE]     at java.lang.reflect.Constructor.newInstance(Unknown Source)
    2011-03-24 23:59:54 [SEVERE]     at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
    2011-03-24 23:59:54 [SEVERE]     at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1116)
    2011-03-24 23:59:54 [SEVERE]     at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:346)
    2011-03-24 23:59:54 [SEVERE]     at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2334)
    2011-03-24 23:59:54 [SEVERE]     at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2371)
    2011-03-24 23:59:54 [SEVERE]     at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2163)
    2011-03-24 23:59:54 [SEVERE]     at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:794)
    2011-03-24 23:59:54 [SEVERE]     at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
    2011-03-24 23:59:54 [SEVERE]     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2011-03-24 23:59:54 [SEVERE]     at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    2011-03-24 23:59:54 [SEVERE]     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    2011-03-24 23:59:54 [SEVERE]     at java.lang.reflect.Constructor.newInstance(Unknown Source)
    2011-03-24 23:59:54 [SEVERE]     at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
    2011-03-24 23:59:54 [SEVERE]     at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:378)
    2011-03-24 23:59:54 [SEVERE]     at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:305)
    2011-03-24 23:59:54 [SEVERE]     at java.sql.DriverManager.getConnection(Unknown Source)
    2011-03-24 23:59:54 [SEVERE]     at java.sql.DriverManager.getConnection(Unknown Source)
    2011-03-24 23:59:54 [SEVERE]     at net.gamerservices.npcx.npcx.onEnable(npcx.java:660)
    2011-03-24 23:59:54 [SEVERE]     at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
    2011-03-24 23:59:54 [SEVERE]     at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:451)
    2011-03-24 23:59:54 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:217)
    2011-03-24 23:59:54 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:92)
    2011-03-24 23:59:54 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:70)
    2011-03-24 23:59:54 [SEVERE]     at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
    2011-03-24 23:59:54 [SEVERE]     at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
    2011-03-24 23:59:54 [SEVERE]     at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
    2011-03-24 23:59:54 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
    2011-03-24 23:59:54 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    2011-03-24 23:59:54 [SEVERE] Caused by: java.net.ConnectException: Connection refused: connect
    2011-03-24 23:59:54 [SEVERE]     at java.net.PlainSocketImpl.socketConnect(Native Method)
    2011-03-24 23:59:54 [SEVERE]     at java.net.PlainSocketImpl.doConnect(Unknown Source)
    2011-03-24 23:59:54 [SEVERE]     at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
    2011-03-24 23:59:54 [SEVERE]     at java.net.PlainSocketImpl.connect(Unknown Source)
    2011-03-24 23:59:54 [SEVERE]     at java.net.SocksSocketImpl.connect(Unknown Source)
    2011-03-24 23:59:54 [SEVERE]     at java.net.Socket.connect(Unknown Source)
    2011-03-24 23:59:54 [SEVERE]     at java.net.Socket.connect(Unknown Source)
    2011-03-24 23:59:54 [SEVERE]     at java.net.Socket.<init>(Unknown Source)
    2011-03-24 23:59:54 [SEVERE]     at java.net.Socket.<init>(Unknown Source)
    2011-03-24 23:59:54 [SEVERE]     at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:254)
    2011-03-24 23:59:54 [SEVERE]     at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:295)
    2011-03-24 23:59:54 [SEVERE]     ... 25 more
    2011-03-24 23:59:54 [INFO] Done (0.285s)! For help, type "help" or "?"
    2011-03-25 00:05:49 [INFO] Stopping the server..
    2011-03-25 00:05:49 [INFO] CONSOLE: Stopping the server..
    2011-03-25 00:05:49 [INFO] Stopping server
    2011-03-25 00:05:49 [INFO] npcx version 0.15 disabled.
    2011-03-25 00:05:49 [INFO] Saving chunks
    

    Config File (open)
    Code:
    #Default generated settings, please ensure mysqld matches
    #Thu Mar 24 22:06:45 EDT 2011
    db-pass=p4ssw0rd\!
    db-host=localhost
    world=world
    db-port=3306
    db-user=npcx
    db-name=npcx
    update=true
    
     
  21. Offline

    Spazmic

    And why ? I don't know a lot about mysql.
     
  22. Offline

    mixxit

    says there connection refused
     
  23. Offline

    Nate204

    I just wanted to say, that what you've done with the path groups already~ is simply AWESOME! Keep it up!!!! I Love It! :D
     
  24. Offline

    Lime Studios

    I have one question...Why do the NPC's duplicate every time I reload the server? Also How do you remove NPC's? Thanks! Great plugin btw!
     
  25. Offline

    mixxit

    atm the only way is to edit the database

    duplicating?
     
  26. Offline

    relik0fages

    I was wondering, as I am still having issues trying to get this plugin working- I'm currently using Win7. Who is using Linux and who's using Windows. Are people using Windows having trouble trying to get this to work compared to the ones that have it working.
     
  27. Offline

    Nate204

    Linux has very little problems starting this. I use Ubunto 10.10, and I use Webmin to help me manage the server. I just added a user, created a file (all in MySql) and lauched it. Then I stopped, edited the world name in the settings, started it up again and I'm rolling out NPCs. When ever I update, I delete the contents of MySQL for npcx, and then remove the npcxfolder in my plugins. Then I start it all over again. Works every time.

    Yeah I lose My NPCs, but this is all very beta.. =)
     
  28. Offline

    thiefzer0

    I've got it running in Win7 by following the directions. It's a tad confusing but I like it :) I just wonder if we can change the guard skins... steel plated Masterchief doesn't fit my world too well :p

    NPC's always disappear on log out or restarts?

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

    pupatron3000

    Do you HAVE to have sql? I just want to have npcs
     
  30. Offline

    SoTD

    Maybe it's a stupid question, but why not:

    Could u create a NPC who just stands on one site, so mobs spawn in his environment? My goal: I just put the NPC at my collector from my mob tower. If im not near, mobs still spawn.

    Is this possible?
     
  31. Offline

    Phanku

    This is an advance plugin for advance server operators. Most professional server operators will tell you that databases are always the way to go. MySQL over Sqlite any day.

    Time to step up.

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

Share This Page