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

    Okay, first try removing the uquest folder. (make sure to back it up)
    If that doesn't work, can you give me the error message, and when it occurs?
     
  3. when i remove the u quest folder i get
    2011-06-11 15:45:59 [SEVERE] Could not pass event ENTITY_TARGET to Citizens
    java.lang.NullPointerException
    at com.fullwall.Citizens.NPCTypes.Questers.QuesterNPC.onRightClick(QuesterNPC.java:99)
    at com.fullwall.Citizens.Listeners.EntityListen.onEntityTarget(EntityListen.java:116)
    at org.bukkit.plugin.java.JavaPluginLoader$56.execute(JavaPluginLoader.java:633)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
    at com.fullwall.resources.redecouverte.NPClib.CraftNPC.a(CraftNPC.java:51)
    at net.minecraft.server.EntityHuman.c(EntityHuman.java:485)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:859)
    at net.minecraft.server.Packet7UseEntity.a(SourceFile:33)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    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:399)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)

    With the u quest folder still in plugins i get no errors getting errors with folder in aswell now

    java.lang.NullPointerException
    at com.fullwall.Citizens.NPCTypes.Questers.QuesterNPC.onRightClick(QuesterNPC.java:99)
    at com.fullwall.Citizens.Listeners.EntityListen.onEntityTarget(EntityListen.java:116)
    at org.bukkit.plugin.java.JavaPluginLoader$56.execute(JavaPluginLoader.java:633)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
    at com.fullwall.resources.redecouverte.NPClib.CraftNPC.a(CraftNPC.java:51)
    at net.minecraft.server.EntityHuman.c(EntityHuman.java:485)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:859)
    at net.minecraft.server.Packet7UseEntity.a(SourceFile:33)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    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:399)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)

    looks to me like a citizens error but a guess

    hope this helps

    thanks
     
  4. Offline

    Randy Schouten

    Do you have the latest version of Citizens and uQuest?
     
  5. i have updated all plugins
    uquest 1.5
    Citizens 1.0.8g
    bukkit 860
    (removed all and downloaded fresh)
    no errors just nothing happense
    i am OP

    Thanks alot again :D
     
  6. Offline

    Randy Schouten

    Can you show me your config file?
     
  7. specific:
    bob:
    thisNPConly: 'true'
    quest: 1
    Example:
    onlythisnpc: true
    quest: 0
    random:
    Example: 0

    one thing I have noticed is that the NPC all seam to repair my stuff when right clicking them dono if that's stopping it
     
  8. Offline

    Randy Schouten

    You removed "amount" from your config file.

    From the first post:
    Open up your quests file (plugins/uQuest/Quests.yml) and insert the last quest number into the NPC-Quester config.

    So your config would look like this

    Code:
    amount: x
    specific:
        bob:
            thisNPConly: 'true'
            quest: 1
    random:
        Example: 0
    
    The names in the config are also case sensitive, so you must type the exact name.
     
  9. Offline

    wouter0100

    I have the same problem, but i have that Amount set on 52 (How many quest uquest have) but i get the same error.
     
  10. Done and still the same starting to think its me :(

    was working beter on the old bukkit version

    Sorry should have checked that bit :p
     
  11. Offline

    Randy Schouten

  12. Offline

    wouter0100

    I already use the WIP version,,.
     
  13. yep still no joy i realy think this is due to the buckit upgrade i could get quest from the npc on bukkit 818 but not with 860

    Thanks again
     
  14. Offline

    Randy Schouten

    The weird thing is, is that I'm running my own server, where they do work.

    I'll send both of you a link with my full server setup.

    EDIT: Convorsation started
     
  15. Offline

    aPunch

    If it is a left-clicking issue it is due to a change in CraftBukkit. If PvP is set to false in server.properties, the damage event if not called and therefore any left-clicking is ignored.
     
  16. Offline

    Randy Schouten



    That makes sense...
    I have PvP enabled, and the event called is "onDamage".
    I thank you alot.

    I haven't found this change in the changelog of bukkit tho.
    I found that an event doesn't fire twice now when 2 players hit each other, but not that it's removed...
    Ah well, thank you for the heads up once again.

    EDIT: But then again, I'm running bukkit 860 on my server, and my plugin still works.
    So this is kind of weird...
     
  17. I turned PVP on and i still had no joy but that was only after a /reload will try with a full restart l8er dono if it will make a difference
     
  18. Offline

    aPunch

    The EntityDamageEvent was changed in that commit to not check if(!world.isPvpMode), meaning that it won't get called when pvp is turned off. The reason it works for you is because Pvp is likely turned on. From my experiences, at least, this seems to be the issue.
     
  19. Offline

    Randy Schouten

    Okay.
    Thank you for your time :)

    I'm working on getting another method out.

    You have to right click a NPC with a specified item then to get the quest.

    Update v1.2.1.
    It should be compatible with Bukkit 860 now.
    Instead of hitting the NPC, you will want to right click him.

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

  20. Cool thanks will look out for the update thanks for the help today
     
  21. Offline

    Randy Schouten

    I already updated the plugin :) (see previous post)
     
  22. saw after posted and have updated and it works

    wow thanks sooo much will do more test but so far so good

    Thanks soo much

    :D :D

    only thning is when u get quest he said derp derp :p

    but thats soooo cool
     
  23. Offline

    Randy Schouten

    Oh I didn't remove that? xD
    That was a check I made to see if it fired the event xD

    I'm currently writing a new feature, so it'll be removed then.
     
  24. Just wanted to say this plug-in is fantastic and exactly what I was looking for. Once you add the feature to end quests with the NPC and such it will be amazing. Is there any way to simply add lines of dialogue that are triggered in order when the player clicks the NPC (so my quest world can have a story) I'm finding it difficult to fit the story elements into short quest dialogue. Or is this something i should be reading the Citizens wiki for? :)

    Thanks again, keep up the awesome work sir.
     
  25. there is a way in citizens to make the NPC say stuff as you walk past, also the way the NPCs derp when hitting them i am sure that is possible but probably a different plugin at a guess
     
  26. Offline

    Randy Schouten

    Thank you.
    When the whole quest chain will come, I'll add the ability of giving them a lot of text.
     
  27. Fantastic. I'll get back to working on my RPG side-world with my team of builders ready for when you update.
    Again fantastic work :)
     
  28. Offline

    Randy Schouten

    Thank you for the kind words! Keeps me working hard :D
    I hope to have an update out in a few days with lots of new features!
    One that's almost done is that you can configure if you need a specific item in your hand to interact with the NPC, and consuming it if you want to as well. This can be done with ANY npc, so it's not a global item and setting for every npc in the world. :)

    In that update, I'll hopefully also have the quest chain ready, I think I already know how to do it, so it shouldn't be a huge problem.

    EDIT: The item part I was talking about is now working on specific NPC's.
     
  29. Thanks for the hard work much appreciated buy me and my server
    look forward to update
     
  30. Offline

    Randy Schouten

    I am also looking forward to it (sounds stupid I know), but I always feel happy when I get an update out and see the good comments :D
     
  31. Offline

    Grotznak

    /help without an number throws an error
     

Share This Page