NpcSpawner lib - spawn basic NPCs

Discussion in 'Resources' started by Redecouverte, Feb 3, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    KaiBB

    I got confused and uploaded the example project into Eclipse to look at. It's full of errors I don't know how to fix, so I'm stuck. Can somebody help? :(
     
  2. Offline

    Top_Cat

    Example project?
     
  3. Offline

    KaiBB

    There's a downloadable "example plugin"...
     
  4. Offline

    Top_Cat

    No there really isn't... link?
     
  5. Offline

    KaiBB

    It's on the bottom of the post.

    I'll give you a link anyway:
    http://forums.bukkit.org/attachments/example_plugin_v2-zip.734/

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

    Top_Cat

  7. Offline

    KaiBB

    Thank you so much! That was driving me insane, because I had no idea what was wrong with everything :eek:
     
  8. Offline

    orange451

    Make and progress on the server error, @Top_Cat ?
     
  9. Offline

    Top_Cat

    Here's my response, from what I can see of my code that error is impossible to get. It stems from a null entity being added to the world. The entities I add cannot be null because one of their methods is run prior to being added.

    Furthermore I cannot see your code and how you have changed/used this code and cannot follow this issue further without.
     
  10. Offline

    orange451

    I already gave you my code, the first time you asked for it.
     
  11. Offline

    Top_Cat

    That link doesn't look up to date :/
     
  12. Offline

    orange451

    Just tried it, works fine.
    [EDIT]
    if you mean, the code is old, that's correct. Just replace the current plugin with your current NPCspawner library.
     
  13. Offline

    Lolmewn Retired Staff

    This fixed yet? If not, please do :)
     
  14. Offline

    fullwall

    @Lolmewn - not sure if Top_Cat's lib works around the Bukkit changes that cause this.
     
  15. Offline

    Lolmewn Retired Staff

    I sure hope so.
    I obviously want to make a lot of NPC's of myself ^^
     
  16. Offline

    Jacob Marshall

    Wow, thanks for this. This is really helpful.

    *Cookies for you*
     
  17. Offline

    Lolmewn Retired Staff

    Hrm, I downloaded the latest source from git but for some reason it gives errors. (At spout imports)
    I have spout, I use Maven, tried force updating the dependencies but it didn't fix it.
    How can I fix it?
     
  18. Offline

    Top_Cat

    Sure you're using spoutplugin not spoutpluginapi?
     
  19. Offline

    Lolmewn Retired Staff

    Ah, that did it :)
    Thanks.
     
  20. Offline

    Tauryuu

    Would anyone be nice enough to write a basic tutorial about how to spawn, check right clicks, and remove the npc? :3
     
  21. Offline

    Trc202

    Saw your latest update for 1.1 on npc lib. Imported it into eclipse, update my craftbukkit version to 1772 and received a message saying that public int b() in NPCNetHandler is not overriding anything. Anything i'm doing wrong here? Edit: Looks Like
    Code:
    pubic int b()
    is now called
    Code:
    lowPriorityCount()
     
  22. Offline

    Lolmewn Retired Staff

    The original creator of this thread isn't updating it anymore, is he?
    I might put out a tutorial soon, once there's a 1.1 version for this (or I must have missed something and there's already one) and once my test week is over.
     
  23. Offline

    Top_Cat

    If you know the change, y u no submit PR?

    I often update spout before I get to this so I'm a little slow and it makes things faster if people help.
     
  24. Offline

    jeremytrains

    Top_Cat I cant figure out how to use the pathFindTo() method. Could you show me a quick example? I dont know how to use the PathReturn class.
     
  25. Offline

    AbeJ

    How could I make an NPC path to an entity and attack it?
     
  26. Offline

    Oblivion165

    Wondering if you could help me here ;)

    I imported the sprout API but I seem to be missing a step because there are lots of errors. Any help?

    Errors.png
     
  27. Offline

    Top_Cat

    Not sprout, spout. You need to import craftbukkit.

    To use pathfinding all you need to do:
    npc.walkTo(someLocation);

    If you look at the code of that method it examples how to use pathFindTo to cache paths

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

    Oblivion165

    Ah thank you very much; works like a charm now ;)

    Great work and sorry about the typo.
     
  29. Offline

    Aetherspawn

    There doesn't seem to be a download link :(
     
  30. Offline

    AbeJ

    I understand that, I just need to know how to force an NPC to target and attack a player, like a monster.
     
Thread Status:
Not open for further replies.

Share This Page