Inactive [RPG] NPC-Quester v2.3.1 - Make NPCs give quests (links uQuest/EpicQuest and Citizens) [1000]

Discussion in 'Inactive/Unsupported Plugins' started by Randy Schouten, Jun 9, 2011.

  1. Offline

    Randy Schouten

    NPC-Quester - Make NPCs give quests!
    Version: 2.3.1

    If you ever wanted a plugin that would make your NPCs give out quests, this is the plugin for you.
    Lots of features to be added, so keep on the lookout!

    Features:
    • uQuest:
      • NPCs give random quests
      • Specified NPCs give out a specific quest and restricted those quests if wanted
      • If wanted, make players have a specified item in their hand with a specified amount, and if you want it, take it from them too
      • Quest chains!
      • Make NPCs give out the quest only once
    • EpicQuest:
      • Give solo quests
      • Give group quests
    How to install: (read carefully!)


    First off, required plugins:
    uQuest or EpicQuest (quests)
    Citizens (NPCs)
    Permissions (commands, not neccesary but nice to have)

    uQuest:
    Now, to give your NPCs quests, use the ingame commands to make your NPCs quests!​
    You can also copy paste one of the examples and type your own settings there if you find that easier too.​

    EpicQuest:
    Use in-game commands to add NPCs or change the config​

    Names are case sensitive!

    When you are done adding your questers, /reload your server to load them.

    Download:

    For uQuest (not iQuest!): RAR, ZIP
    For EpicQuest: RAR, ZIP

    How to use:
    To get a quest, right click a NPC who is in the config file.

    Commands with uQuest:
    Code:
    /npcq help [page], shows commands.
    There's too much commands to type here, so just use the help command to see them all.
    Reload command removed for now, it doesn't work
    Permissions with uQuest:
    Code:
    npcq.add
    npcq.edit - Normal quest editing
    npcq.remove - Normal quest removing
    npcq.item - Quest giver item editing and removing
    npcq.chain - Chain quest adding, removing and editing
    npcq.help - Shows all commands in-game
    Commands with EpicQuest:
    Code:
    /npcq help - Shows commands.
    /npcq add solo/group/turnin [npc name] - Add a quester
    /npcq remove [npc name] - Remove a quester
    Permissions with EpicQuest:
    Code:
    npcq.add - Add questers
    npcq.remove - Remove questers
    npcq.help - Show all commands in-game
    Todo:
    • Option to restrict random quest givers to NOT give out specified quests (Planned for next version)
    • Quest chains
    • Get quests only once
    • Right click a NPC twice to get a quest, see q info on first click
    • Automatic quest amount counting (Planned for next version)
    • Need a certain quest level before able to get quests from certain NPCs
    • Command to add random quest givers (Planned for next version)
    • Show quest status instead of "You already have a quest" when you hit a quest giver (Planned for next version)
    • Complete quest on hitting the npc (Planned for next version)
    • Possible quest fees
    • Complete quests only once then disable them for that player
    • Suggestions always welcome!
    Changelog:


    • v2.3.1
      • Fixed the remove command for EpicQuest
      • Added another NPC type: "turnin"
      • ^Right click that NPC to turn in quests
    • v2.3
      • Added EpicQuest support! (There's a second download now for that.)
    -------------------------------------------------------------------------------------------------------------------------
    From here will only be EpicQuest updates, not uQuest
    • v2.2.5
      • Again, fixed to work with newest Citizens (stop changing hooks T_T)
    • v2.2.4
      • Bug fix:
        • Now works with newest Citizens version
    • v2.2.3
      • Bug fix:
        • The add command now adds the newest feature (this bug caused the plugin to read the config in a wrong way. Sorry!)
    • v2.2.2
      • Bug fix:
        • Chain quests now work properly with the new "onlyonce" feature
    • v2.2.1
      • Bug fix:
        • Quests should be given out properly now with the new features
    • v2.2
      • New additions:
        • Automatic quest counting
        • Option to have NPCs give out a quest only once
        • See the quest, then type a command to accept or decline it
      • Changes:
        • Added what item you need to have in your hand if you don't have the correct one
        • Permission nodes or items are merged
      • And some other stuff I can't remember, including changes and bugfixes (nothing major)
    • v2.1
      • New additions:
        • Commands to change quest chains
      • Changes:
        • Changed all commands to be compatible with v2.x.x and higher
        • Changed the help pages a little, /help shows categories with pages now
    • v2.0.4
      • Bug fix
        • Fixed quest chains not giving out properly if "iteminhand active = false" or "iteminhand consume = false"
    • v2.0.3
      • Bug fix:
        • Fixed the issue of "iteminhand active = true" and "iteminhand consume = false" resulting in not giving a quest
    • v2.0.2
      • Bug fix:
        • Fixed quests not giving out of the NPC had a colored name (This was the bug that bothered several users.)
    • v2.0.1
      • Bug fix:
        • Fixed quest progress saving possibly not saving correctly with multiple users
    • v2.0
      • New addition:
        • Chain quests!
        • Plugin remembers where you were in your chain quest, so you don't have to do it over ;)
      • Bug fixes:
        • Random stuff I can't remember
        • This includes NPCs not giving quests
    • v1.3.1b
      • Bug fixes:
        • Fixed some texts on [false/true] commands not displaying correctly
        • Fixed default config not working
        • Fixed a player not being able to turn in a quest if item consume and active are false
        • Fixed sending the player a message with all the configs for all NPCs
      • Changes:
        • Changed overall file handling, it's a lot more error resistant now
    • v1.3.1a
      • Bug fix:
        • Fixed config not read properly
        • Changes:
        • Improved check to see if a branch is empty
    • v1.3.1
      • Bug fixes:
        • Fixed commands not adding questers correctly with new format
        • Fixed random questers not working properly
    • v1.3
      • New additions:
        • Added the ability that you need a specific item in your hand to get a quest
        • Added the ability to consume that specific item
        • Added the ability to consume a certain amount of that item
        • If you right click the NPC you got the quest from and you completed the objectives, the quest is turned in
        • Shows the amount of objectives finished if you didn't complete a quest and hit the NPC you got the quest from
        • Added a check to see if a branch is empty, so there won't be errors if you have one empty
        • Added lots of commands
      • Bug fixes:
        • Fixed the commands from the previous version(s)
        • Fixed /help giving an error, now shows first page
        • Fixed NPCs saying "derp" when asking for a quest
        • Changes:
        • Help pages are now in categories
    • v1.2.1
      • New addition:
        • Compatible with 860
    • v1.2
      • Bug fixes:
        • Commands are now (hopefully) fully fixed
        • Fixed all NPCs giving quests
        • Stopped my plugin from ruining uQuest's quests.yml file (sorry!)
      • Changes:
        • Removed the /npcq reload command, it doesn't work as of now
    • v1.1
      • New additions:
        • Extra commands
        • Ability to have specific quests private or not
      • Bug fixes:
        • Fixed the /remove command
      • Changes:
        • /help now has 2 pages. So instead of "/help", type "/help 1" or "/help 2"
    • v1.0
      • Initial release
    Big thanks to the creators of:
    uQuest (http://forums.bukkit.org/threads/rp...st-and-citizens-860.20677/page-14#post-402289)
    Citizens
     
  2. Offline

    Randy Schouten

    Thank you for saying!
    Fixed it and it will be in the next update.
     
  3. Offline

    nspthegreat

    hmm is uquest 860 ready??? Or is that not really of concern?
     
  4. Offline

    Randy Schouten

    uQuest works for me, so I can just create this plugin.
    I've read there are some difficulties tho.

    You can just try I suppose.
     
  5. I got an error:
    Code:
    org.bukkit.command.CommandException: Unhandled exception executing command 'npcq
    ' in plugin NPCQuester v1.2
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:12
    8)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:2
    81)
            at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.
    java:718)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:684)
    
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:677)
            at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:217)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:401)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:311)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
            at randy.npcq.npcq.onCommand(npcq.java:364)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 12 more
     
  6. Offline

    Randy Schouten

    I see you got this error when you typed a command.
    What command exactly?
    Please give me both the command as seen in /help 1 or 2, and how you typed it.
     
  7. Offline

    DJ_Idol

    I have one question before I add this EXCELLENT plugin, if this plugin is running, are users still allows to use the /uquest give command to get a quest through uQuest without using an NPC? If so, is there a way to stop that? I want my players to ONLY be able to get quests through NPC's.
     
  8. Offline

    Randy Schouten

    If you don't want people to use the "/q give" command, just remove it from the permissions ;)
    I think the permission node is "uquest.canquest.give".
     
  9. i typed /npcq help

    /help 1&2 - nothing special, default commands
     
  10. Offline

    Randy Schouten

    Ah that.
    That is fixed in the next version.

    If everything goes right, it should be ready in a little bit.
     
  11. Offline

    symrex

    This is a very nice Plugin, Thx.
    But can you make a Video-Tutorial?
    Thx.
     
  12. Offline

    Randy Schouten

    Well yeah, it can get complicated from the next update.
    I shall make a tutorial after the next update, which will be the update with quest chains.
    I'll explain how everything works and how to give it an RPG feeling then too.

    For the next update, I will try to explain it as good as I can.
     
  13. Offline

    xlilcasper

    Random quests from a list would be nice. Say a config file you could put in
    Code:
    Trader: 15 16 23 25
    
    and then instead of /npcq add [npc name] [quest number] you could do /npcq add [npc name] [quest group name] and a random quest from that list would be picked. This is also how you could do the chain quests. Same setup but instead of random it would go 15, then to 16, ect...
     
  14. Offline

    Izbay

    I keep getting 'derp derp2' when I right click my npcs... Using the default quest set for uquest. I've tried 52 and 53 (including 0 in the count), and I've tried naming the npc (Uweh) both with and without the &a for his name color. x_x I hope I can get it to work!
     
  15. Offline

    Randy Schouten

    That's a pretty good idea, I'll put it on my todo list.
    I do already have another idea on how to do chain quests tho, thanks for the idea :D

    Yeah sorry, I forgot to remove that in my previous version, please wait a little bit more, the update should almost be done!

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

    Izbay

    Alrighty. Thanks for the awesome plugin! I've been wanting this forever!
     
  17. I'll defiantly be making a video showcasing the features once my team and I have the intro section of our RPG world completed. I'll post the link here if you like. Just some free publicity for this awesome plugin :D
     
  18. Offline

    Randy Schouten

    Awesome!

    Also, keep close track of this thread now!
    There's only one small bug to squash and I release the update!
     
  19. Offline

    Legolas75893

    So this REQUIRES Citizens?
     
  20. Offline

    Randy Schouten

    Yes.
    That is kind of the idea of this plugin, to link uQuest and Citizens.

    I think you want some of the future features implemented into uQuest itself, correct?
     
  21. Offline

    Legolas75893

    That too, but I was just asking. :D thanks for the quick response.
     
  22. Offline

    Randy Schouten

    No problemo :)

    Bugs sorted out, now adding some last checks to prevent errors if either "specific" or "random" in the config is empty.

    Uploaded the update!

    I'll write the new tutorial and all that now, but you can get it and see if you understand it like this as well.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  23. got same error:
    Code:
    01:51:12 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'npcq
    ' in plugin NPCQuester v1.2
    &
    Code:
    01:53:01 [SEVERE] Could not pass event ENTITY_TARGET to Citizens
    java.lang.NullPointerException
     
  24. Offline

    Randy Schouten

    When did you get those errors?
    I also forgot to change the version number in the plugin, uploading a fix with that in a bit (no plugin changes).

    EDIT: Uploaded with proper plugin version.
     
  25. when i type /npcq add ....
     
  26. Offline

    Randy Schouten

    I mean the full command.

    For example: "/npcq add Randomguy 4 true" to add Randomguy with quest 4 and make Randomguy the only one with quest 4
     
  27. also have trouble with "/npcq add Randomguy 4 true" :S
     
  28. Offline

    Randy Schouten

    Are you using the new config setup?
    I've changed a few things ;)
     
  29. Offline

    Randy Schouten

    Could you give me a bit more detailed error?
    Give me the whole thing.
     
  30. Code:
    02:16:44 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'npcq
    ' in plugin NPCQuester v1.3
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:12
    8)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:2
    81)
            at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.
    java:718)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:684)
    
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:677)
            at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:217)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:401)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:311)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NoClassDefFoundError: com/nijiko/permissions/PermissionHand
    ler
            at randy.npcq.npcq.onCommand(npcq.java:530)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 12 more
    >
    this requires Permissions.jar?
     

Share This Page