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

    how to do it with a robot?
    it would not come up.

    Code:
    /npcx npc create Guard
    Code:
    14:46:11 [INFO] Starting minecraft server version Beta 1.3
    14:46:11 [INFO] Loading properties
    14:46:11 [INFO] Starting Minecraft server on *:27777
    14:46:11 [VARNING] **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
    14:46:11 [VARNING] The server will make no attempt to authenticate usernames. Be
    ware.
    14:46:11 [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.
    14:46:11 [VARNING] To change this, set "online-mode" to "true" in the server.set
    tings file.
    14:46:11 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-544-
    g6c6c30a-b556jnks (MC: 1.3)
    14:46:11 [INFO] Preparing level "world"
    14:46:11 [INFO] Preparing start region
    14:46:12 [INFO] npcx : load settings begun
    14:46:12 [INFO] jdbc:mysql://db4free.net:3306/kikotte
    14:46:12 [INFO] npcx : loadsettings() ended
    14:46:12 [INFO] npcx : initialising database connection
    14:46:12 [INFO] npcx : registering monitored events
    14:46:12 [INFO] npcx : loading factions
    14:46:12 [INFO] npcx : Loaded 0 factions.
    14:46:12 [INFO] npcx : loading pathgroups
    14:46:12 [INFO] npcx : Loaded 0 pathgroup.
    14:46:12 [INFO] npcx : loading loottables
    14:46:12 [INFO] npcx : Loaded 0 loottables.
    14:46:12 [INFO] npcx : loading spawngroups
    14:46:12 [INFO] 0 spawngroups loaded
    14:46:12 [INFO] npcx version 0.143 enabled.
    14:46:12 [INFO] Done (0,091s)! For help, type "help" or "?"
    >
    :S CraftBukkit: 556

    did you download this?

    YOU MUST DO THIS
    Extract
    the mysql connect jar file from the following MySQL Connector zip): http://mysql.eukhost.com/Downloads/Connector-J/mysql-connector-java-5.1.6.tar.gz

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

    _andy

    Great plugin so far, but is there a way to change the selling/buying price of NPC shops?
     
  4. Offline

    Novemberman

    im having same problem posted this 2 pages back and never got a real answer........
     
  5. Offline

    swedish2011

    mixxit@

    I can help you with something if you want it?

    can make a bat.exe that allows mysql-connector-java-5.1.6.jar
    buy it in C:\ProgramFiles(x86)\Java\jre6\lib\ext

    :)

    have you mysql databas ?

    johnathon ibbotson@

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

    Delodien

    Think a clean install has fixed the multiple spawning, but whenever (I think) I attack an NPC I get this over and over until it dies:
    Code:
    2011-03-24 14:10:38 [SEVERE] Could not pass event ENTITY_DAMAGED to namespace
    java.lang.NullPointerException
        at com.asdaarg.bukkit.namespace.Namespace.evtNoPvp(Namespace.java:1083)
        at com.asdaarg.bukkit.namespace.NSEntityListener.onEntityDamage(NSEntityListener.java:32)
        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.d(EntityHuman.java:441)
        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)
     
  7. Offline

    Evan Melvin

  8. Offline

    Novemberman

    yes i do ..... but ya im giving up on this plugin when he makes the mysql part more automatic i will come back to it
     
  9. Offline

    dak393

  10. Offline

    Evan Melvin

    Any more work going to be done on pathing and targeting? Having all these features is great, but with npcs noclipping everywhere, it doesn't work out too well.
     
  11. Offline

    swedish2011

    what are your MySQL Connector?

    CB ?
     
  12. Offline

    Nate204

    Are the Commands for this plugin updated? j/w =)
     
  13. Offline

    Evan Melvin

    It was a problem with the plugin not updating the mysql tables. Updating the db fixed it.
     
  14. Offline

    Spazmic

    The commands are just not working. Running CB 556

    I don't understand because the plugin enables itself and there's no error at all. But in-game, nothing happens when I do /npcx
     
  15. Offline

    mixxit

    you need to be an op
     
  16. Offline

    Spazmic

    OH sorry I didnt see it doesnt support permissions yet :p lmao so sorry
     
  17. Offline

    mixxit

    Dunno if it ever will tbh there's so many permissions mods out there it just splits everyone into one mod or the other
     
  18. Everything is running smoth now :) Great plugin..
    I know your working realy fast but i have 1 question..
    Can i slow down the walk speed of my NPCs? My town guard with pathing moves at the speed of sound :)
     
  19. Figured out why it didn't work for me now. Everything was done right on my part, but my provider couldn't put the mysql connector into the base java installation, because it would adversely affect every server they hosted.
     
  20. Offline

    mixxit

    Im going to start addressing the pathing and aggro combat/distances very soon - i just wanted to get as many systems in as possible so people could start populating content

    Create your paths now and eventually they will walk at a decent speed
     
  21. Offline

    Evan Melvin

    How well is pathing supposed to be working? Sometimes the npcs will path correctly, sometimes they'll just stand there and not do anything, and sometimes their models will contort, with their heads in their chests and the like.
     
  22. Offline

    mixxit

    Install MySQL Server on Windows
    Install MySQL WorkBench to create databases and new accounts

    Login to MySQL Workbench as the root user you created when installing MySQL Server
    create a new database called 'npcx'
    create a new user called npcx with the password 'p4ssw0rd!' - assign this user ALL privileges to the npcx database

    Add npcx.jar to your bukkit/plugins folder
    Create a bukkit/lib folder if you dont have it
    Extract the mysql connect jar file from the following zip file): http://mysql.eukhost.com/Downloads/Connector-J/mysql-connector-java-5.1.6.tar.gz
    Copy the JAR file (mysql-connector-java-5.1.6-bin.jar) from inside the zip into your bukkit/lib folder.

    Launch bukkit

    i think maybe the pitch or yaw is off

    there is also a longer delay when they reach the end of their path route - i want to make it so they will path from 1-2-3 then 3-2-1 with a delay at each point that you will set when creating the pathgroup entry

    then rework the loop so he walks just a tiny amount slowly throughout that route, atm he is warping from one spot to the other when he should be warping gradually to his destination

    and definately not 1-2-3-1 like he is doing atm

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

    Evan Melvin

    My npcs don't seem to even complete the route; they'll get to the 3rd or 4th waypoint and then just stop.
     
  24. Offline

    mixxit

    0.145
    - I tinkered around with pathgroups and npc attack distances/chasing
     
  25. Great. Keep up the good work.

    could you also advise where the shop npcs cash etc are stored? Mine keep running out of money.
     
  26. Offline

    mixxit

    the npc has a dynamic cash amount it will get from selling stuff to players
    they always start with 100 i think

    0.146
    - Npcs should also try to attack while pathing

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

    relik0fages

    I have a question on the MySql creation, im trying to find how to create a new database. But there is no option for that. Any help would be truly appreciative.
    I have both the server and workbench installed from the links posted.
    -I worked with MySql a few years ago, and hated it.
     
  28. Offline

    mixxit

    There we go, tidied up the front post :D

    Create a new database in MySQL Workbench
    In work bench create a new connection on the left under SQL Development using your user/pass (probably root) then on the top left click Add Schema, just name 'npcx' then press Apply

    Create a new user in MySQL Workbench
    Now come out of SQL Development and go to the right of workbench and into Server Administration, connect again using the details above and click Users and Privileges on the left - now click Add Account in the bottom left and fill in the details : npcx for the username, p4ssw0rd! for the password and then press Apply

    Now goto the schema privileges tab above select npcx on the user list on the left and click Add Entry click Schemas matching pattern or name and select npcx, press OK

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

    Spazmic

    Why do you need to create a ''npcx'' user for the database if you can use ''root''? It changes something?
     
  30. Offline

    mixxit

    you dont ever want to have it login as root
     
  31. Offline

    relik0fages

    i did exactly as it you posted, i keep getting this error

    21:15:48 [INFO] npcx : initialising database connection
    21:15:48 [INFO] *****************************************
    21:15:48 [INFO] npcx : ERROR - Error during MySQL login
    21:15:48 [INFO] *****************************************
    21:15:48 [INFO] [(Plugin)] Successfully linked with iConomy.

    it created the npcx folder,
    here is the npcx.properties file:

    #Default generated settings, please ensure mysqld matches
    #Thu Mar 24 21:02:06 EDT 2011
    db-pass=p4ssw0rd!(originally was p4ssw0rd/!)
    db-host=localhost
    world=World of Gene Asses(originally was world)
    db-port=3306
    db-user=npcx
    db-name=npcx
    update=true
    -----------------------------
    i also have all schema privileges enabled including GRANT OPTION enable and saved.
     

Share This Page