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

    sintri

    Pathgroup seem a bit buggy, sorta shuffles along, same with npc movement/attacks. Would like spawngroups to contain min/max total spawned instead of having to create a seperate spawnsgroup. Bows don't really work but I suppose you already know it. Editing from in-game seems a little buggy, sometimes edits won't go through. Other than that it's a very nice start.

    Also damage actually determined by the weapon used or through the database value?
     
  3. Offline

    Taylor Grimes

    I was looking over your source code and could not find any delete for an npc. I was wondering if this was hard to do so you left it out. I love the mod by the way and think it will go far. I can help you out with programming if you would like.
     
  4. Offline

    pogi1100

    Okay I have done everything under the Install Instructions, but I am still getting an error. I have been successful at creating the database and getting the mysql connector. Could anyone assist me? Thanks in advance.
    Code:
    19:09:38 [INFO] npcx : load settings (0.415) begun
    19:09:38 [INFO] jdbc:mysql://localhost:3306/npcx
    19:09:38 [SEVERE] null loading npcx v0.415 (Is it up to date?)
    java.lang.NullPointerException
            at java.util.Hashtable.put(Unknown Source)
            at java.util.Properties.setProperty(Unknown Source)
            at net.gamerservices.npcx.myUniverse.loadSetup(myUniverse.java:226)
            at net.gamerservices.npcx.npcx.onEnable(npcx.java:677)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:514)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:216)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:94)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:72)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
     
  5. Offline

    Zimmies

    i dont like beeing ignored....especially when i like a plugin and think the programmer cares....
     
  6. Offline

    skillinazn

    Sorry, but I'm kind of confused of what you mean by this. I don't think I have ever set up a quest before, it's just triggerwords used around, right? I believe what you mean by that is when someone types "give" with an item in their hand the npc would spawn the monster?
    Ex. /npcx npc triggerword add 1 EVENT_RECEIVE1 NPCSUMMONWOLF
    In that event would the npc summon the wolf when it receives a stone?
     
  7. Offline

    kahlilnc

    You should make the text more colorful it is dull and I lose my place while reading these command stuff.
     
  8. Offline

    MationMac

    It simply does not work for me.
    Code:
    /npcx npc create test
    An error occured.
    Im running latest reccomended CB, and newest version.
    What might the problem be?
     
  9. Offline

    Luong

    I setup the plugin perfectly without any issue on my local machine connecting to a remote host. However, when I transfer the file from my location machine to my remote host, I am constantly getting the error

    Code:
    2011-04-02 04:09:47 [INFO] npcx : load settings (0.415) begun
    
    2011-04-02 04:09:47 [INFO] jdbc:mysql:// (REMOVED)
    
    2011-04-02 04:09:47 [INFO] npcx : initialising database connection
    
    2011-04-02 04:09:47 [INFO] *****************************************
    
    2011-04-02 04:09:47 [INFO] npcx : ERROR - Cannot find MySQL Library!
    
    2011-04-02 04:09:47 [INFO] This error typically means you forgot *
    
    2011-04-02 04:09:47 [INFO] to put the exact named mysql connector
    
    2011-04-02 04:09:47 [INFO] into your bukkit/lib folder (5.1.6) *
    
    2011-04-02 04:09:47 [INFO] * You can get this from the README *
    
    2011-04-02 04:09:47 [INFO] *****************************************
    
    2011-04-02 04:09:47 [INFO] **********************************************
    
    2011-04-02 04:09:47 [INFO] * Load settings failed to load your DB setup *
    
    2011-04-02 04:09:47 [INFO] * openDB() *
    
    2011-04-02 04:09:47 [INFO] **********************************************
    I did a little test and notice I can run this perfectly fine on my local machine even without the jar file which makes me think it runs off the api install on the local machine if MySQL exist. So this mislead me to think, where exactly should the 'bukkit/lib' folder should be located on the server? Is it the root directory, the plugin directory, or the npcx directory? The instruction was unclear about this.

    In any case, to cover my tracks, I created and place the jar file in all 3 locations:
    ~\bukkit\lib\mysql-connector-java-5.1.6-bin.jar
    ~\plugins\bukkit\lib\mysql-connector-java-5.1.6-bin.jar
    ~\plugins\npcx\bukkit\lib\mysql-connector-java-5.1.6-bin.jar

    I wonder if it has anything to do with the os filepath format
    Windows filepath format: ~\...\Minecraft\Server\plugins\npcx
    Linux filepath format: ~/.../Minecraft/Server/plugins/npcx
     
  10. Offline

    djrazr

    Its a DB thing.. check the log
     
  11. Offline

    Luong

    Code:
    Local Server Log:
    
    05:36:50 [INFO] npcx : load settings (0.415) begun
    05:36:50 [INFO] jdbc:mysql: (RemoteHost)
    05:36:50 [INFO] npcx : initialising database connection
    05:36:51 [INFO] npcx : loadsettings() ended
    05:36:51 [INFO] npcx : registering monitored events
    05:36:51 [INFO] npcx : Checking for DB Updates from DBVersion:1.08
    05:36:51 [INFO] npcx : loading player factions
    05:36:51 [INFO] npcx : Loaded 0 player factions.
    05:36:51 [INFO] npcx : loading npc factions
    05:36:51 [INFO] npcx : Loaded 0 npc factions.
    05:36:51 [INFO] npcx : loading zones
    05:36:51 [INFO] npcx : Loaded 0 zones with 0 zone_members.
    05:36:52 [INFO] npcx : loading Merchants
    05:36:52 [INFO] npcx : Loaded 0 Merchant with (0) entries.
    05:36:52 [INFO] npcx : loading factions
    05:36:52 [INFO] npcx : Loaded 0 factions.
    05:36:52 [INFO] npcx : loading pathgroups
    05:36:52 [INFO] npcx : Loaded 0 pathgroup.
    05:36:52 [INFO] npcx : loading loottables
    05:36:52 [INFO] npcx : Loaded 0 loottables.
    05:36:52 [INFO] npcx : loading spawngroups
    05:36:52 [INFO] 0 spawngroups loaded
    05:36:52 [INFO] npcx version 0.415 enabled.
    05:36:52 [INFO] [Sortal] version 1.5 is enabled!
    05:36:52 [INFO] Done (0.296s)! For help, type "help" or "?"
    Code:
    Remote Server Log:
    
    2011-04-02 04:40:19 [INFO] npcx : load settings (0.415) begun
    2011-04-02 04:40:19 [INFO] jdbc:mysql: (RemoteHost)
    2011-04-02 04:40:19 [INFO] npcx : initialising database connection
    2011-04-02 04:40:19 [INFO] *****************************************
    2011-04-02 04:40:19 [INFO] npcx : ERROR - Cannot find MySQL Library!
    2011-04-02 04:40:19 [INFO]  This error typically means you forgot   *
    2011-04-02 04:40:19 [INFO]  to put the exact named mysql connector
    2011-04-02 04:40:19 [INFO]    into your bukkit/lib folder (5.1.6)   *
    2011-04-02 04:40:19 [INFO] *  You can get this from the README      *
    2011-04-02 04:40:19 [INFO] *****************************************
    2011-04-02 04:40:19 [INFO] **********************************************
    2011-04-02 04:40:19 [INFO] * Load settings failed to load your DB setup *
    2011-04-02 04:40:19 [INFO] *                 openDB()                   *
    2011-04-02 04:40:19 [INFO] **********************************************
     
  12. Offline

    Agnate

    @mixxit

    I have nations=false and nospread=false, but I still cannot light a fire with my lighter.

    Stripped all other plugins and only ran NPCX to confirm it. I'm guessing it just doesn't check the setting when it disallows lighter use?

    I also posted it on Github, in case you prefer you bugs reported there. [link]

    Loving the plugin nonetheless!

    (Config File in Spoiler)
    Show Spoiler

    Only have the default spawngroup and default Guard made (from the tutorial), and no Nations made (never turned it on).

    Here's a copy of the config file (in case you need it):

    #Default generated settings, please ensure mysqld matches
    #Thu Mar 31 22:03:00 EDT 2011
    db-version=1.08
    nospread=false
    db-pass=p4ssw0rd\!
    db-host=localhost
    nocreeper=false
    update=false
    db-name=npcx
    world=world
    db-port=3306
    db-user=npcx
    nations=false
    nowild=false
     
  13. Offline

    mrgreaper

    how do you disable the civilisation part? seems a rather odd thing to add to a npc plugin
     
  14. Offline

    mixxit

    Check the MANIFEST.MF file inside the jar

    it requires it to be in ../lib/ from the plugins folder
    So the parent directory of plugins and in lib (bukkit/lib)

    It's not enabled by default

    Fixed in 0.416! Nice catch!

    [​IMG]

    No it's [give] [itemid] [amount] when chatting to any npc

    But yes that script looks right! i just woke up though!

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

    mrgreaper

    phew, thank you for such a fast response
     
  16. Offline

    anon

    aheuaheuaheuauea, saved.
     
  17. Offline

    mixxit

    I would say deleting the spawngroup was easier because npcs are in many groups - i just put it off to work on other features, just delete the spawngroup create a new one :)
     
  18. Offline

    mache

    I love the plugin, I've waited for a plugin like this since I saw NPCS at hmod, then he said he was going to port it to bikkit... but it never happened.
    But now you came along and made this, fantastic!

    I just have some questions, when I add a triggerword to my npc, /npcx npc triggerword add 1 EVENT_CLOSE NPCSUMMONZOMBIE, he tells me in chat "NPCSUMMONZOMBIE". Is the command wrong?

    And, is it possible to be awarded money for killing a "quest mob" or having a loottable list with a various of different items, which then have a specific "drop rate"?

    Thanks for the mod anyways!
     
  19. Offline

    Luong

    Oh, I see, I misunderstood the instruction. I also learn something new about inspecting the jar file, lol. I thought it had to to be inside the '<minecraft_server/root>/bukkit/lib/' directory, not inside the '<minecraft_server/root>/lib/' folder. I don't call the directory where my server is installed in 'bukkit' ^^;

    You might want to clear that up on the instruction, I'm sure I'm not the last one who will fall prey to the same thing ^^; anyways for clearing that up, the plugin is working now =)
     
  20. Offline

    croxis

    Sorry if this was mentioned (thread is getting long!), but any consideration given to supporting Towny?
     
  21. Offline

    lapzoo

    hey, how can I remove NPCs? :)
    oh and after a server reload (no real shutdown) the npcs double :eek:
     
  22. Offline

    mixxit

    I love towny and it's one reason why i have nations=false by default, we ran it but while shadeness was away i started working on some ideas :D

    Reload supported hasn't been added as of yet

    For continued support please all update to at least 419

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

    GermanCrafter

    When I want to chat to an NPC i always get the message: Error, Your Player is Out Of Sync
    What does that mean?
     
  24. Offline

    mixxit

    Great feedback - found the bug you mentioned and it should be fixed now - just had a zombie attack me when i went near a guy anyway

    Grab 0.421

    It means it has two players in the world with the same name - one is a previously dead version

    Because you are trying to interact with a character that does not match the official one it will say out of sync

    It generally is re-established every 1/4 of a second

    I made lots of changes in this prior to 420

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

    woodzy

    i still cant get an npc to spawn :/
     
  26. Offline

    burningacidsdk

    So its mee again <3

    First, thank you for this nice update and the changes i mentioned before :D
    Works pretty good.

    I have annother request .. could i be possible to add a specific time to the Guards in which the attacks a player.
    Now there is the scenario :

    Player Attacks NPC
    NPC Attacks Player
    Player try to escpae
    NPC follows
    NPCs bugs .

    Would it be possible to add a maximum range to go from the spawngroup until the attack is aborted ?
    Or a timer that tells the NPC to follow and hunt the Attacker for 10 secs and then return to spawn?
    Also it is really difficult to delte NPC that are not longer needed.. a command like
    /npcx spawngroup delete <name>
    or
    /npcx npc delete <name>
    sounds awesome for me :D

    Would be grateful if you could do this

    Thanks and good Luck.
    Going to donate soon as i can :D

    Yours faithfully!
     
  27. Offline

    Deadchicken

    Seconded!

    I love the versatility so far, I wonder, what happens if I spawn two NPCs in one spawngroup?

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

    Ash88

    I've started playing around with your mod - very impressive: both in it's current state and where you are going with it.

    Is it possible to have the NPC names not show? Or only show if they are selected as a target? This isn't just for Aesthetics - but also because players can see all the NPCs names much further away than they can see the NPC (and through stuff). Takes the surprise out of it when they round a corner and see the "Evil Guard" there - but they were ready for him.

    If not - oh well. Awesome mod!
     
  29. Offline

    woodzy

    Code:
    00:07:09 [INFO] ***************************************
    00:07:09 [INFO] woodzykiler(83606) was missing from the list:
    00:07:09 [INFO] Found the player, marked him as dead
    00:07:09 [INFO] ***************************************
    00:07:09 [INFO] woodzykiler[woodzykiler(83606)],
    00:07:09 [INFO] ***************************************
    00:07:09 [INFO] npcx : reestablished 1 dead players.
     
  30. Offline

    zombiemann

    Is there a way to change the skin used by the NPC individually?
     
  31. Offline

    mixxit

    thats a good thing

    No its controlled by minecraft at the moment

    I think that's feasible, the npcs are really players and the players that show in your client are what it gets from the server - but how i could adjust this im not sure, and it would also effect players

    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