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

    that error is coming from:
    com.fullwall.resources.redecouverte.NPClib.NPCSpawner.RemoveBasicHumanNpc(NPCSpawner.java:101)

    which I do believe is citizens :) we both use the npclib but in different namespaces, try removing it to test

    apt-get search mysql :) and yes you do

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

    raistlinhunted

    Ubuntu 10 server:

    sudo apt-get install mysql-server mysql-client

    Ok thanks for the above reply. I will remove citizens to test.

    Here's another one for you:

    Spamming the server console.

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

    sambhur96

    Is there anyway I can use microsoft sql??
     
  5. Offline

    lapzoo

    YEAH Thanks for help! that was the best support I've ever received :D
     
  6. Offline

    byzantinian

    So if I wanted to make a Barbarian army of 50 soldiers, would I have to make 50 separate containers all with the NPCID of the Barbarian? :(
     
  7. Offline

    lapzoo

    After server-reload:
    [​IMG]

    [​IMG]

    hihi:
    [​IMG]
     
  8. Offline

    mixxit

    0.234
    * added ability for npcs to receive items and also fire off EVENT_RECEIVEXXX where XXX is the item number

    This allows you to make quests!

    Sample Quest
    /npcx npc create Notch
    /npcx spawngroup create NotchQuest
    /npcx spawngroup add 1 1
    /npcx npc triggerword add 1 default Fetch me some flowers and I'll tell you what the password for the chest is!
    /npcx npc triggerword add 1 EVENT_RECEIVE37 The password for my chest is hcton!

    Give Items to the NPC
    To give items to any npc talk to him and type 'give'
     
  9. Offline

    raistlinhunted

    That did the trick. No more flakiness. I did have to reset the npcx database to clear out possible corruption, but no big deal.

    Definitely a known conflict I would list it on the OP.

    Thanks again, awesome plugin!

    edit: for anyone else that has to wipe their npcx database for any reason, you will need to go into the npcx config and set update = true and version = 1 so the database will recreate and not throw that error at startup

    edit2: still getting this spamming the server console:
     
  10. Offline

    Emirin

    This mod seems cool, however I'm opposed to making a new database on my server for just this one mod. There any way you can make your db calls use the settings in the config?

     
  11. Offline

    Legolas75893

    17:33:15 [SEVERE] java.lang.IndexOutOfBoundsException: Index: 363, Size: 363
    17:33:15 [SEVERE] at java.util.ArrayList.rangeCheck(ArrayList.java:571)
    17:33:15 [SEVERE] at java.util.ArrayList.remove(ArrayList.java:412)
    17:33:15 [SEVERE] at net.minecraft.server.World.d(World.java:986)
    17:33:15 [SEVERE] at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:354)
    17:33:15 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    17:33:15 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    17:33:15 [SEVERE] Unexpected exception
    java.lang.IndexOutOfBoundsException: Index: 363, Size: 363
    at java.util.ArrayList.rangeCheck(ArrayList.java:571)
    at java.util.ArrayList.remove(ArrayList.java:412)
    at net.minecraft.server.World.d(World.java:986)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:354)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    >

    This wouldn't happen to be your plugin? If not, I know what it is. If it is, then have you fixed it or is this the first time someone's complained?
     
  12. Offline

    mixxit

    v240 was bad please get v241

    nice catch, thanks! will be in 242 in a minute

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

    joedan

    I tried this plugin on my server but I am getting the following glitches..

    1.) When you are killed by an NPC, you lose any items you were carrying an can no longer find them on the ground.
    2.) Whenever I spawn an NPC then disconnect from the server and reconnect, the NPC dissapears and doesn't appear to respawn?

    Anyone else getting this on a stock standard server?

    Running Bukkit 556 and quite a few plugins..

    LoginMessage 0.5_4 HealthPlugin v1.5 Permissions v2.5.4 Spawnmob 1.8.1 ecoCreature 0.0.3 iConomy 4.5.7 Tombstone 1.08 Lockette 1.3.2 Realshop v0.56 TravelPortals 1.4_3 stats v0.9 achievements v0.9 BigBrother 1.7.1 Announcer 0.5 Turnstile v1.3

    Edit: No errors on the console.

    Edit: Running NPCX 0.238 from the link at the top of the thread.
     
  14. Offline

    Agnate

    I'm getting this as well. Probably just a small fix needed.

    As for NPCs disappearing, are you using Spawngroups, or just spawning one on the spot? If you are just spawning them, they are intended to disappear when you log out (as they're temporary), I believe. Try spawngroups if you want them to be permanent.


    @mixxit
    Amazing plugin! I'm definitely loving this!

    However, is there no way to remove an NPC from a spawngroup, or delete an NPC from the listing in general (without diving into the db)?
     
  15. Offline

    joedan

    I followed the instructions in Step 6 of the README. So definately created a spawngroup.

    Step 6
    ======
    Begin creating your first spawn group at your location with

    Code:
    /npcx spawngroup create myfirstgroup
    Now create an npc called Guard
    Code:
    /npcx npc create Guard
    Now add guard's id to your spawn group number
    Code:
    /npcx spawngroup add 1 1

    Guard should now spawn permanently at the spawngroups location.


    After I disconnect and reconnect, the "Guard" is gone.

    If I restart the server and log back in, the "Guard" comes back.


    No errors on the console whatsoever, perhaps it's conflicting with my other plugins. not sure at this stage.
     
  16. Offline

    raistlinhunted

    My details are above.
     
  17. Offline

    mixxit

    are you travelling a long distance?

    try doing this in the spawn point

    your entire server log please :)

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

    joedan


    Not sure what you mean by that? I created the spawngroup, moved about 3-4 blocks away, created the GUARD and assigned it to a spawngroup. Once the Guard appeared I move away another few blocks, disconnect, reconnect then the Guard is gone.

    Hope that answers your question?
     
  19. Offline

    mixxit

    The last thing you said does, but then again im not sure how long it takes for a chunk to unload
     
  20. Offline

    joedan

    Thank you, it must be a chunk thing then, not too worried about it now.

    Just wanted to say that I love your plugin, keep up the great work.
     
  21. Offline

    gilliganxl

    Got it to connect to database but cant get it to enable correctly?

    2011-03-29 22:06:32 [INFO] npcx : load settings (0.243) begun
    2011-03-29 22:06:32 [INFO] jdbc:mysql://localhost:3306/npcx
    2011-03-29 22:06:32 [INFO] npcx : initialising database connection
    2011-03-29 22:06:33 [INFO] npcx : loadsettings() ended
    2011-03-29 22:06:33 [INFO] npcx : registering monitored events
    2011-03-29 22:06:33 [INFO] npcx : Checking for DB Updates from DBVersion:1.01
    2011-03-29 22:06:33 [INFO] npcx : loading Merchants
    2011-03-29 22:06:33 [INFO] npcx : Loaded 0 Merchant with (0) entries.
    2011-03-29 22:06:33 [INFO] npcx : loading factions
    2011-03-29 22:06:33 [INFO] npcx : Loaded 0 factions.
    2011-03-29 22:06:33 [INFO] npcx : loading pathgroups
    2011-03-29 22:06:33 [INFO] npcx : Loaded 0 pathgroup.
    2011-03-29 22:06:33 [INFO] npcx : loading loottables
    2011-03-29 22:06:33 [INFO] npcx : Loaded 0 loottables.
    2011-03-29 22:06:33 [INFO] npcx : loading spawngroups
    2011-03-29 22:06:33 [INFO] 0 spawngroups loaded
    2011-03-29 22:06:33 [INFO] npcx version 0.243 enabled.
    2011-03-29 22:06:33 [SEVERE] Could not pass event PLUGIN_ENABLE to npcx
    java.lang.NoClassDefFoundError: com/nijiko/coelho/iConomy/iConomy
    at net.gamerservices.npcx.PluginListener.onPluginEnabled(PluginListener.
    java:25)
    at org.bukkit.plugin.java.JavaPluginLoader$32.execute(JavaPluginLoader.j
    ava:289)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:225)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:424)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:187)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:79)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:60)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:187)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:174)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:120)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:227)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.ClassNotFoundException: com.nijiko.coelho.iConomy.iConomy
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:30)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 13 more
    2011-03-29 22:06:33 [INFO] ScrapBukkit version 0.2.1 is enabled!
    2011-03-29 22:06:33 [SEVERE] Could not pass event PLUGIN_ENABLE to npcx
    java.lang.NoClassDefFoundError: com/nijiko/coelho/iConomy/iConomy
    at net.gamerservices.npcx.PluginListener.onPluginEnabled(PluginListener.
    java:25)
    at org.bukkit.plugin.java.JavaPluginLoader$32.execute(JavaPluginLoader.j
    ava:289)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:225)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:424)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:187)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:79)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:60)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:187)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:174)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:120)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:227)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    2011-03-29 22:06:33 [INFO] Snowballz v1.5 has been enabled with the following op
    tions:
    2011-03-29 22:06:33 [INFO] Snow damage: 1
    2011-03-29 22:06:33 [INFO] Snow range: 10
    2011-03-29 22:06:33 [INFO] Snow douses fire: true
    2011-03-29 22:06:33 [INFO] Snow makes ice: true
    2011-03-29 22:06:33 [SEVERE] Could not pass event PLUGIN_ENABLE to npcx
    java.lang.NoClassDefFoundError: com/nijiko/coelho/iConomy/iConomy
    at net.gamerservices.npcx.PluginListener.onPluginEnabled(PluginListener.
    java:25)
    at org.bukkit.plugin.java.JavaPluginLoader$32.execute(JavaPluginLoader.j
    ava:289)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:225)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:424)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:187)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:79)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:60)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:187)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:174)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:120)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:227)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    2011-03-29 22:06:33 [INFO] [Stats-0.9] Using Nijis Permissions for permissions
    2011-03-29 22:06:33 [INFO] [Stats-0.9] Plugin Enabled
    2011-03-29 22:06:33 [SEVERE] Could not pass event PLUGIN_ENABLE to npcx
    java.lang.NoClassDefFoundError: com/nijiko/coelho/iConomy/iConomy
    at net.gamerservices.npcx.PluginListener.onPluginEnabled(PluginListener.
    java:25)
    at org.bukkit.plugin.java.JavaPluginLoader$32.execute(JavaPluginLoader.j
    ava:289)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:225)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:424)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:187)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:79)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:60)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:187)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:174)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:120)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:227)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    2011-03-29 22:06:33 [INFO] [Towny] Database: [Load] flatfile [Save] flatfile
    2011-03-29 22:06:33 [INFO] [Towny] Version: 2.0.34 - Mod Enabled
    2011-03-29 22:06:33 [SEVERE] Could not pass event PLUGIN_ENABLE to npcx
    java.lang.NoClassDefFoundError: com/nijiko/coelho/iConomy/iConomy
    at net.gamerservices.npcx.PluginListener.onPluginEnabled(PluginListener.
    java:25)
    at org.bukkit.plugin.java.JavaPluginLoader$32.execute(JavaPluginLoader.j
    ava:289)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:225)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:424)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:187)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:79)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:60)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:187)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:174)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:120)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:227)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    2011-03-29 22:06:33 [INFO] vPlayersOnline version 1.5 is enabled!
     
  22. Offline

    raistlinhunted

    I, too, am having this issue. After server restart, all my npcs load and operate correctly (currently I have a test raid castle with about 15 npcs set to be aggressive to nearby players) and players can raid the castle more than once. After a while, all my npcs GO INVISIBLE but are still there attacking when you get near. Restarting the server brings npcs back for a while.

    Mixxit - I will PM you my entire log, but I see no errors being reported (busy log, see my plugin list above).

     
    Spazmic likes this.
  23. Offline

    liveoles

    Could you please make a SQLite Version =]?
     
  24. Offline

    Kane

    @mixxit

    Very nice mod you have here. I was wondering what the overhead of such a mod would be on a large server? Would say adding guards to my pvp world entrances be a lot of overhead or would it be a fraction of the cpu costs?

    Be really neat to slowly add these to my world if it is stable. I always feared trying one of these plugins for that it was not that stable.

    I went onto your server I saw a few NPC's with skins. Are they using real names of players and getting skin data or did you find a way to add skins to npc's?


    EDIT: Also RB is 602 now :)
     
  25. Offline

    mache

    Hi, I have a problem, when I walk too far away from the NPC's, or if I disconnects, the NPC's disappears. And the only way to get them back is to restart the entire server. (If you wonder I have the mod successfuly connected to mySQL.)

    Any idea of what the problem might be?
     
  26. Offline

    Slugslug

    Can this be used with permisions ? I cnt find any info on that.
    I want Mods to do the spawn groups etc,
     
  27. Offline

    mexander

    Please make support for SQLite or something else because MySQL won't work for me.
     
  28. Offline

    mixxit

    Have you tried the latest version? I haven't had time to fully test it but npcs should be moving on chunkload and unload now

    Sorry no sqlite support
    I'm not using permissions for this and are eventually removing iconomy - it will be internal access lists and eco to make the mod more compatible and less dependent on other mods

    Since it's very early and badly coded and i'm the only one working on it i'd say very heavy :)

    Sorry no sqlite version just mysql


    Yeah skins are pulled from player names, no way to change this at the moment that I know of unless maybe we do client hacks which is not good :) This plugin needs to support any vanilla client

    I'm aware of the new RB and will be working on it today sometime :)

    this happens when a chunk is unloaded because players have left it - the npcs now move when a chunk unloads and move again when it loads - i tested this randomly on npcs I had 5000 blocks away without issues but sadly I've not had chance to test this

    Did you all get this with the latest version? 0.244

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

    riuthamus

    Still would like to ask for support for BOSEcon, if thats in the works
     
  30. Offline

    mixxit

    v0.3 - Craftbukkit 602 RB update

    i need to build the basic in game economy and permissions system

    then i can look at adding bridging for other systems using property settings like bosecon=true

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

    Shay Williams

    Hey, I got npcx set up and working great, but I'm wondering... I'm resetting my world today, and I want to know if I need to flush out the MySQL tables or will it be ok?

    Thanks.

    EDIT: How would I delete npcx.db on the MySQL prompt? ._.

    EDIT2: <3 IRC, thanks.
     

Share This Page