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

    Nate204

    Ok, Got it working.

    Does this mean anything?
     
    n30nex likes this.
  3. Offline

    n30nex

    I get the same error, the plugin connects to my db fine and logs in, but the moment I attempt to create an NPC I get the exact same timer-3 exception.
     
  4. Offline

    Phat32

    Can iConomy support be added? I want to create a bank and have tellers. So you say to them balance, the reply is like in MOTD mods, is +money, but it parses out the iConomy balance. I would very much like that parsing ability. It doesn't have to be a set trigger, but the reply of +money is what returns the balance.
     
  5. Offline

    mixxit

    iconomy support can be added but i hate all that stuff, there's like 5 different economy mods and the api's change so it's a nightmare

    lemme get factions working first :)

    means to me that fixDead is coming across a concurrently read list

    although im not currently seeing this on my server

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

    Nate204

    It stopped showing up~ Odd.

    Yes please!!!
    A lot of us couldn't care less about shops or an economy. I already have NPC's in place, but I want this to me more of a ~ Random Mob encounter. You might we walking around and you'll find them in a camp. Something along those lines.

    There are a TON of economy plugins out there.... and it all sucks, because devs have to do twice the work so people are happy. If you stick with working on the combat, drops, and aggro. This will be a HUGE hit.

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

    averad

    I wouldn't say a lot of us don't want an economy my server has 600+ registered users who require plugins we enable have some sort of reward. I have this plugin installed but the user base doesn't want to spend the time fighting for nothing when they can be building towns setting up shops etc.

    It's very server dependent
     
  8. Offline

    Nate204

    That's fine if you wouldn't say that. That's why I did. There are two sides respectively. I'm refering to the one that want's some combat and some added PvE before the added hours spent on "you killed this mob, you get XX gold."
     
  9. Offline

    Tassrus

    I swear I will stop being annoying soon, but :

    I got the mysql in the right spot, but I get these errors? I don't understand anything in the slightest with mysql and databases. How do I log into mysql? I don't understand at all. Can anyone dumb this down... severely? lol
     
  10. Offline

    Nate204

    Looks like a login error. Double check the username and password you setup. Let us know what you find!
     
  11. Offline

    Tassrus

    (WARNING: Stupid question alert!) How do I set one up? :(
     
  12. Offline

    mixxit

    Looks like it was related to player death, since it runs regularly i added a try in there to wait till next pass, grab the latest jar

    Latest DB Structure:

    Code:
    delimiter $$
    
    CREATE TABLE `faction_list` (
      `id` int(11) NOT NULL,
      `name` varchar(45) DEFAULT NULL,
      `base` int(11) DEFAULT NULL,
      PRIMARY KEY (`id`)
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1$$
    
    delimiter $$
    
    CREATE TABLE `loottable_entries` (
      `id` int(11) NOT NULL,
      `loottable_id` int(11) DEFAULT NULL,
      `item_id` int(11) DEFAULT NULL,
      `amount` int(11) DEFAULT NULL,
      PRIMARY KEY (`id`)
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1$$
    
    delimiter $$
    
    CREATE TABLE `loottables` (
      `id` int(11) NOT NULL,
      `name` varchar(45) DEFAULT NULL,
      PRIMARY KEY (`id`)
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1$$
    
    delimiter $$
    
    CREATE TABLE `npc` (
      `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
      `name` char(40) DEFAULT NULL,
      `category` char(40) DEFAULT NULL,
      `faction_id` int(11) DEFAULT NULL,
      `loottable_id` int(11) DEFAULT NULL,
      PRIMARY KEY (`id`)
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1$$
    
    delimiter $$
    
    CREATE TABLE `npc_faction` (
      `id` int(11) NOT NULL,
      `npc_id` int(11) DEFAULT NULL,
      `faction_id` int(11) DEFAULT NULL,
      `amount` int(11) DEFAULT NULL,
      PRIMARY KEY (`id`)
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1$$
    
    delimiter $$
    
    CREATE TABLE `npc_triggerwords` (
      `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
      `npcid` int(11) DEFAULT NULL,
      `triggerword` char(40) DEFAULT NULL,
      `reply` varchar(256) DEFAULT NULL,
      `category` char(40) DEFAULT NULL,
      PRIMARY KEY (`id`)
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1$$
    
    delimiter $$
    
    CREATE TABLE `pathgroup` (
      `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
      `name` char(40) DEFAULT NULL,
      `category` char(40) DEFAULT NULL,
      PRIMARY KEY (`id`)
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1$$
    
    delimiter $$
    
    delimiter $$
    
    CREATE TABLE `pathgroup_entries` (
      `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
      `s` int(11) DEFAULT NULL,
      `pathgroup` int(11) 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`)
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1$$
    
    delimiter $$
    
    CREATE TABLE `player_faction` (
      `id` int(11) NOT NULL,
      `player_name` varchar(45) DEFAULT NULL,
      `faction_id` int(11) DEFAULT NULL,
      `amount` int(11) DEFAULT NULL,
      PRIMARY KEY (`id`)
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1$$
    
    delimiter $$
    
    CREATE TABLE `spawngroup` (
      `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
      `name` char(40) DEFAULT NULL,
      `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,
      PRIMARY KEY (`id`)
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1$$
    
    delimiter $$
    
    CREATE TABLE `spawngroup_entries` (
      `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
      `spawngroupid` int(11) DEFAULT NULL,
      `npcid` int(11) DEFAULT NULL,
      PRIMARY KEY (`id`)
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1$$
    
    
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 12, 2016
  13. Offline

    Tassrus

    Exactly how do I setup a mysql user and pass? :)
     
  14. Offline

    Nafds

    you need a MySQL database
     
  15. Offline

    Tassrus

    Lol... where does a person get one? (answer in a way a chimpanzee can understand)

    Any help would be great :D

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

    Firelight7300

    ZOMFG You didn't tell me they had fly hacks and ranged fist attack o_o
     
  17. Offline

    Nate204

    Ummm.... How do you remove NPCs and spawn groups? Other than going into the DB...?
     
  18. Offline

    SplenectomY

    This is legend.
     
  19. Offline

    mixxit

    added basic factions

    Example usage:
    /npcx faction create -1500 evilfaction
    /npcx faction create 1500 goodfaction
    /npcx faction list

    /npcx npc faction NPCID FACTIONID
     
  20. Offline

    mrgreaper

    if you add traders i may jump ship from citizens 1.06 as that seems to have stopped development.
     
  21. Offline

    David McCahon

    npcx: ERROR - Error during MySQL login
     
  22. Offline

    mixxit

    make sure you can access the db with the same details as the one in your npcx.properties file
     
  23. I somehow made it work! Earlier, the npcx.properties wouldn't be created, but now it did! : D I'm proud of myself, but I'm pretty sure I would still be grinding my teeth over this if it wasn't for the hints I got here.

    But then again, the server is launched via a webhoster. So do I need to make any changes in the npcx.properties?
     
  24. Offline

    David McCahon

    mysql
    mysql just returns 1045 error when doing mysql -u root -p
     
  25. Offline

    mixxit

    added loottables to npcs!

    Enjoy!

    make sure you run an update=true for this one

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

    Mercuie

    Although i like Citizens for just general NPC population and ease of use, this addon was worth the effort of getting installed (likes others i had no idea what MySQL was or how to work it). It looks like you really plan to make this a deep addon that can really bring stories and just life in general to minecraft. <3 @ you sir. Hopefully Notch one day see's the need for NPC's so we can actually choose our own skins for them. *dreams*
     
  27. Offline

    mixxit

    haha i wish! maybe we can mess with the player name after the skin has loaded somehow, i'll have a look
     
  28. Offline

    Phat32

    I copied the Git source and added in iConomy Functionality for my server :D
    This mod is awesome! Thanks for the factions!
     
  29. Offline

    Kainzo

    God this kicks ass - I'll have to look into this more and see what we can cook up :D
     
    Nate204 likes this.
  30. Offline

    mixxit

    need to do more work on the factions so as you kill more of one type of npc faction it raises your faction with the other

    i added the tables for it just need to put the checks in
     
    averad likes this.
  31. Offline

    Nate204

    Im drooling ...... I can't wait!!! Keep it up!!!!
     

Share This Page