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

    Lord Chaos

    1. Ok, thats very cool.

    2. Disable nations in Towny or in your plugin?

    3. I meant a kind of GUI, from the video theres a huge amount of typing involved in this and commands. Would be cool that you could create NPCs through a GUI with all the relevant options that was then inserted into the database. Kinda like the Achievement generator for the Achievements plugin.
     
  3. Offline

    mixxit

    It's already in not something to look forward to XD

    2) Disable nations in npcx

    3) This system is present on eqemu, some people had the same issues with commands and wrote a web interface since the database was in mysql. Maybe someone who really needs it will make it for themselves but atm i will only be supporting in game commands, extend it however you want.

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

    Chocwise

    Short and simple question: Are the chunks around the NPC's kept loaded in RAM because of the presence of the NPC? Or are the chunks around the NPC (and the NPC itself) just being loaded if an actual player approaches the NPC?

    I'd like to use NPCX to create quite a lot of NPC's all over the map. But if they'd cause the server to keep too much chunks in RAM, that wouldn't be too good on our 2 GB RAM. :D

    EDIT: Another Question: Is it possible to make an NPC attack if a player does NOT respond with the expected keyword?
     
  5. Offline

    rano1234

    A n00b question. i know that i can only acces the commands by being an op, but i use permissions. how do i make myself op? do i need to add my name to the ops.txt file?



    i saw the video. this is an Awesome plugin.
     
  6. Offline

    zorphon

    If you read my post, you'd know that I WAS talking about the database.It gives me errors that I am unable to delete rows when I try to get rid of NPCs, merchants, factions, or spawngroups. I contacted BroHoster.com support (who I rent from) and they said that many customers are having the same issue.
     
  7. Offline

    Dover

    Why i create a server with a new name all my merchant lists don't work.
    For example, i had a server called Towntest and everything worked perfectly. I then had my friend log on the server and we made a new name for it and called it doverandjoel, i changed the worldname in the npcx properties file, but still noting. Any help with this?
     
  8. Offline

    mixxit

    When a chunk is unloaded the spawngroup should remove any npcs from itself and not spawn until the chunk is loaded again, i used to have debug messages on this but disabled them a while ago. It certainly _seems_ like it's working at least, that doesn't stop them from being in the cache though but certainly would remove quite alot of npcs think() logic :)

    I have no clue on that one, merchant lists dont store the world

    in server console just type op playername

    Yes cause of referential integrity, you should understand sql before you start tinkering in a sql database or this early plugin

    What is referential integrity?

    Imagine you have three spreadsheets (or tables as we call them):

    NPCS
    id name

    SPAWNGROUPS
    id name

    SPAWNGROUPENTRIES
    id npcid, spawngroupid

    As you can see table 3 requires an NPCID and a SPAWNGROUPID. But where do they come from and what do they mean? Well, it will lookup the reference NPCID from the table NPCS and it will look up the spawngroupid from the SPAWNGROUPS table

    If you try to delete an npc from NPCS table it will stop you because it will think: i can't do this because there are items in SPAWNGROUPENTRIES that reference me

    So you must first remove those npcids from spawngroupentries, then delete the npc

    In NPCX npcs have many interconnected tables, like factions, loottables etc. Removing all of these related rows are necessary to remove the npc.

    Understanding foreign keys and referential integrity is key to using databases and how the tables interact together - we covered this in highschool in the 90s but im not sure what they are teaching kids these days. But essentially referential integrity is ensuring that the data put into your table, like the NPCID the player provides is actually an npc and not some random number (or string as some of the users have tried!)

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

    Dover

    Ah, ok, i've deleted the world i set it up in, so do i have to do it again? If so this is a fatal flaw.
    And is there anyway i can link a npc to the uquest plug in. This would help me an awful lot. I guess you could make each quest npc trigger the command, in the speech, but it seems a bit backward way to do it.
     
  10. Offline

    mixxit

    The fatal floor is that your coordinates will be all wrong for the new world but other than that no
     
  11. Offline

    Dover

    So, the co-ordinates are for the npc, or for the merchant list?
     
  12. Offline

    mixxit

    neither, the only coordinates are stored for pathgroups and spawngroups

    think of npcs as templates and spawngroups instantiating the npc
     
  13. Offline

    Lord Chaos

    That made me a bit confused. You cannot set access to this plugin through permissions? I thought you could.
     
  14. Offline

    iShellz

    The link is broken
     
  15. Offline

    Trumple

    Link appears to be broken!
     
  16. Offline

    Luong

    They only teach that if you're in computer studies in college/university here in canada. None of my highschool teaches it. Most they teach is turing, vb, java, c/c++, python, css & html (not xhtml) in highschool. beside, not everyone take those computer courses as gamers / game server host =p

    My first database was sql, then oracle, follow by mmsql during my first freshmen years in college. I'm still more of a c/c++ person, but I don't have much of an issue with the other language. Personally I wasn't much of a fan of java because it was slow back then, and was very strict in order for it to be user friendly when coding. However, these days, I think it's gotten faster. Portability was a obviously a plus from back then.
     
  17. Offline

    mixxit

    Builds can now be found at:
    http://world.gamerservices.net:8080/job/npcx/npcx-promotion/artifact/dist/npcx.jar

    damn this was back in the 90s during high school and we were using win95 and old slim macs

    [​IMG]

    They covered all of the microsoft office suite including access and this was far before college or university (yes everyone had to learn it)

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

    JJORDAN12

    I am wanting to install NPCX, but have constant issues with mysql. Is there any way to install it using flat files?
    Also, your link appears to be down. It won't load here, and i have disabled antivirus programs to be sure it was them.
     
  19. Offline

    mixxit

    No sorry not with this mod, you could try citizens though
     
  20. Offline

    Luong

    Lol, I was using windows 3.5 back when I was little XD
    well high school still teaches how use Microsoft office, but it's mostly word, presentation, and excel really ^^ Just not acess, publisher, etc. unless they have a 2nd course that carries on now, but I wouldn't know since I'm not in highschool anymore, lol.
     
  21. Offline

    mixxit

    3.1 was great but what about amiga's workbench XD
     
  22. Offline

    Luong

    i jump from 3.1 when I was in elementary school straight to windows 2k in the last few years of highschool ^^;
    I didn't know much about computer at all to even know anything about amiga's workbench =/

    I don't when it was, but I never was a fan of apple. I do remember getting piss off with the one button mouse, acting clueless. what annoyed me was the constant loading cursor, the same way java kept showing it too XD I guess I was impatient to use mac.

    omg, sega genesis cartiage, lol.

    That was my 2nd console after nintendo. I remember purchasing that huge motion controller for it, a huge gimmick, and horribly suck bad, lol.

    After that, i got sega-gear and watching shows on it XD Wish I got gameboy instead, where all the rpg were ^^;

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

    mixxit

    I never was a big fan of mac either tbh it's just most of the machines at school were mac and only the odd few pcs - lol i remember in the english class they had a mixed pc that was half Sega Mega Drive half pc it was mental..!

    lol wow brings back memories

    [​IMG]

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

    zombiemann

    Bah, Commodore 64SX FTW :p

    Playing games sucked tho, either a 4 or 6 inch monochrome monitor, can't remember off the top of my head.

    [​IMG]
     
  25. Offline

    Luong

    well it's not much different form playing MUDs though =p just a bigger resolution
     
  26. Offline

    mixxit

    HAha woh wth! I had a commodore vic 20 and a 64 but never this! I like the funky keyboard and 5.12 floppy - my tapes took an age to load!

    gamegear was amazing though except for the 6 batteries that died in like 15 minutes! But the screen and colour was amazing compared to that weird gameboy vomit :D

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

    kenjamen

    gamegear sucked. I had one. Loved sonic on genesis tho. thanks for not getting back to my postings. Took a lot of time to give u useful feedback. 2nd one i dont even think u read.


    [*my name is JP. I am a robot. I have a robot vagina*]
     
  28. Offline

    Insanehero

    I'm getting an error saying "Entity_Damage could not be found v.0.171.(is it up to date)?
    I have the latest version of npcx and cb 617.
     
  29. Offline

    mixxit

    no need to be a jerk

    no you dont

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

    Luong

    1) If you been following the thread, there have been multiple posted on how to wipe the database. The easiest way is to have the plugin wipe and recreate your tables by opening the config file and set the two parameter in the database
    Code:
    Version=1
    Update=true
    
    Here's my post where I gave you the sql commands for deleting tables using any MySql ComandLine or IDE. http://forums.bukkit.org/threads/fu...ard-shops-quest-chat.9186/page-28#post-189502

    2) abit confuse here.

    3 & 4) Logical rules are easy to add, but AI programing is a whole separate thing. They aren't aren't easy to code, and the fact that there are so many kinds, you have to take a separate course or major to do it. Hence why you can find so many books specifically for it, and in large volumes too. AI path-finding is a one part of it. I won't expect much fix to it any time soon.

    Personally, I love the way Mabinogi does it. It reads an xml fill with set of rules and act according to it. This feature took them a while to make public for the user to code their pet AI. It require a parser, a flexible number of function for ai behaviour and a fair amount of ram base on the xml file size + other stuff. (Refer to #6 as to why)

    5) Did you try giving your npc bows as the default weapon along arrows? alot you can place them stationary, once they start attacking, they will most likely chase the attacker to the end of the world before they head back.

    6) This require to write a whole scripting language and a parser that would compile it and run it either in real time or on loading time. Base on how customizable it is, this may require a massive amount of time and is easily a full-time job that you're asking him to do. You can make a living creating scripting languages for engines. Game Engines & Graphic applications are the biggest user of using scripting language.

    Next post: You're saying is that there is a compatibility issue with epic zones and that he needs to look into to make his plugin revolve around another plugin in a informal manner.
     
  31. Offline

    MarcoPolo1990

    why cost "/civ buy" so much?
    where i can change it ? (e.g. 1000 coins)
     

Share This Page