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

    ledhead900

    Thats fine as speaking to u in IRC I understand core issues first.
     
  3. Offline

    mixxit

    This issue was caused by low timeout settings in mysqld for anyone else with a similar problem (although this wont always be the fix for that particular message)

    0.193 - fixed npcs so you can update pathgroups in realtime again

    Jar is now stored here
    https://github.com/mixxit/npcx/raw/master/npcx.jar
    0.194 - fixed pathgroup 0

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

    Flopsie

    Hi, I like your plugin so far except the difficulty :D
    It would be easier if we could change text of npc's in normal text files instead of in-game.
    Also, the npc's don't 'stare' at you. This feature IS available with the Citizens plugin.

    With only one readme file it is what unclear of what the features are.. So I'd suggest you make a wiki.

    I'll try messing around with it, thank you.
     
  5. Offline

    Johnny Lunder

    MySQL? No thanks. Except for that, probably a great plugin xD
    But have had more than enough of my share with problems with MySQL ;)
     
  6. Offline

    ledhead900

    @mixxit

    I like the NPC stare as well so they look at your when u walk near them.

    Also couple more things to consider for possible features.

    1. Npc shout outs - get them to announce when people are near them - usefull for announcing help or common info of interest to passing players.

    2. Runnaway event scriptable to get them to run from a player under certian conditions such as maybe low health.

    3. Npcs of same group all stare you when you make one of there groups friends mad :p - toggable

    4. Follow events to get them to Follow a player or another npc

    5. Npc Self heal ? - "npc ability to eat"
     
  7. Offline

    Antsonapalmtree

    11:28:24 [INFO] Starting minecraft server version Beta 1.3
    11:28:24 [INFO] Loading properties
    11:28:24 [INFO] Starting Minecraft server on *:25524
    11:28:24 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-544-
    g6c6c30a-b556jnks (MC: 1.3)
    11:28:24 [INFO] Preparing level "world"
    11:28:24 [INFO] Preparing start region
    11:28:25 [INFO] [iConomy] Logging is currently disabled.
    11:28:27 [INFO] [iConomy] v4.5 (Elektra) loaded.
    11:28:27 [INFO] [iConomy] Developed by: [Nijikokun, Coelho]
    11:28:27 [INFO] npcx : load settings (0.183) begun
    11:28:27 [INFO] jdbc:mysql://localhost:3306/npcx
    11:28:27 [INFO] npcx : loadsettings() ended
    11:28:27 [INFO] npcx : initialising database connection
    11:28:27 [INFO] *****************************************
    11:28:27 [INFO] npcx : ERROR - Cannot find MySQL Library!
    11:28:27 [INFO] *****************************************
    11:28:27 [INFO] [(Plugin)] Successfully linked with iConomy.
    11:28:27 [INFO] Done (0.352s)! For help, type "help" or "?"

    I keep getting this error, What could my problem be?
     
  8. Offline

    Animosity

    Could you add support for the Factions plugin, to override your faction system?
     
  9. Offline

    patate

    Thank you, problems solved :)
     
  10. Offline

    skillinazn

    Is it okay if you add a changelog in your thread? I can't find it in github and I really want to know what changes you've made without scouring through pages to find out.
     
  11. Offline

    mixxit

    Hmm i don't know that mod but I'm going for the eqemu system which I know inside out and is one of the reasons i started working on the mod - i think you might be getting what i'm trying to do with factions mixed up with mmo guild systems though which i didnt add to my list of things to do so, I guess, I could hook in factions mod if it doesn't upset towny?

    https://github.com/mixxit/npcx/commits/master

    added to front page

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

    Sleaker

    Just installed this, and it fires whenever one of my players dies, I haven't setup any spawngroups or anything. But when my players respawn they are getting sent into the world rather than to the default spawn. Just wondering why this plugin would override the default spawn for players?
    It continuously pumps out errors in console too:

    '[INFO] npcx : FAILED establishing dead player'
     
  13. Offline

    Orcem12

    Ok, I need a you tube vid on how to do this whole thing, I'm willing to get MSQ or whatever it is I just need someone explaining it. instructions weren't really getting to me and the downloads took me all over the place I either need step by step direction or I'm just gonna uninstall this please help or link video :)
     
  14. Offline

    Nathaniel

    Mixxit, Is this not compatible with dwarfcraft?
     
  15. Offline

    mixxit

    Version 1.202 might fix that

    download mysql server (community) and press next to everything and set a root username and pass when it asks

    then install mysql workbench 5.2 to make useraccounts and stuff

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

    kenjamen

    YOU ARE A GOLDEN GOD!!!

    Ok! So this is awesome. Now, I've installed everything and it's running good(small problem with gay workbench(add user button apparently doesn't exist or is only for pigmen to find....but the 'linux' commands to create a user still work in dos). Dos is the way to do sql commands anyhow imo but workbench has proven useful for easy visual editing.

    Anyways my questions:
    1) Haven't gotten banks to work yet. Bank accepts the command but doesn't work right for some reason. Do I need another plugin installed? I have iEcon.
    2) Haven't gotten paths ro work yet. Am I doing something wrong here also.

    3) I'm not tryin to rush you. This plugin is incredible and I can't wait but I'm just wondering if it's because these aren't implemented yet or because I'm doing something wrong(probably).

    THANK YOU!!!!!!!111one12

    -k
     
  17. Offline

    Nathaniel

    Alright, so i mixed a few things up and changed stuff around and fixed it myself. Anyway, like others are asking, anyway to prevent invisible NPCs? Or is that a work in progress?
     
  18. Offline

    ledhead900

    @mixxit

    Comming a long nice, ooo a changlog that was much easier to follow :) thx for that.

    I noticed delete of sorts is in now eager to test this version.
     
  19. Offline

    Orcem12

    Thanks :D
     
  20. Offline

    skillinazn

    Ahh, ok thanks. I just have noticed one of your old updates and was wondering:
    added new triggerword 'ATTACK' fires when npc is first attacked - added new fireable events NPCSUMMONPLAYER and NPCSUMMONZOMBIE for use in chat scripts

    You had a NPCSUMMONZOMBIE as a fireable event. Can you explain how that works and if it works for summoning other mobs as well? I thought that it was a triggerword event but it didn't work when using it.
     
  21. Offline

    mixxit

    Hey! Yep this only summons a zombie atm, i will add the other types later - it's kind of like a triggerword but it's an actual event that fires

    Example would be

    /npcx npc triggerword add 1 default How dare you speak to me! Zombie!! Attack!!!! NPCSUMMONZOMBIE

    Which would fire a npc zombie whenever a played spoke to the npc

    Banks are just normal npcs atm, they need iconomy to output the variable playerbalance which is their only purpose (presently)

    Make sure you use the numbers for the npcIDs etc

    Paths are
    /ncpx npc create Notch
    /npc spawngroup create test-notch
    /ncpx spawngroup add SPAWNGROUPID NPCID
    /npcx pathgroup create MyPath
    /npcx spawngroup pathgroup SPAWNGROUPID PATHGROUPID

    Now stand where you want the first spot
    /npcx pathgroup add PATHGROUPID 1
    then move to second spot
    /npcx pathgroup add PATHGROUPID 2

    etc :) he will begin moving immediately

    I am mostly using the changelog but here's some recent tweaks:

    * added event triggerwords EVENT_DEATH, EVENT_BOUNCE, EVENT_CLOSE
    * changed it to default query the npc 'hello' on right click
    * made some modifications to the way the shop helps players
    * enabled triggerwords to fire on Sell, Buy, List (just use the triggerword name as sell)

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

    Elememental

    Can i use this without using iConomy?
     
  23. Offline

    dslip

    @mixxit
    , could you fix your link used by CraftBukkitUpToDate.

    eg
    Show Spoiler

    npcx.jar changed, try to download the new
    17:14:15 [INFO] Not able to update npcx.jar check if URL http://www.gamerservices.net/gs/npcx.jar correct. If not ask the Author to give me the new one


    Easier to let the plugin keep track of your updates than having to keep checking here :)
     
  24. Offline

    mixxit

    fixed, should update automatically from github every 5 minutes
     
  25. Offline

    dslip

    @mixxit
    Thank you, greatly appreciated. Keep the updates coming.
     
  26. I don't know if this has been asked, but is there a command to remove a spawngroup?
     
  27. Offline

    swedish2011

    how do you know that robots are moving?
     
  28. Offline

    Nathaniel

    /npcx spawngroup delete spawngroupid


    You'll see them move back and forth through the pathgroup you've assigned them. As soon as you assign it and and set positions they should start moving according to the path.
     
  29. Offline

    mixxit

    /npcx spawngroup delete spawngroupid

    Major change in the latest version, you will probably need to backup your database and manually recreate your npcs unless you are familiar with mysql and altering the changes manually

    If you are then this is the new schema:

    Code:
    CREATE TABLE faction_list (
      id int(11) unsigned NOT NULL AUTO_INCREMENT,
      name varchar(45) DEFAULT NULL,
      base int(11) DEFAULT NULL,
      PRIMARY KEY (id)
    )
    
    CREATE TABLE flags (
      id int(10) unsigned NOT NULL AUTO_INCREMENT,
      name varchar(45) DEFAULT NULL,
      PRIMARY KEY (id)
    )
    
    CREATE TABLE loottable_entries (
      id int(11) unsigned NOT NULL AUTO_INCREMENT,
      loottable_id int(11) unsigned DEFAULT NULL,
      item_id int(11) unsigned DEFAULT NULL,
      amount int(11) DEFAULT NULL,
      PRIMARY KEY (id),
      KEY id (id),
      KEY fk_loottableid (loottable_id),
      CONSTRAINT fk_loottableid FOREIGN KEY (loottable_id) REFERENCES loottables (id) ON DELETE NO ACTION ON UPDATE NO ACTION
    )
    
    CREATE TABLE loottables (
      id int(11) unsigned NOT NULL AUTO_INCREMENT,
      name varchar(50) DEFAULT NULL,
      PRIMARY KEY (id)
    )
    
    CREATE TABLE merchant (
      id int(10) unsigned NOT NULL AUTO_INCREMENT,
      name varchar(45) DEFAULT NULL,
      PRIMARY KEY (id)
    )
    
    CREATE TABLE merchant_entries (
      id int(10) unsigned NOT NULL,
      merchantid int(10) unsigned DEFAULT NULL,
      itemid int(10) unsigned DEFAULT NULL,
      amount int(10) unsigned DEFAULT NULL,
      pricebuy int(10) unsigned DEFAULT NULL,
      pricesell int(10) unsigned DEFAULT NULL,
      PRIMARY KEY (id),
      KEY fk_merchantid (merchantid),
      CONSTRAINT fk_merchantid FOREIGN KEY (merchantid) REFERENCES merchant (id) ON DELETE NO ACTION ON UPDATE NO ACTION
    )
    
    CREATE TABLE npc (
      id int(11) unsigned NOT NULL AUTO_INCREMENT,
      name char(40) DEFAULT 'dummy',
      category char(40) DEFAULT NULL,
      faction_id int(11) unsigned DEFAULT NULL,
      loottable_id int(11) unsigned DEFAULT NULL,
      weapon int(11) unsigned DEFAULT '0',
      helmet int(11) unsigned DEFAULT '0',
      chest int(11) unsigned DEFAULT '0',
      legs int(11) unsigned DEFAULT '0',
      boots int(11) unsigned DEFAULT '0',
      merchantid int(10) unsigned DEFAULT NULL,
      hp int(11) unsigned DEFAULT '100',
      damage int(11) unsigned DEFAULT '3',
      coin int(11) unsigned DEFAULT '100',
      storageid int(11) unsigned DEFAULT NULL,
      PRIMARY KEY (id),
      KEY fk_npc_factionid (faction_id),
      KEY fk_npc_loottableid (loottable_id),
      KEY fk_npc_merchantid (merchantid),
      KEY fk_npc_storageid (storageid),
      CONSTRAINT fk_npc_storageid FOREIGN KEY (storageid) REFERENCES storage (id) ON DELETE NO ACTION ON UPDATE NO ACTION,
      CONSTRAINT fk_npc_factionid FOREIGN KEY (faction_id) REFERENCES faction_list (id) ON DELETE NO ACTION ON UPDATE NO ACTION,
      CONSTRAINT fk_npc_loottableid FOREIGN KEY (loottable_id) REFERENCES loottables (id) ON DELETE NO ACTION ON UPDATE NO ACTION,
      CONSTRAINT fk_npc_merchantid FOREIGN KEY (merchantid) REFERENCES merchant (id) ON DELETE NO ACTION ON UPDATE NO ACTION
    )
    
    CREATE TABLE npc_faction (
      id int(11) unsigned NOT NULL AUTO_INCREMENT,
      npc_id int(11) unsigned DEFAULT NULL,
      faction_id int(11) unsigned DEFAULT NULL,
      amount int(11) DEFAULT NULL,
      PRIMARY KEY (id),
      KEY fk_npcid (npc_id),
      KEY fk_factionid (faction_id),
      CONSTRAINT fk_npcid FOREIGN KEY (npc_id) REFERENCES npc (id) ON DELETE NO ACTION ON UPDATE NO ACTION,
      CONSTRAINT fk_factionid FOREIGN KEY (faction_id) REFERENCES faction_list (id) ON DELETE NO ACTION ON UPDATE NO ACTION
    )
    
    CREATE TABLE npc_triggerwords (
      id int(10) unsigned NOT NULL AUTO_INCREMENT,
      npcid int(11) unsigned DEFAULT NULL,
      triggerword char(40) DEFAULT NULL,
      reply varchar(256) DEFAULT NULL,
      category char(40) DEFAULT NULL,
      PRIMARY KEY (id),
      KEY fk_npct2n (npcid),
      CONSTRAINT fk_npct2n FOREIGN KEY (npcid) REFERENCES npc (id) ON DELETE NO ACTION ON UPDATE NO ACTION
    )
    
    CREATE TABLE pathgroup (
      id int(10) unsigned NOT NULL AUTO_INCREMENT,
      name char(40) DEFAULT NULL,
      category char(40) DEFAULT NULL,
      PRIMARY KEY (id)
    )
    
    CREATE TABLE pathgroup_entries (
      id int(10) unsigned NOT NULL AUTO_INCREMENT,
      s int(11) unsigned DEFAULT NULL,
      pathgroup int(11) unsigned DEFAULT NULL,
      name char(40) DEFAULT NULL,
      x char(40) DEFAULT NULL,
      y char(40) DEFAULT NULL,
      z char(40) DEFAULT NULL,
      yaw char(40) DEFAULT NULL,
      pitch char(40) DEFAULT NULL,
      PRIMARY KEY (id),
      KEY fk_pathgroupid (pathgroup),
      CONSTRAINT fk_pathgroupid FOREIGN KEY (pathgroup) REFERENCES pathgroup (id) ON DELETE NO ACTION ON UPDATE NO ACTION
    )
    
    CREATE TABLE player_bank (
      id int(10) unsigned NOT NULL AUTO_INCREMENT,
      playername varchar(45) DEFAULT NULL,
      itemid int(10) unsigned DEFAULT NULL,
      coin int(10) unsigned DEFAULT NULL,
      amount int(10) unsigned DEFAULT NULL,
      PRIMARY KEY (id)
    )
    
    CREATE TABLE player_faction (
      id int(11) unsigned NOT NULL AUTO_INCREMENT,
      player_name varchar(45) DEFAULT NULL,
      faction_id int(11) unsigned DEFAULT NULL,
      amount int(11) DEFAULT NULL,
      PRIMARY KEY (id),
      KEY fk_faction_id (faction_id),
      CONSTRAINT fk_faction_id FOREIGN KEY (faction_id) REFERENCES faction_list (id) ON DELETE NO ACTION ON UPDATE NO ACTION
    )
    
    CREATE TABLE player_flags (
      id int(10) unsigned NOT NULL AUTO_INCREMENT,
      flagid int(10) unsigned DEFAULT NULL,
      playername varchar(45) DEFAULT NULL,
      value varchar(45) DEFAULT NULL,
      PRIMARY KEY (id),
      KEY fk_flagid (flagid),
      CONSTRAINT fk_flagid FOREIGN KEY (flagid) REFERENCES flags (id) ON DELETE NO ACTION ON UPDATE NO ACTION
    )
    
    CREATE TABLE settings (
      id int(10) unsigned NOT NULL AUTO_INCREMENT,
      name varchar(45) DEFAULT NULL,
      value varchar(45) DEFAULT NULL,
      PRIMARY KEY (id)
    )
    
    CREATE TABLE spawngroup (
      id int(10) unsigned NOT NULL AUTO_INCREMENT,
      name char(40) DEFAULT 'defaultspawngroup',
      world char(40) DEFAULT NULL,
      category char(40) DEFAULT NULL,
      x char(40) DEFAULT NULL,
      y char(40) DEFAULT NULL,
      z char(40) DEFAULT NULL,
      yaw char(40) DEFAULT NULL,
      pitch char(40) DEFAULT NULL,
      pathgroupid int(10) unsigned DEFAULT '0',
      PRIMARY KEY (id)
    )
    
    CREATE TABLE spawngroup_entries (
      id int(10) unsigned NOT NULL AUTO_INCREMENT,
      spawngroupid int(11) unsigned DEFAULT NULL,
      npcid int(11) unsigned DEFAULT NULL,
      PRIMARY KEY (id),
      KEY fk_spawngroupid (spawngroupid),
      KEY fk_npcidSGE (npcid),
      CONSTRAINT fk_npcidSGE FOREIGN KEY (npcid) REFERENCES npc (id) ON DELETE NO ACTION ON UPDATE NO ACTION,
      CONSTRAINT fk_spawngroupid FOREIGN KEY (spawngroupid) REFERENCES spawngroup (id) ON DELETE NO ACTION ON UPDATE NO ACTION
    )
    
    CREATE TABLE storage (
      id int(10) unsigned NOT NULL AUTO_INCREMENT,
      name varchar(45) DEFAULT NULL,
      PRIMARY KEY (id)
    )
    
    CREATE TABLE storage_entries (
      id int(10) unsigned NOT NULL AUTO_INCREMENT,
      storageid int(10) unsigned DEFAULT NULL,
      itemid int(10) unsigned DEFAULT '0',
      amount int(10) unsigned DEFAULT '0',
      price int(10) unsigned DEFAULT '0',
      PRIMARY KEY (id),
      KEY fk_storage_id (storageid),
      CONSTRAINT fk_storage_id FOREIGN KEY (storageid) REFERENCES storage (id) ON DELETE NO ACTION ON UPDATE NO ACTION
    ) 
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 12, 2016
  30. Offline

    Scandragon

    I'll have to ask again..
    Any chance of sqlite in the near future?
     
  31. Offline

    Nathaniel

    He seems to ignore questions he does not care to answer. Ignored about 2-3 of my simple questions.
     

Share This Page