[FUN/MECH] npcx (v0.0.31) - The NPC eXtender (now for 1.8.1) [1097-1157]

Discussion in 'Inactive/Unsupported Plugins' started by wizjany, May 9, 2011.

  1. Offline

    wizjany

    npcx - The NPC eXtender
    Version: 0.0.31

    UPDATE: mixxit has took the initiative to update the npclib to 1.8, all credit for this update goes to him! it should work on any 1.8 version of craftbukkit

    If you are having trouble, please read the old thread here and the included readme.txt that mixxit left. If you know of any other tutorials, do post and I'll add them.

    Info Update: Well long story short I am beginning to get bored of Minecraft and I don't have as much time as I would like to develop this plugin. This probably means that the rewrite I had planned is just going to die. Besides lack of time and motivation, I find it extremely pointless to write an API for NPCs outside of bukkit/craftbukkit, which makes the rewrite I was working on very frustrating. However, I will continue to update mixxit's code for new versions of minecraft, but don't expect any new features or anything.
    Update 2: As NPCs are being planned natively for 1.8 (the adventure update), I will probably be working on a (separate) plugin or directly with the NPC API if I have time.

    Note: If you have iConomy, make sure you have at least version 5+ or you'll get an error like this.
    Code:
    [SEVERE] Could not pass event WHATEVER_EVENT to npcx
    java.lang.NoClassDefFoundError: com/iConomy/iConomy
    You should also be able to add "use-iConomy=false" in the npcx properties file.

    If you're having trouble installing MySql on windows, here's a nice guide: http://forums.bukkit.org/posts/293544, thanks to Atticus Craft. Basic WAMP/LAMP/MAMP servers should work fine too, just make sure you have the username/password correct and the database with permissions to the right user.

    Features:
    • You can create npcs
    • And they do stuff
    • Everything should work like it did in mixxit's last version
    And by "work like it did" I mean I have no clue if there were bugs from then, but they're probably still around now. Please report any you find so I can take them into consideration.

    For MC 1.8.1 (1097+, no RB yet) Download
    For MC 1.7 (937+, 953, 1k): Download
    For MC 1.6 (807+): Download
    For MC 1.5 (740-803): Download
    Source Code

    Changelog:
    Version 0.0.31
    • Updated to MC 1.8.1 (by Mixxit)
    Version 0.0.3
    • Updated for Grum's internal renaming
    Version 0.0.2
    • Updated for 1.6
    Version 0.0.1
    • Updated for 1.5
    • Began code revamp
    All credits go to mixxit for his work. Special thanks to sk89q and fullwall, even if they don't know they helped.
     
    wassilij, Zoaen, nathanaelps and 2 others like this.
  2. Offline

    wizjany

    Bleh, more quest plugins. Oh wait, that one doesn't have a source OR an API.
     
  3. Offline

    transient

    PuzzleQuest utilizes uQuest's API. It allows you to use redstone for uQuest quests. We have it running on my server;for example you step on a pressure plate near a well and it initiates a quest where you hear distant screaming down the well. Eventually you find an underground city where a house is on fire and you have to put it out. The string of quests is done using pressure plates, but it'd be nice to have some NPC interaction to initiate quests instead as we already use npcx for our merchants.

    Here's uQuest's API
     
  4. Offline

    wizjany

    Wait so, what does PuzzleQuest have to do with npcx? :\
     
  5. Offline

    xlilcasper

    How do I remove an item from a merchant list? Also would it be possiable to get it so that we can sell at a fraction of a coin? either by selling/buying in stacks or by having it accept 0.25 as an option? I want to sell 4 seeds for $1.
     
  6. Offline

    transient

    Nothing, sorry I meant it as in if you were to integrate npcx with uQuest. Whatever you choose, I'm happy to have working NPC's again!!
     
  7. Offline

    deianthropus

    Also something to look into (hopefully an intrinsic consequential fix of the re-write): Npcs attacking thin air. Server reset doesn't fix it.

    And btw, good luck with the DB. many of us have been there.
     
  8. Offline

    Eric Pinel

    Hello

    I just noticed a small problem of updating the quantities of sellers,
    When you sell items to the seller the amount goes up to date on the game,
    But if we restart the server, the quantities are reset to the original amount,
    Because there is no update on the mysql server.

    Thank you in advance for your reply.
     
  9. Offline

    wizjany

    I haven't even released the rewrite. This is probably some old bug mixxit left behind, although it sounds somewhat odd.
     
  10. Offline

    JDD

    @wizjany
    Not sure I saw this in any of the 5 pages, but a few syntax errors I found.
    /npcx npc weapon
    Using this command yeilds the syntax:
    /npcx npc weapon npcid itemid
    This is incorrect syntax and will cause the client to recieve text: An error occured.
    It will also throw an NPE in the console.
    The appropriate syntax is:
    /npcx npc weapon itemid npcid

    This syntax needs to be adjusted for all npc customization commands.
     
  11. Offline

    MCCrinkle

    You need to update this install guide. I follwed the steps to the installing navicat as you said (You dont provide a way ahead if this "optional" step isn't taken). When clicking on the navicat executable nothing happens. You need to write a tutorial for that section and also a tutorial if people dont want to install it.

    In addition any way of making it just a JAR file like any other plugin? All this installing things is driving me crazy!

    Scrap my above post, i was clicking on the wrong exe. BUT THE SETUP PROCESS IS STILL REDICULOUS!

    Anyway i still AM getting an errror. I followed your step by step numbered guide on page three. It fails on the privelidge step. I followed your instructions to the letter and cannot do anything to npcx because it says

    "1045 - Access denied for user "root"@localhost" (Using Password: NO)"

    I've uninstalled this. And the other programs. It's too complicated! Just make it a simple JAR file like every other plugin!

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

    PsychoNecrosis

    First off.

    EDIT BUTTON, MAN
    IT'S THERE FOR A REASON.

    Second; this plugin simply won't work as a simple jar file, it needs a MySQL backend unless you want it to horribly lag your server. And I do mean horribly.

    This is what's breaking it, somewhere along the line you've messed up; the plugin needs to log in with the user npcx, not root.

    Not that it matters; in your impatient rage you've stopped using it, so there's no point even offering you support.

    As I don't want to see another thread derailed with HURF DURF HOW TO SQL, I'll probably roll out some sort of guide over the weekend. With pretty pictures.
     
  13. Offline

    Bronski

    I installed WAMP on Vista 64 and it was much easier than I was expecting it to be. I think there are already some tips/guides on installing (possibly on the Bukkit forums).
     
  14. Offline

    DrBowe

    Is anyone else experiencing issues with trigger words? I can't seem to get NPCs to have thier trigger words successfully.
     
  15. Offline

    PsychoNecrosis

    are you using iConomy 5?
     
  16. Offline

    DrBowe

    Yes. I'm assuming that's the problem?
     
  17. Offline

    PsychoNecrosis

    Actually no, it's only a problem if you -aren't- using it.
     
  18. Offline

    DrBowe

    Odd. I'll double check to make sure I have iConomy 5. I'm assuming triggerwords are working just fine for you?
     
  19. Offline

    PsychoNecrosis

    Yeah they are, I was having trouble with them before updating my iConomy, but once I did that it was fixed.
     
  20. Offline

    Nitnelave

    I found a problem with the pathgroups. I have a few guards patrolling on a L-shaped road, and eventually they all get stuck after a few back-and-forths, when they're going North. The pathfinding algorithm seems weird, as the paths are just straight lines (descending a few block toward the extremities), but the NPCs get off the road or zigzag (especially when they get stuck, they zigzag along an invisible line they can't cross... but not the same line for each of them).
    Well, if I haven't made any sense (which is probable) just tell me and I'll try to explain it after a good night's sleep, not at 2AM :p

    road (open)

    N
    W E
    S

    [chest]
    ||
    ||
    ||
    [diamond] = = = = [chest]

    They go from chest to chest, through the diamond. They get stuck going up...
     
  21. Offline

    wizjany

    Pathing and movement suck. I am still looking for a good way to implement a better method in my rewrite.
     
  22. Offline

    TheSpillmonkey

    I helped mixxit with his testing before he went awol. Ill jump on irc.
    Glad to see someone picked it up :)
     
  23. Offline

    DrBowe

    That was the issue. Not sure how iConomy was an old version, since Multiverse wouldnt have been working if it was, but oh well. Such is life.
     
  24. Offline

    Mrono

    I really hope your re-write fixes a lot of stuff.
    -commands (really convoluted, how the hell do I delete an NPC, or remove an NPC from a spawn group, or rename an npc)
    -events (EVENT_CLOSE only works the first time you get close to an NPC)
    -dependencies
     
  25. Offline

    fullwall

    @wizjany - A*/Dijkstra for pathing.
     
  26. Offline

    PsychoNecrosis

    Oh god, not Dijkstra's Algorithm

    FIRST YEAR UNIVERSITY FLASHBACK

    Edit the database. :p Although you can delete npcs with a command..somewhere.

    Glad to help :)
     
  27. Offline

    nathanaelps

    So I've started pushing together some php for a web frontend... barely started, but... is it possible to force npcx to reload the tables?

    (Yes, I am aware that everything will change before it's done. And I'm quite satisfied and pleased with that fact. I've got a nasty taste in my mouth from trying to chew through the connections in the table. Nasty.)

    And, now for feature requests ('cause I can't seem to find any other place to do this:)

    1) Fractional prices. "I'd like to sell a Cobblestone for .01 coin, please."

    2) Stack prices. "Sorry, bud. I don't buy solitares. Come back when you have 4 diamonds to sell."

    3) Infinite stock. "Hey, bud, I ain't gonna ask why you need eighteen thousand blocks of glass and a sheep on a night like tonight. If you got the cash, I got the goods."

    4) And perhaps the most difficult: a chest sales interface. Open it up, switch what you want for what you don't, close it. Go on your merry way.
    Without having to put up with one of my annoying merchants' bad accents.

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

    wizjany

    I'll look into it
    xD 1-3 are planned, not exactly sure what you mean by 4 but i think i've got it planned too
    no clue
     
  29. Offline

    Nitnelave

    I think what he meant is a shop like RealShop, for the interface
     
  30. Offline

    wizjany

    Oh, ok. But like, npc inventories, not chests...
     
  31. Offline

    darkm3tr01d

    #3 is alread in /npcx merchant category [merchant number] nolimit

    i honestly don't know any other categories for anything cause there not listed anywhere,
    I don't even know how i know that one
     

Share This Page