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

    swedish2011

    Code:
    21:58:53 [INFO] Starting minecraft server version Beta 1.3
    21:58:53 [INFO] Loading properties
    21:58:53 [INFO] Starting Minecraft server on *:27777
    21:58:53 [VARNING] **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
    21:58:53 [VARNING] The server will make no attempt to authenticate usernames. Be
    ware.
    21:58:53 [VARNING] While this makes the game possible to play without internet a
    ccess, it also opens up the ability for hackers to connect with any username the
    y choose.
    21:58:53 [VARNING] To change this, set "online-mode" to "true" in the server.set
    tings file.
    21:58:53 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-544-
    g6c6c30a-b556jnks (MC: 1.3)
    21:58:53 [INFO] Preparing level "world"
    21:58:53 [INFO] Preparing start region
    21:58:54 [INFO] npcx : config folder generation ended
    21:58:54 [INFO] npcx : properties file generation ended
    21:58:54 [INFO] npcx : load settings begun
    21:58:54 [INFO] jdbc:mysql://localhost:3306/npcx
    21:58:54 [INFO] npcx : loadsettings() ended
    21:58:54 [INFO] npcx : initial setup ended
    21:58:54 [INFO] npcx : load settings begun
    21:58:54 [INFO] jdbc:mysql://localhost:3306/npcx
    21:58:54 [INFO] npcx : loadsettings() ended
    21:58:54 [INFO] npcx : registering monitored events
    21:58:54 [INFO] npcx : initialising database connection
    21:58:56 [ALLVARLIG] com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Co
    mmunications link failure
    
    The last packet sent successfully to the server was 0 milliseconds ago. The driv
    er has not received any packets from the server.
    21:58:56 [ALLVARLIG]    at sun.reflect.NativeConstructorAccessorImpl.newInstance
    0(Native Method)
    21:58:56 [ALLVARLIG]    at sun.reflect.NativeConstructorAccessorImpl.newInstance
    (Unknown Source)
    21:58:56 [ALLVARLIG]    at sun.reflect.DelegatingConstructorAccessorImpl.newInst
    ance(Unknown Source)
    21:58:56 [ALLVARLIG]    at java.lang.reflect.Constructor.newInstance(Unknown Sou
    rce)
    21:58:56 [ALLVARLIG]    at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
    21:58:56 [ALLVARLIG]    at com.mysql.jdbc.SQLError.createCommunicationsException
    (SQLError.java:1116)
    21:58:56 [ALLVARLIG]    at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:346)
    21:58:56 [ALLVARLIG]    at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionI
    mpl.java:2334)
    21:58:56 [ALLVARLIG]    at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(Conne
    ctionImpl.java:2371)
    21:58:56 [ALLVARLIG]    at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionI
    mpl.java:2163)
    21:58:56 [ALLVARLIG]    at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.j
    ava:794)
    21:58:56 [ALLVARLIG]    at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection
    .java:47)
    21:58:56 [ALLVARLIG]    at sun.reflect.NativeConstructorAccessorImpl.newInstance
    0(Native Method)
    21:58:56 [ALLVARLIG]    at sun.reflect.NativeConstructorAccessorImpl.newInstance
    (Unknown Source)
    21:58:56 [ALLVARLIG]    at sun.reflect.DelegatingConstructorAccessorImpl.newInst
    ance(Unknown Source)
    21:58:56 [ALLVARLIG]    at java.lang.reflect.Constructor.newInstance(Unknown Sou
    rce)
    21:58:56 [ALLVARLIG]    at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
    21:58:56 [ALLVARLIG]    at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionI
    mpl.java:378)
    21:58:56 [ALLVARLIG]    at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegist
    eringDriver.java:305)
    21:58:56 [ALLVARLIG]    at java.sql.DriverManager.getConnection(Unknown Source)
    21:58:56 [ALLVARLIG]    at java.sql.DriverManager.getConnection(Unknown Source)
    21:58:56 [ALLVARLIG]    at net.gamerservices.npcx.npcx.onEnable(npcx.java:394)
    21:58:56 [ALLVARLIG]    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlug
    in.java:118)
    21:58:56 [ALLVARLIG]    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(
    JavaPluginLoader.java:451)
    21:58:56 [ALLVARLIG]    at org.bukkit.plugin.SimplePluginManager.enablePlugin(Si
    mplePluginManager.java:217)
    21:58:56 [ALLVARLIG]    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftSe
    rver.java:92)
    21:58:56 [ALLVARLIG]    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftS
    erver.java:70)
    21:58:56 [ALLVARLIG]    at net.minecraft.server.MinecraftServer.e(MinecraftServe
    r.java:204)
    21:58:56 [ALLVARLIG]    at net.minecraft.server.MinecraftServer.a(MinecraftServe
    r.java:191)
    21:58:56 [ALLVARLIG]    at net.minecraft.server.MinecraftServer.d(MinecraftServe
    r.java:131)
    21:58:56 [ALLVARLIG]    at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:246)
    21:58:56 [ALLVARLIG]    at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:366)
    21:58:56 [ALLVARLIG] Caused by: java.net.ConnectException: Connection refused: c
    onnect
    21:58:56 [ALLVARLIG]    at java.net.PlainSocketImpl.socketConnect(Native Method)
    
    21:58:56 [ALLVARLIG]    at java.net.PlainSocketImpl.doConnect(Unknown Source)
    21:58:56 [ALLVARLIG]    at java.net.PlainSocketImpl.connectToAddress(Unknown Sou
    rce)
    21:58:56 [ALLVARLIG]    at java.net.PlainSocketImpl.connect(Unknown Source)
    21:58:56 [ALLVARLIG]    at java.net.SocksSocketImpl.connect(Unknown Source)
    21:58:56 [ALLVARLIG]    at java.net.Socket.connect(Unknown Source)
    21:58:56 [ALLVARLIG]    at java.net.Socket.connect(Unknown Source)
    21:58:56 [ALLVARLIG]    at java.net.Socket.<init>(Unknown Source)
    21:58:56 [ALLVARLIG]    at java.net.Socket.<init>(Unknown Source)
    21:58:56 [ALLVARLIG]    at com.mysql.jdbc.StandardSocketFactory.connect(Standard
    SocketFactory.java:254)
    21:58:56 [ALLVARLIG]    at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:295)
    21:58:56 [ALLVARLIG]    ... 25 more
    21:58:56 [INFO] npcx version 0.01 enabled.
    21:58:56 [INFO] Done (0,281s)! For help, type "help" or "?"
    >
    C:\Program Files (x86)\Java\jre6\lib\ext , mysql-connector-java-5.1.15-bin.jar
     
  3. Offline

    mixxit

    Please check you have configure mysql correctly and are able to access it using the details the server will use[/LEFT]
    ie try from command line
    mysql -u npcx -p
    password p4ssw0rd!
    show databases
    see if you can see the npcx database
     
  4. Offline

    swedish2011

    Code:
    22:09:32 [INFO] Starting minecraft server version Beta 1.3
    22:09:32 [INFO] Loading properties
    22:09:32 [INFO] Starting Minecraft server on *:27777
    22:09:32 [VARNING] **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
    22:09:32 [VARNING] The server will make no attempt to authenticate usernames. Be
    ware.
    22:09:32 [VARNING] While this makes the game possible to play without internet a
    ccess, it also opens up the ability for hackers to connect with any username the
    y choose.
    22:09:32 [VARNING] To change this, set "online-mode" to "true" in the server.set
    tings file.
    22:09:32 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-544-
    g6c6c30a-b556jnks (MC: 1.3)
    22:09:32 [INFO] Preparing level "world"
    22:09:32 [INFO] Preparing start region
    22:09:33 [INFO] npcx : load settings begun
    22:09:33 [INFO] jdbc:mysql://db4free.net:3306/kikotte
    22:09:33 [INFO] npcx : loadsettings() ended
    22:09:33 [INFO] npcx : registering monitored events
    22:09:33 [INFO] npcx : initialising database connection
    22:09:33 [INFO] npcx : loading spawngroups
    22:09:33 [INFO] npcx : + myfirstgroup
    22:09:33 [INFO] 1 spawngroups loaded
    22:09:33 [INFO] npcx version 0.01 enabled.
    22:09:33 [INFO] Done (0,091s)! For help, type "help" or "?"
    >
    good, he he what to do next?
     
  5. Offline

    Nate204

    I still get this error on start-up:

     
  6. Offline

    mixxit

    Sweet! Now you can use it :)

    Login to the game as an Op and create a new spawngroup at your location

    /npcx spawngroup create mynewgroup

    Now that spawngroup will become active where you are standing, but it wont have any npcs in it to choose from. It will give you the spawngroup ID it has just created, write this down for later

    Create an npc!

    /npcx npc create Notch

    This will add notch to the npc lists for you to add to any spawngroup, it will also give you the new NPCs ID.

    Now use the NPC ID to add Notch to the spawngroup you created, replace the two values SPAWNGROUPID and NPCID below with your correct numbers

    /npcx spawngroup add SPAWNGROUPID NPCID

    Notch will now persistently respawn at your spot

    If you want to add more npcs to that spawngroup, you can if you like! Just use spawngroup add with new NPCs

    If you want to let him chat you need the NPCID

    /npcx npc triggerword add NPCID default This is my default response!

    Or you can add any other word you like instead of default to have him respond to words players type to him

    /npcx npc triggerword add NPCID King The king of these lands is swedish!

    You dont have the mysql connector in your ext dir

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

    Nate204

    I swear I do. I just fixed it though (I do believe)
    I updated my test server to 556 from 493

    I get this now. =)
     
  8. Offline

    mixxit

    I'll get pathing and loottables in as soon as possible so i can work on faction lists then I think we are pretty much up to date for basic everquest npcs
     
  9. Offline

    swedish2011

    mixxit

    I can make a movie how to make a MySQL . :)
     
  10. Offline

    anon

    So the npc can atack you ye?
    Can u make a configuration so you can set armor and weapon to npcs? Or set npc status from neutral, to passive or agressive.

    Also, does having a npc spawned keep the chunk loaded as if there was a player there?
     
  11. Offline

    mixxit

    I'm not sure about armour or weapons, need to check that.

    The factions i talked about will allow players to have a npc to player neutral, passive aggressive stance based on their own standing to the npcs specified faction. If they kill a lot of that faction, the npc will hate them - again this is pulled from eqemu as to how their npcs were setup im just trying to recreate it here

    I use the npc lib which emulates client connections, i believe the server will keep that chunk loaded as if a player was in it

    Updates
    Added a work around for player death, grab the latest jar
     
  12. Offline

    Tassrus

    18:29:18 [INFO] Starting minecraft server version Beta 1.3
    18:29:18 [INFO] Loading properties
    18:29:18 [INFO] Starting Minecraft server on *:25565
    18:29:18 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-544-
    g6c6c30a-b556jnks (MC: 1.3)
    18:29:18 [INFO] Preparing level "world"
    18:29:18 [INFO] Preparing start region
    18:29:19 [INFO] npcx : config folder generation ended
    18:29:19 [INFO] npcx : properties file generation ended
    18:29:19 [INFO] npcx : initial setup ended
    18:29:19 [INFO] npcx : load settings begun
    18:29:19 [INFO] jdbc:mysql://localhost:3306/npcx
    18:29:19 [INFO] npcx : loadsettings() ended
    18:29:19 [INFO] ControllerBlock: 1.15 by Hell_Fire
    18:29:19 [INFO] ControllerBlock: Using SNOW_BLOCK (80) as ControllerBlock, loade
    d 0 disallowed types from config
    18:29:19 [INFO] ControllerBlock: Enabling full redstone check
    18:29:19 [INFO] ControllerBlock: Events registered
    18:29:19 [INFO] Loading map 'org.dynmap.flat.FlatMap'...
    18:29:19 [INFO] Loading map 'org.dynmap.kzedmap.KzedMap'...
    18:29:19 [INFO] Loading renderer 'org.dynmap.kzedmap.DefaultTileRenderer'...
    18:29:19 [INFO] Loading renderer 'org.dynmap.kzedmap.CaveTileRenderer'...
    18:29:19 [INFO] Activated world 'world' in Dynmap.
    18:29:19 [INFO] Loading map 'org.dynmap.flat.FlatMap'...
    18:29:19 [INFO] Loading map 'org.dynmap.kzedmap.KzedMap'...
    18:29:19 [INFO] Loading renderer 'org.dynmap.kzedmap.DefaultTileRenderer'...
    18:29:19 [INFO] Dynmap WebServer started on null:8123
    18:29:19 [INFO] Elevators version 1.3.1 is enabled!
    18:29:19 [INFO] LoginMessage 0.5_4 enabled
    18:29:19 [SEVERE] [mcMMO] Permissions isn't loaded, there are no restrictions.
    18:29:19 [INFO] mcMMO version 0.9.5 is enabled!
    18:29:19 [INFO] npcx : registering monitored events
    18:29:19 [INFO] npcx : initialising database connection
    18:29:19 [SEVERE] java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
    18:29:19 [SEVERE] at java.net.URLClassLoader$1.run(Unknown Source)
    18:29:19 [SEVERE] at java.security.AccessController.doPrivileged(Native Me
    thod)
    18:29:19 [SEVERE] at java.net.URLClassLoader.findClass(Unknown Source)
    18:29:19 [SEVERE] at org.bukkit.plugin.java.PluginClassLoader.findClass(Pl
    uginClassLoader.java:30)
    18:29:19 [SEVERE] at java.lang.ClassLoader.loadClass(Unknown Source)
    18:29:19 [SEVERE] at java.lang.ClassLoader.loadClass(Unknown Source)
    18:29:19 [SEVERE] at java.lang.Class.forName0(Native Method)
    18:29:19 [SEVERE] at java.lang.Class.forName(Unknown Source)
    18:29:19 [SEVERE] at net.gamerservices.npcx.npcx.onEnable(npcx.java:429)
    18:29:19 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlug
    in.java:118)
    18:29:19 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(
    JavaPluginLoader.java:451)
    18:29:19 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(Si
    mplePluginManager.java:217)
    18:29:19 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftSe
    rver.java:92)
    18:29:19 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftS
    erver.java:70)
    18:29:19 [SEVERE] at net.minecraft.server.MinecraftServer.e(MinecraftServe
    r.java:204)
    18:29:19 [SEVERE] at net.minecraft.server.MinecraftServer.a(MinecraftServe
    r.java:191)
    18:29:19 [SEVERE] at net.minecraft.server.MinecraftServer.d(MinecraftServe
    r.java:131)
    18:29:19 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:246)
    18:29:19 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:366)
    18:29:19 [INFO] npcx version 0.01 enabled.
    18:29:19 [INFO] OChestDump version 1.0 has been loaded.
    18:29:19 [INFO] SlowHealth 2.3 enabled! Rate: 1.0s | Amount: 1
    18:29:19 [INFO] | Max: 20
    18:29:19 [INFO] [SpawnMob] Version 1.8.1 enabled.
    18:29:19 [INFO] [SpawnMob] Using ops.txt
    18:29:19 [INFO] WorldEdit 4.2 enabled.
    18:29:19 [INFO] WorldEdit: No known permissions plugin detected. Using configura
    tion file for permissions.
    18:29:19 [INFO] [WormholeXTreme][v0.8][By Lologarithm & alron]Load Beginning.
    18:29:19 [WARNING] [WormholeXTreme]Permission Plugin not yet available. Defaulti
    ng to built-in permissions until Permissions is loaded.
    18:29:19 [WARNING] [WormholeXTreme]iConomy Plugin not yet available - there will
    be no iConomy integration until loaded.
    18:29:19 [WARNING] [WormholeXTreme]Unable to get sign for stargate: Nether and w
    ill be unable to change dial target.
    18:29:19 [INFO] [WormholeXTreme]25 Wormholes loaded from WormholeDB.
    18:29:19 [INFO] [WormholeXTreme][v0.8]Load Completed.
    18:29:19 [INFO] Done (0.177s)! For help, type "help" or "?"
    18:29:19 [INFO] ControllerBlock: Loaded v4 data - 62 ControllerBlocks loaded
    >



    I have mysql-connector-java-bin in the same folder as my CB folder. What did I break? This plugin is something I am extremely interested in :D
     
  13. Offline

    mixxit

    added pitch and yaw

    delete your npcx folder before updating

    for me i have mysql.jar from the zip in the following location on linux
    /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/ext

    on my windows machine i have it here
    C:\Program Files\Java\jre6\lib\ext

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

    Nafds

    Looks great. Gonna give it a try once minecraft comes back up :s
     
  15. Offline

    Tassrus

    I think i added the mysql in the right place and way. I feel really noobish.... :/
     
  16. Offline

    mixxit

    [SEVERE] com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Commu
    nications link failure


    You need mysql installed with all the user details provided in the guide with access to the database npcx
     
  17. Offline

    Tassrus

    I'm the only user on this computer :S >.<
     
  18. Offline

    TuRmoiLxx

    Does this also support multiverse? I'm looking into this, just not the MySQL par, judging that its my first time :/
     
  19. Offline

    Evan Melvin

    Npcs seem to noclip through blocks and walls when you attack them, trying to attack you.
     
  20. Offline

    mixxit

    few more fixes, please update

    more updates to fix targeting

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

    Nate204

    Ok, I did get this though..

    I got it while trying to add my NPC to a group.

     
  22. Offline

    mixxit

    woops, forgot to make strings safe - should be fixed with the latest update but i recommend you wipe your db
     
  23. Offline

    Nate204

    This is spamming like crazy after trying to add my new NPC to my New Group. When I tried to create a group, it gave an error but said it still worked. It said something about not sending a generated key? I wish I had it up, It's in my log but Ill test a few things first. I did delete my old DB before updating btw.

     
  24. Offline

    mixxit

    did you update?
     
  25. Offline

    Nate204

    I did when you told me you had fixed it. Did you want me to update once more?

    Ok, Here is what I get when I try and create a EDIT: Spawngroup.

    Made an EDIT!

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

    Nijikokun

    Look @ how iConomy / BigBrother does database libraries / creation so your users can install this more easily!

    Other than that pretty nice.
     
    Nafds and Nate204 like this.
  27. Offline

    Nate204

    Agreed. Once the DB things are taken care of, This should be amazing! My current NPC plugin allows for armor, but It doesn't allow for walking or fighting!

    Keep of the great work, both of you =)
     
  28. Offline

    averad

    Please consider updating the plugin to pull the mysql connector jar file from the root minecraft server location or the lib folder in the same spot. Other plugins share the same file.

    Thank you for the great plugin =)
     
  29. Offline

    TuRmoiLxx

    It looks sick and all, but this is confusing me by A LOT. I'm not getting how to do half this stuff.

    I copied the MySql thingy.jar into the same folder you did, I can't find the accoutn thing and what not. When I try to spawn an NPC it spams up my screen. This sounds great but I'm EXTREMELY CONFUSED.
     
  30. Offline

    averad

    Are the Plugin commands limited to Ops only?
     
  31. Offline

    TuRmoiLxx

    Don't even know what that is. I'm completely noob. I would LOVE you if you could help me. Maybe even donate some money via paypal, if you need it.

    Alright. I have to go, I'll probably talk to you tomorrow around this time, you think 2-3 hours before now tomorrow, you would be available?

    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