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

    blutherz

    Thank you i had delted all from Endian, now is only the bug left that i must after server reboot first disable uqest and NPCQuester then enable uQuest and NPCQuester to get BOSEeconomy in uQuest enabeld.
     
  3. Offline

    ledodreadlow

    Only one issue I have, otherwise, works awesome. When I do a server restart or /reload, it somehow resets the "onlyonce" feature. I can do the quest over again. I checked the players.yml and I am still listed as having completed this quest already, yet NPC-Quester doesn't reread the file after a reload. Otherwise it works perfectly until I restart the server.

    Also, I don't know if this is an NPC-Quester issue or a Citizens one. Whenever a player right-clicks an npc for the first time, it displays the NPC name and ID #. Everything works as usual though. Just hate the fact that other players get that message when they right-click the NPC. I went on thevoid server to see your NPC's. They don't display the message upon a right-click, only the quest information, which is how I would like it to work.

    I further noticed on your server that you can right-click an NPC twice to receive the quest. am pretty sure I have the latest version 2.2.3 installed and yet each player still has to type /npcq accept. I'd prefer just another right-click. Is this for a future version? Or do I have the wrong version?

    Thanks for an incredible plugin. Nice server too :)
     
  4. Offline

    Randy Schouten



    I'll look into the reset of the "onlyonce" value, thanks for telling me.

    To stop making the "Selected npc" stuff, you have to set a item to select NPCs in your citizens config.
    On my server, it's a book, and well... who has a book :p
    Yes, this is built on the current version of uQuest.
    If something is wrong with the actual qeusts, it's uQuest. I haven't had any problems with the current version though.
    In any case, I'm creating my own quest plugin which will have several more features, some that I included in this plugin. For example, quest chains will be a standard feature of my quest plugin.

    uQuest doesn't have this option I'm afraid...
    As I also said to Kevin (above this quote), I'm creating my own quest plugin and it'll include a "moveto" quest type as well.
    That's basically what you need, if I understand correctly.
     
  5. Offline

    1born2kill

    Something went wrong, as I was using this plugin + uQuest + Citizens couple days ago and Everything was working fine, uQuest was working then, but this morning when I go to restart the server, get this.

    Code:
    2011-06-25 08:02:32 [SEVERE] Error occurred while enabling uQuest v1.5 (Is it up to date?): null
    java.lang.NullPointerException
        at hawox.uquest.questclasses.QuestLoader.getYamlQuestFromHashMap(QuestLoader.java:290)
        at hawox.uquest.questclasses.QuestLoader.loadAllQuests(QuestLoader.java:125)
        at hawox.uquest.UQuest.theQuestsLoadAllIntoArray(UQuest.java:360)
        at hawox.uquest.UQuest.onEnable(UQuest.java:160)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:125)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:799)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:253)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:140)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:118)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:232)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:219)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:146)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Tyvm for reply!
     
  6. Offline

    Randy Schouten

    Well, this isn't something wrong in my plugin.
    But it seems as it can't load "Rewards" somewhere, if I saw it correctly in the source code of uQuest.
     
  7. Offline

    1born2kill

    hm I did Mess Around with the Rewards... I guess I should just revert to the default 53 quests? or go 1 by 1?
     
  8. Offline

    Randy Schouten

    I suppose you can try it with the default quests file.
    If that works, something is wrong with your own quests file I guess :p
     
  9. Offline

    Cooliosperosous

    I can't download uQuest, it seems the link is broken. Could you post a direct download to the .jar file?
     
  10. Offline

    Randy Schouten

  11. Offline

    lexon

    Just FYI

    specific:
    ExampleSpecific:
    iteminhand:
    amount: 1
    item: 1
    active: false
    consume: false
    thisNPConly: 'true'
    quest:
    chain:
    quests: 4,1,7
    active: 'true'
    normal: 1
    onlyonce: true
    testerguy:
    iteminhand:
    amount: 1
    item: 1
    active: false
    consume: false
    thisNPConly: 'true'
    onlyonce: true
    quest:
    chain:
    quests: 0,0,0
    active: false
    normal: 14

    The run only once doesnt seem to work,
    when I add a quest using the commands,
    the run only once flag is put before the quest,
    in the example its placed after the quest ??

    Edit: runonce sems to work if you place it manually like in the example (dont use commands)

    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:128)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:287)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:712)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:678)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:671)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
    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)
    Caused by: java.lang.NullPointerException
    at randy.npcq.npcq.onCommand(npcq.java:766)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    ... 12 more

    this happens when you do /npcq decline
    also /npcq ? causes all kinds of errors

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

    MIK_1st

    Is there a way a player can check his current quests? Say he dc's after accepting one, comes back an hour later, and forgets which quest he was doing.
     
  13. Offline

    ledodreadlow

    Use the uQuest command /q info. I've only used these three permissions for everyone:

    - uQuest.CanDropQuest <------ For access to dropping quests (/q drop)
    - uQuest.CanQuest.info <------ For access to quest information (/q info)
    - uQuest.CanQuest.stats <------ For access to player stats (/q stats)

    This way they cannot finish a quest unless they go back to the quest giver npc to finish the quest. But they can view quest info and stats with ONLY these permissions given. Plus I added that they can drop quests at a price. Hope that helps!
     
  14. Offline

    Randy Schouten

    Thank you for reacting on his question ;)
     
  15. Offline

    dzekins

    for some reason NPCS dosnt show up, it seems like everything works fine just i cant see them
     
  16. Offline

    Randy Schouten

    Well I think I can't fix that.
    If there's no NPC, it's something with Citizens, sorry :/
    You can explain what you do tho, I might know it.
     
  17. Offline

    dzekins

    i try everything /npcq add test random . it says that its aded and like that but i dont see anyone, tryd /npcq add name quest id true/false thingy it says thats it s added but notthing works, not even after reload or server restart just cant see them, and i check the log file dont see any eror
     
  18. Offline

    Randy Schouten

    You must create the NPC with the Citizens plugin first ;)
     
  19. Offline

    dzekins

    oh thank you lol
     
  20. Offline

    BioRage

    Did uQuest get shoved to in-active?
     
  21. Offline

    Randy Schouten

    Yes.

    I am creating my own quest plugin now too. :)
    I'm going to post a new thread in the "WIP" section of "Plugin Development" so people can keep track of it.
    I've got groups, kill quests, quest log (more quests at the same time) and rewards fully functional atm.
     
  22. Offline

    haxxorzd00d

    Excellent work on the plugin so far, and good to hear you're working on your own quest plugin since uQuest is inactive. :)

    One feature I'd like is the ability to carry a chain quest between multiple NPCs. I know currently we can give a single NPC a chain quest, but I'd like players to only be able to accept certain quests when they've completed previous ones (which are given by different NPCs), like Craftizens used to do when that was still around. Maybe I can already do this and I'm just doing it wrong, but if not then do you think it would be possible to add something like this? Thanks, keep up the good work!
     
  23. Offline

    Randy Schouten

    Excellent idea.
    When I learn how to create an API, I'll to implement this.

    http://forums.bukkit.org/threads/rpg-epicquest-v0-1-the-brand-new-ultimate-quest-plugin-935.23427/

    The very first version of EpicQuest has been released, check it out and watch the thread to follow it's progression :D

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

    BioRage

    Great! Post a link in the OP when you can!
     
  25. Offline

    Randy Schouten

    Theres a link to it above your post. :p
     
  26. Offline

    Lynet ArchAngel

    Okey i already asked u on ur "wall"
    but il ask it here to
    i got this installed:
    Npc-Quester|uQuest|Civilians|GroupManager|Craftbukkit860
    And i cant get the npc-quester commands to show up. but everything else works fine, like how u create a normal npc, and how u use only uQuest works fine but not the Npc-Quester o.0
    using the latest versions of all those plugins, maybe i need to update craftbukkit to 935?
    or?

    Edit: Just installed 935, but just wonder if u got any clue, havent tested it on 935 yet
     
  27. Offline

    some1

    got a little problem here
    besides that great plugin :D
     
  28. Offline

    Randy Schouten

    Are you using the command thru the console?
    That doesn't work.
     
  29. Offline

    some1

    no, do i have to?
     
  30. Offline

    Randy Schouten

    You have to use the commands in game.
    Do you have any colors in your name?
     
  31. Offline

    some1

    yes i am red becouse i am admin
     

Share This Page