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

    Qugr

    Well.. i had this idea...

    Could you make Dogs, Wolfes.. squids.. and all other mobs somehow programmable too..

    I want 3 skeletons to walk back and foward at a tomb, and an npc with what i can talk in the tomb... is it possible?
     
  3. Offline

    kenjamen

    My god this is epic!
    Testing on my new server today! Hope its working(better than minecraft) lol!
     
  4. Offline

    Nachocuban


    Turns out I never restarted my computer after installing MySQL, that fixed it.
     
  5. Offline

    mixxit

    I developed this on windows 7 and run it on linux if that's any help
     
  6. Offline

    ledhead900

    A. Is this /npcx for all commands or does it use GM nodes
    B. Can we get an event for ALLNPCATTACKPLAYER
    C. When do we get pathing!
    D. Can we ability maybe to call NPC's to change models so NPC can be a skeleton or spider ?
     
  7. Offline

    mixxit

    A) All of it is in /npcx and isOp() only
    B) Ok - is that npcs in a range around a player?
    C) There is a sort of pathing in atm, use /npcx pathgroup create, add spots to it and assign it to an npc
    D) They get their skins from their npc name, which looks up a player of that name - you can equip armour also but nto change a skin to a skeleton unless you own that player name
     
  8. Offline

    Nathaniel

    Can i get some help, please :)?
    Everything works out fine until i add an NPC to a group and it tries to spawn them.
    Here's the error.
    Code:
    09:46:38 [SEVERE] Exception in thread "Timer-0"
    09:46:38 [SEVERE] java.lang.NoSuchMethodError: redecouverte.npcspawner.NpcSpawne
    r.SpawnBasicHumanNpc(Ljava/lang/String;Ljava/lang/String;Lorg/bukkit/World;DDDDD
    )Lredecouverte/npcspawner/BasicHumanNpc;
    09:46:38 [SEVERE]       at net.gamerservices.npcx.npcx.think(npcx.java:320)
    09:46:38 [SEVERE]       at net.gamerservices.npcx.Tick.run(Tick.java:16)
    09:46:38 [SEVERE]       at java.util.TimerThread.mainLoop(Unknown Source)
    09:46:38 [SEVERE]       at java.util.TimerThread.run(Unknown Source)
    >
     
  9. Offline

    Nate204

    Is your server map named "World"?
     
  10. Offline

    Nathaniel

    No, but i went into my config and changed it to what my worlds name is.
     
  11. Offline

    mrgreaper

    we created our first npc

    created the group
    created the npc
    added the npc to the group
    and he apeared
    we right click him and he speaks in riddles
    "your name is right but your player is wrong"

    ummmm ...help?
     
  12. Offline

    Spazmic

    Having invisible npcs glitch :p
     
  13. Offline

    ledhead900


    Um ok coz I wanted to give my staff the command to use this but seems its OP only
    its giving a null command error guess u better give this plugn GM nodes :p.


    Also for the ALL attack yea make it so if player is within range
    to attack on site, this would allow me to say set if people talk to the npc faction and bag them out or bag staff out
    ect. I could have that npc group gang up and attack them like guards.

    I mean If you add it then certian groups could be setup to like bouncers and just pummple ppl who abuse others when talking to them. Also do you have plans for a rep system with npcs groups.

    Ss players can lose rep until the npc group are hostile towards them always.
     
  14. Offline

    mixxit

    0.158 - npcs will now path back when targets run too far away
     
    Boon Pek likes this.
  15. Offline

    Nate204

    Double check it quick. Possibly delete your NPCx folder, and clear your MySQL DB folder "NPCX" of all its content. Try that. I could have sworn I had seen that error before on my server.
     
  16. Offline

    mixxit

    0.160 - npcs will return back to spawnpoint is a player quits while they are chasing
     
  17. Offline

    ledhead900

    Can u quickly add permissions support for GM, I need to give this to non OP's.
     
  18. Offline

    patate

    First, i want to thank you for this awesome mod.

    Then, i have few questions (and i'm sorry if there was an answer... i searched...)

    - I have a permission problem : The no-admin people can't talk to npcs edit: don't know how, but fixed ^^

    - Is there a way to choose the shop's prices (with iconomy? config file?).
     
  19. Offline

    mixxit

    0.162 - fixed persistent clothing
     
  20. Offline

    patate

    i forgot one question :

    i changed some values in the mysql table (armor, waepon)

    and some of my npc are like vegetables... you can hit them, they don't fight, they talk, but they don't attack ennemy...


    strange...
     
  21. Offline

    mixxit

    try 0.162

    0.163 - added new triggerword 'ATTACK' fires when npc is first attacked - added new fireable events NPCSUMMONPLAYER and NPCSUMMONZOMBIE for use in chat scripts

    /npcx npc triggerword add 1 attack OMG YOU ATTACKED ME!

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

    n30nex

    Is npc pathing supposed to look this funny? They never turn the direction they are facing, he kinda moonwalks.

     
  23. Offline

    mixxit

    i think because he moves 0.5 you need to try to guide him down a straight line, a good example of this is the Guard i have in a tunnel near the banker on my server

    use the blocks as a guide when doing your path entries

    eventually all this will have nicer path finding though
     
  24. Offline

    mrgreaper

    still have that issue i posted about page 10
     
  25. Offline

    ledhead900

    Banned on IRC for doing nothing wrong just justified my reason for request you just FAIL to see a reason why I don't need to give out more Op's or setup some silly kiddies web interface.

    I asked for 2 things that I would bet my ass your going to get 30 other users asking the same thing as me instead of trying to work out a solution with me u just ban me is this how your going to treat the other 30+ that will ask the same questions as me and before you reply with something to cover your ass with I request those features for the benifit of users of other servers not just mine.

    I'm pretty sure people are going to be unhappy to find out that this is OP only and does not support permissions at all and that you refuse to be civil about discussion towards finding a better way to impliment a npc deletion system that does not involve manually removing a accidental syntax error or npc in a Mysql database tool when you stuff up.

    I tried to be civil, you give me no reasonable alternative response other then "phpmyadmin" or make them "Op"

    Plenty of other plugins have Mysql support and support undoing mistakes with out any hard consequences NPCtrader does most of the other NPC plugins do as well.

    I would not be requesting it if it would not help others as well, infact it would have netted in more support for your plugin due to many ppl are not willing to use plugins that only work for OP's.

    I don't know why you have to be so arogant!

    In light of all of this this plugin will not suit my needs due to lack of user friendlyness I cannot continue to use this while these features are lacking.




    Edit:

    It wasn't just about that I also said about 10 lines up that a cool idea would be get dynamic market for the shops a thought for future versions, I was not argueing about the other features but you sure made it hard to discuss them.
     
  26. Offline

    mixxit

    err what?

    (for this wondering, he was banned for bringing up the same question again and again in some weird logic loop)

    i told him he just needed to wait and that he could use mysql to make his changes for now and he could give mysql admin access to his other users if they needed to work on it without OP

    As for dynamic markets, the shop is dynamic but needs fleshing out some more

    I am just working on other things so just wait instead of bothering me with the same question over and over and then coming here to cry about it...
     
  27. I'm getting errors everywhere!
    Code:
    21:43:05 [WARNING] npcx: error: null[Ljava.lang.StackTraceElement;@1eb494e
    21:43:05 [SEVERE] java.lang.NullPointerException
    21:43:05 [SEVERE]       at net.gamerservices.npcx.npcx.onCommand(npcx.java:1163)
    
    21:43:05 [SEVERE]       at org.bukkit.command.PluginCommand.execute(PluginComman
    d.java:35)
    21:43:05 [SEVERE]       at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCo
    mmandMap.java:80)
    21:43:05 [SEVERE]       at org.bukkit.craftbukkit.CraftServer.dispatchCommand(Cr
    aftServer.java:229)
    21:43:05 [SEVERE]       at net.minecraft.server.NetServerHandler.c(NetServerHand
    ler.java:645)
    21:43:05 [SEVERE]       at net.minecraft.server.NetServerHandler.chat(NetServerH
    andler.java:608)
    21:43:05 [SEVERE]       at net.minecraft.server.NetServerHandler.a(NetServerHand
    ler.java:602)
    21:43:05 [SEVERE]       at net.minecraft.server.Packet3Chat.a(SourceFile:24)
    21:43:05 [SEVERE]       at net.minecraft.server.NetworkManager.a(SourceFile:230)
    
    21:43:05 [SEVERE]       at net.minecraft.server.NetServerHandler.a(NetServerHand
    ler.java:76)
    21:43:05 [SEVERE]       at net.minecraft.server.NetworkListenThread.a(SourceFile
    :100)
    21:43:05 [SEVERE]       at net.minecraft.server.MinecraftServer.h(MinecraftServe
    r.java:357)
    21:43:05 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:272)
    21:43:05 [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:366)
    21:43:44 [WARNING] npcx: error: null[Ljava.lang.StackTraceElement;@e22632
    21:43:44 [SEVERE] java.lang.NullPointerException
    21:43:44 [SEVERE]       at net.gamerservices.npcx.npcx.onCommand(npcx.java:2175)
    
    21:43:44 [SEVERE]       at org.bukkit.command.PluginCommand.execute(PluginComman
    d.java:35)
    21:43:44 [SEVERE]       at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCo
    mmandMap.java:80)
    21:43:44 [SEVERE]       at org.bukkit.craftbukkit.CraftServer.dispatchCommand(Cr
    aftServer.java:229)
    21:43:44 [SEVERE]       at net.minecraft.server.NetServerHandler.c(NetServerHand
    ler.java:645)
    21:43:44 [SEVERE]       at net.minecraft.server.NetServerHandler.chat(NetServerH
    andler.java:608)
    21:43:44 [SEVERE]       at net.minecraft.server.NetServerHandler.a(NetServerHand
    ler.java:602)
    21:43:44 [SEVERE]       at net.minecraft.server.Packet3Chat.a(SourceFile:24)
    21:43:44 [SEVERE]       at net.minecraft.server.NetworkManager.a(SourceFile:230)
    
    21:43:44 [SEVERE]       at net.minecraft.server.NetServerHandler.a(NetServerHand
    ler.java:76)
    21:43:44 [SEVERE]       at net.minecraft.server.NetworkListenThread.a(SourceFile
    :100)
    21:43:44 [SEVERE]       at net.minecraft.server.MinecraftServer.h(MinecraftServe
    r.java:357)
    21:43:44 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:272)
    21:43:44 [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:366)
    EDIT:
    I get this error at the beginning:
    "21:46:21 [INFO] npcx : loadsettings() ended
    21:46:21 [INFO] npcx : initialising database connection
    21:46:23 [INFO] *****************************************
    21:46:23 [INFO] npcx : ERROR - Error during MySQL login
    21:46:23 [INFO] *****************************************
    21:46:23 [SEVERE] java.sql.SQLException: invalid database address: jdbc:mysql://
    localhost:16001/npcx
    21:46:23 [SEVERE] at org.sqlite.JDBC.createConnection(JDBC.java:74)
    21:46:23 [SEVERE] at org.sqlite.JDBC.connect(JDBC.java:64)
    21:46:23 [SEVERE] at java.sql.DriverManager.getConnection(Unknown Source)
    21:46:23 [SEVERE] at java.sql.DriverManager.getConnection(Unknown Source)
    21:46:23 [SEVERE] at net.gamerservices.npcx.npcx.onEnable(npcx.java:660)
    21:46:23 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlug
    in.java:118)
    21:46:23 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(
    JavaPluginLoader.java:451)
    21:46:23 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(Si
    mplePluginManager.java:217)
    21:46:23 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftSe
    rver.java:92)
    21:46:23 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftS
    erver.java:70)
    21:46:23 [SEVERE] at net.minecraft.server.MinecraftServer.e(MinecraftServe
    r.java:204)
    21:46:23 [SEVERE] at net.minecraft.server.MinecraftServer.a(MinecraftServe
    r.java:191)
    21:46:23 [SEVERE] at net.minecraft.server.MinecraftServer.d(MinecraftServe
    r.java:131)
    21:46:23 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:246)
    21:46:23 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:366)"
     
  28. Offline

    mixxit

    21:46:23 [INFO] *****************************************
    21:46:23 [INFO] npcx : ERROR - Error during MySQL login
    21:46:23 [INFO] *****************************************

    Its not logging into mysql...
     
  29. Offline

    dak393

    @AtillaBosma What he said ^ Did you set up the MySQL table correctly? What os are you using?
    @mixxit great work on the error detection in your plugin ^^ very helpful with fixing stuff like this
     
  30. Offline

    mixxit

    ^^ or lack of try's!
     
  31. Offline

    dak393

    ? Was just saying that your plain text out put of what the error is (highlighted in *'s too) is very helpful compared to other plugins that just generate severe errors and null pointer exceptions without the plugin clearly telling you what's wrong.
     

Share This Page