[RPG/FUN] qQuests - The simplest questing plugin since uQuest! [CB 1.6.2-R0.1]

Discussion in 'Archived: Plugin Releases' started by quaz3l, Jan 7, 2012.

  1. Offline

    stickmenz

    This is how my yml is set up (yes I updated the plugin). Dosn't work. I am unable to "/quest give BWF" and if I try "/quest give" it gives me a quest "null" which dosn't have any data/info.

    Code:
    # To create your own quests either follow the steps on:
    # http://dev.bukkit.org/server-mods/quests/pages/quests-yml/
    # or just copy a current quest and use the vars and common sense to
    # decrypt the YAML.
     
    BWF:
      setup:
        repeated: -1
        invisible: false
        nextQuest: 'SpiderQueen'
      tasks:
        '0':
          type: kill
          name: Spider
          display: Spiders
          amount: 10
      onJoin:
        message: Enter the Black Web Fortress and kill 100 spiders!
      onDrop:
        message: You are a coward.
      onComplete:
        message: You have vanquished 100 spiders!
        market:
          money: 500
    SpiderQueen:
      setup:
        repeated: -1
        invisible: true
      tasks:
        '0':
          type: damage
          id: 19
          name: Sponge
          display: SpiderQueen
          amount: 25
      onJoin:
        message: Attack the Spider Queen!
      onDrop:
        message: You are a coward.
        market:
          money: -500
      onComplete:
        message: You have completed the 1 player Death Dungeon quest!
        market:
          money: 500
     
  2. Offline

    quaz3l

    delete the tasks.0.name node, and for the BWF quest replace name with id
     
  3. Offline

    CovertHoax

    Hmmm havent really thought of it in all fairness..

    All I basically need from the plugin is..
    A chip that detects a player upon being given a input of power from redstone.
    This chip then has some effect on the quest or gives a output based on quest status.

    So all I thinks needed for basics is:
    /questgive <questnumberORname> (Gives player a quest)
    /questdrop <questnumberORname> (Removes a quest from a player)
    /questcheck <questnumberORname> <status> (Checks status eg active, complete, in progress.)
    /questinfo (Shows whats needed to complete quest)
    /questcomplete (tries to finish quest)

    So basically this could happen:
    You stand on a switch and redstone power travels to a chip.
    This detects the player and depending on the type of chip it then does whats needed.
    Firstly a player hits a switch on say a wall and the redstone powers a /questgive chip giving them the quest "gather wood" (/questgive gatherwood)
    If they don't want that quest they can hit a switch that drops the quest by running /questdrop chip (/questdrop gatherwood)
    However if they start the quest they walk to a tree and chop it down to gather some wood. they could possibly stand on a switch that then checks to see if they have enough wood and if so sets the quest to complete (/questcomplete gatherwood)
    If they dont have enough then it would return false so you could link it to a chip that shows what they are missing (/questinfo)
    Once the quest is complete by ether using switches or commands (ether way when he quest is done) you could have a door that when you hit a switch it checks to see if the quest is complete. If it is complete the redstone returns true and opens the door.. if it returns false the door stays closed.

    Theres loads more you could do with this, but thats the basics.. the videos on youtube kind of explain the basics of what I needed.

    You see me and my mods wanted to build a area on the server that you can only get to after completing a few quests. so we wanted doors that only open if a quest is complete. :p

    I hope its not going to bee too much hassle.. but it truly would be amazing to have working ^_^
     
  4. Offline

    quaz3l

    Alright this can be done it will just take time. A week or so...
     
  5. Offline

    CovertHoax

    Really??? that soon???
    Woah dude thats awesome :p
     
  6. Offline

    stickmenz

    Also the bugs I am getting are:

    says "type /q done to complete this quest" I believe this should be "type /quest done to complete this quest"

    And when I try to do /quest done, it states "You don't have enough money to get this quest" when I have a few million (as admin)

    Code:
    # ########################################################## #
    #                                                            #
    #                    ## Creating Quests ##                  #
    #                                                            #
    #              To create your own quests go to:            #
    # http://dev.bukkit.org/server-mods/quests/pages/quests-yml/ #
    #                                                            #
    #                  ## Special Characters ##                #
    #                                                            #
    #              To use special characters wrap the            #
    #              string in single or double quotes.            #
    #                                                            #
    # ########################################################## #
     
    BWF:
      setup:
        repeated: -1
        invisible: false
        delay: 1
        nextQuest: 'SpiderQueen'
      tasks:
        '0':
          type: kill
          id: Spider
          display: Spiders
          amount: 5
      onJoin:
        message: Kill 5 Spiders
        market:
          money: 0
          health: 0
          hunger: 0
      onDrop:
        message: Aww… fine… I'll go find someone else :(
        market:
          money: -50
          health: 0
          hunger: 0
      onComplete:
        message: Thanks! Now I can feed my lava dragon! ;)
        market:
          money: 500
          health: 0
          hunger: 0
     
    SpiderQueen:
      setup:
        repeated: -1
        invisible: false
        delay: 1
        nextQuest: ''
      tasks:
        '0':
          type: collect
          id: 264
          display: Diamond
          amount: 5
      onJoin:
        message: 2
        market:
          money: 0
          health: 0
          hunger: 0
      onDrop:
        message: 2
        market:
          money: -50
          health: 0
          hunger: 0
      onComplete:
        message: 2
        market:
          money: 500
          health: 0
          hunger: 0
    
     
  7. Offline

    quaz3l

    Try this:
    Code:
    # ########################################################## #
    #                                                            #
    #                    ## Creating Quests ##                  #
    #                                                            #
    #              To create your own quests go to:            #
    # http://dev.bukkit.org/server-mods/quests/pages/quests-yml/ #
    #                                                            #
    #                  ## Special Characters ##                #
    #                                                            #
    #              To use special characters wrap the            #
    #              string in single or double quotes.            #
    #                                                            #
    # ########################################################## #
     
    BWF:
      setup:
        repeated: -1
        invisible: false
        delay: 0
        nextQuest: 'SpiderQueen'
      tasks:
        '0':
          type: kill
          id: Spider
          display: Spiders
          amount: 5
      onJoin:
        message: Kill 5 Spiders
        market:
          money: 0
          health: 0
          hunger: 0
      onDrop:
        message: Aww… fine… I'll go find someone else :(
        market:
          money: -50
          health: 0
          hunger: 0
      onComplete:
        message: Thanks! Now I can feed my lava dragon! ;)
        market:
          money: 500
          health: 0
          hunger: 0
     
    SpiderQueen:
      setup:
        repeated: -1
        invisible: false
        delay: 0
        nextQuest: ''
      tasks:
        '0':
          type: collect
          id: 264
          display: Diamond
          amount: 5
      onJoin:
        message: 2
        market:
          money: 0
          health: 0
          hunger: 0
      onDrop:
        message: 2
        market:
          money: -50
          health: 0
          hunger: 0
      onComplete:
        message: 2
        market:
          money: 500
          health: 0
          hunger: 0
    
    Ehh it might take two... but it will be somewhere in that time-set.

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

    BulletUpTheAss

    I looked through a couple pages, pardon me if it's already been answered... But I recently installed qQuest and after making 5 quests to start out with, I tested it. At first the quests came up as null but this was fixed after updating the plugin to the latest build. But now I have the issue of quests giving the reward when you accept it instead of when you finnish it. Below is my quests.yml

    Code:
    # ########################################################## #
    #                                                            #
    #                    ## Creating Quests ##                  #
    #                                                            #
    #              To create your own quests go to:            #
    # http://dev.bukkit.org/server-mods/quests/pages/quests-yml/ #
    #                                                            #
    #                  ## Special Characters ##                #
    #                                                            #
    #              To use special characters wrap the            #
    #              string in single or double quotes.            #
    #                                                            #
    # ########################################################## #
     
    KillTheCows:
      setup:
        repeated: -1
        invisible: false
        delay: 1
        nextQuest: ''
      tasks:
        '0':
          type: kill
          id: cow
          display: Cow Butcher
          amount: 10
      onJoin:
        message: Damn that farmer and his cows! I've warned him several times to keep them off my land! Go kill 10 of them to show him whos boss!
        market:
          money: 0
          health: 0
          hunger: 0
      onDrop:
        message: Fine then you useless bastard, I'll do it myself! But I'll make sure you starve tonight!
        market:
          money: 0
          health: 0
          hunger: -20
      onComplete:
        message: Thank you for the help, that will show the farmer whos boss! Take this pickaxe as a reward, I won't be needing it.
        market:
          money: 0
          health: 0
          hunger: 0
          items:
          - 274 1
    CreeperSlayer:
      setup:
        repeated: -1
        invisible: false
        delay: 10
        nextQuest: ''
      tasks:
        '0':
          type: kill
          id: creeper
          display: Creeper Slayer
          amount: 15
      onJoin:
        message: Good day knight! I am Sir Reynolds. I need you to help the kingdom and slay 15 creepers. You will be rewarded handsomly!
        market:
          money: 0
          health: 0
          hunger: 0
      onDrop:
        message: Very well good knight, I will find another brave soul to take on the task.
        market:
          money: 0
          health: 0
          hunger: 0
      onComplete:
        message: Thank you knight! As I promised here is your reward.
        market:
          money: 0
          health: 0
          hunger: 0
          items:
          - 264 1
    ManTheCannons:
      setup:
        repeated: -1
        invisible: false
        delay: 30
        nextQuest: ''
      tasks:
        '0':
          type: collect
          id: 289
          display: Man the Cannons!
          amount: 25
      onJoin:
        message: Arr matey, we are in dire need of some gun powder. Could ye help me and my crew out and collect some for us? I'll reward you with some of our loot of course. 25 should do.
        market:
          money: 0
          health: 0
          hunger: 0
      onDrop:
        message: Fine then ye crow bait, feel the wrath of my sword!
        market:
          money: 0
          health: -10
          hunger: 0
      onComplete:
        message: Arr, thanks matey! Here be your reward.
        market:
          money: 0
          health: 0
          hunger: 0
          items:
          - 264 3
    MakingBread:
      setup:
        repeated: -1
        invisible: false
        delay: 60
        nextQuest: ''
      tasks:
        '0':
          type: damage
          id: 296
          display: Collet the Wheat
          amount: 15
        '1':
          type: collect
          id: 297
          display: Bake the Bread
          amount: 5
      onJoin:
        message: Please sir, I'm a poor peasant and I really could use some bread, I found this blue rock I have no use for that I can give you in exchange. But I'll need you to make the bread fresh!
        market:
          money: 0
          health: 0
          hunger: 0
      onDrop:
        message: The peasant robs and stabs you.
        market:
          money: 0
          health: -18
          hunger: 0
          items:
          - 264 -1
      onComplete:
        message: Thank you sir! I'll live another night!
        market:
          money: 0
          health: 0
          hunger: 0
          items:
          - 264 1
    GoldenApples:
      setup:
        repeated: -1
        invisible: false
        delay: 1
        nextQuest: ''
      tasks:
        '0':
          type: collect
          id: 266
          display: Collect the Gold
          amount: 4
        '1':
          type: collect
          id: 260
          display: Collect the Apple
          amount: 1
      onJoin:
        message: I have a secret crafting recipe for golden apples. If you'd like me to give you one then collect 4 gold ingots and 1 apple.
        market:
          money: 0
          health: 0
          hunger: 0
      onDrop:
        message: Your loss!
        market:
          money: 0
          health: 0
          hunger: 0
      onComplete:
        message: Here is your golden apple, enjoy!
        market:
          money: 0
          health: 0
          hunger: 0
          items:
          - 322 1
    
     
  9. Offline

    quaz3l

    Wow that is quite a severe oversite on my part thank you for telling me... I will push an update out tomorrow.
     
    CovertHoax likes this.
  10. Offline

    CovertHoax

    Hope you don't mind but I thought I would download your source and take a peek at it.

    I primarily code in C++ but have had a poke about in Java, PHP, Ruby and a few others. Wanted to have a look at the code and see how it all runs together, maybe then possibly even add in a few ideas on what could be added. Maybe help if I can.

    I don't want to give the wrong impression of trying to overrule your work or take it from you.. far from it in all honesty :p
    I think its a brilliant and simple plugin that works very well and I'm curious as to how its made. ^_^

    Hope that's okay...
     
  11. Offline

    BulletUpTheAss

    Sounds good, thanks!

    I played around with it a bit more and noticed it does not reward money (atleast not iConomy through Vault) before completeing the quest, however if it involves money as a reward you cannot turn it in. You get the message "You don't have enough money to get this quest!" when using /q done. It says this whether or not I have money (not that it should be trying to take money anyway lol). Quests involving item rewards do still give the reward on starting and not finnishing, however you can finnish the quest if you have the items and just not get a reward.

    I also noticed that taking hunger from a player does not work at all, I have a quest setup to subtract the hunger apon dropping the quest and it does not do it.

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

    Deathfromace


    I'm running into this as well with Vault and iConomy on my server. I completed the quest and it says I don't have enough money and I can drop the quest without any issue.

    I'm also taking the slightest bit of damage when I accept a task.
     
  13. Offline

    quaz3l

    Alright... I will look into these, I will fix them ASAP, because those are primary issues too. They will be in that same update today.

    That's perfectly fine with me! The code is open source for a reason ;) If you do add something I can defiantly give you credits, although I think you already will get credits for the red stone idea.

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

    atcshane

    Hi, I'd just like to add that I am also getting the same error as the others, that I don't have enough money to turn the quest in. I'm running your most current version on CB1.1R6, Boseconomy w/Vault.
     
  15. Offline

    quaz3l

    Ok fixed the money problem... I used getDisplayName() not getName()... Will push when I have fixed all the reported issues.
     
  16. Offline

    BulletUpTheAss

    Looking forward to the fix, thanks for the great work!
     
  17. Offline

    quaz3l

    Ok these are the things I've fixed:
    • Item rewards from onJoin being given onDrop and onComplete too.\
    • "Not enough to get this quest" error when one does /q done even though they have enough.
    • The nextQuest is not given after delay.
    I'm also currently working on:
    • Taking damage onJoin of a quest
    • Hunger rewards/fees
    If you have anything else you want to report go file a ticket hereor if your lazy post in this thread.

    UPDATE:
    • Fixed Taking damage onJoin of a quest
    • Fixed Hunger rewards/fees
    UPDATE2:
    • Checking for updates and pinging are thread safe.

    0.01.94Beta is pushed and available.

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

    BulletUpTheAss

    Thanks for the update, I tested some more. It stops giving the reward at the start now which is good. However I noticed still the hunger punnishment is not working if a player drops the quest. On top of this, I'm not sure if it is just the way the game works or if it's the mod but if I do a damage quest to collect wheat then it appears it does not recognize damaging the wheat to harvest it.

    I also noticed that if you try to abandon a quest (So far I've only noticed it on quests with multiple steps) it says "You don't have enough items to get this quest!".

    I have not yet tried the money quests yet as I am not stuck on this one that I cannot abandon so have no way of trying it.
     
  19. Offline

    quaz3l

    Try the upload on github, I fix the hunger. I will look at the other stuff soon, but I have to go to bed now.

    EDIT: I think the damage quest for wheat would need to be destroy because its such a short amount of damage.

    Try abandoning the quest with no items in you inventory, tell me if that works.

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

    BulletUpTheAss

    I tried the one from github, hunger works with that one. However it spams my console with needing an update. I also tried the money quests, they work now. The wheat quest, destroying did not make any difference sadly. And the whole abandoning the multiple step quests still gives me problems, I tried with an empty inventory as well and have the same issue.

    On top of this, I just wanted to make a suggestion. Could you possibly look into saving quests that people start so that if a server restart happens they stay the active quest.

    Thanks once again for the great plugin, once the bugs are out of the way this will be a great addition!
     
  21. Offline

    quaz3l

    Fixed the console spamming from my updates server.

    The items thing, you should check your yaml file because I tried it with the current version and it works fine.

    Are you using 59 for the wheat item id? That is what you should use.

    The next update today, I hope, will fix all the major errors and not need as frequent updates, or annoying errors.

    You might have a item fee you are not aware of because /q drop works.

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

    BulletUpTheAss

    Ah, thank you that was my bad. I did have the wrong item ID and I forgot I had it try and take a diamond from the player on drop. Another suggestion I have would let it try and take the item but if you don't have it then it ignores it and still drops. (Optional obviously) The reason I say this is, one of my quests is making bread for a peasant, if you drop the quest he "Stabs and robs you". If you have the item it would take it but if you don't it still drops the quest and just does the health damage. Time to get the server online!
     
  23. Offline

    quaz3l

    I'll put this on my list of things to do.
     
  24. Offline

    VivaLaCreeper

    What I would love is a way to make a quest where a player must travel to/enter a certain area, for example like "You must find the hidden temple" and they complete the quest when they enter the set area of the temple.
     
  25. Offline

    quaz3l

    I'm planing on something like this, its a "GoTo" task type, and it has you go to a location, and once you get there the task is completed. You could combine this with the auto quest complete function I will add and make it auto give a quest to do in the "hidden temple".
     
  26. Offline

    CovertHoax

    I think thats what i started making ROFL
     
  27. Offline

    bwinkl04

    I just installed this today, and already the players are talking about it. they love it. The only question I have it there a way to force the order of the quests. so that every user starts with quest one, and can't do any other until that is finished. then the next quest assigned would be quest 2. and so on.
     
  28. Offline

    quaz3l

    Just make quests after 1 ex. 2,3,4,5,6, etc. set to invisible, and have each quest have the next quest be the... next quest so 1 has the next quest of 2 so on and so forth
     
  29. Offline

    bwinkl04

    Thank you... also really quickly, will this recognize item ids like 18:3 for jungle leaves?

    hmmm. my quests don't have numbers, just names. I saw in some of the older posts, other users quest.yml had quest numbers. Should I have those too?
    Mine look more like this:

    QuestNameOne:
    Setup:
    etc...
    QuestNameTwo:
    setup:
    etc...

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

    quaz3l

    No I just use numbers as an example... You would hove QuestNumberOne's nextQuest: QuestNumberTwo... and so on and so forth. And invisible set to true on any quest you don't want to be got before another.

    No sorry I will add some ids like that later but right now it doesn't work.

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

Share This Page