GiftsfromtheEarth.lua 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. --[[
  2. Script Name : gifts_from_the_earth.lua
  3. Script Purpose : Handles the quest, "Gifts from the Earth"
  4. Script Author : QuestParser (Replace this)
  5. Script Date : 10.05.2021
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Commonlands
  8. Quest Giver :
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepLocation(Quest, 1, "I need to make my way to the Nektulos griffin station where the Ree cache is", 10, "I need to find the spot where the Shin'Ree treasure is buried and dig it up.", 11, 772, -46, -589)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. local conversation = CreateConversation()
  18. AddConversationOption(conversation, "I'll be back.")
  19. StartConversation(conversation, QuestGiver, Player, " \'' Useful \'', bah, my illiterate grandmother could write better then that.")
  20. end
  21. function Declined(Quest, QuestGiver, Player)
  22. -- Add dialog here for when the quest is declined
  23. end
  24. function Deleted(Quest, QuestGiver, Player)
  25. -- Remove any quest specific items here when the quest is deleted
  26. end
  27. function Step1Complete(Quest, QuestGiver, Player)
  28. UpdateQuestStepDescription(Quest, 1, "I have made my way to the Nektulos griffin station.")
  29. AddQuestStepObtainItem(Quest, 2, "I need to search south of the griffin station for the correct spot to dig", 1, 100, "I need to find the spot where the Shin'Ree treasure is buried and dig it up.", 11, 15096)
  30. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  31. end
  32. function Step2Complete(Quest, QuestGiver, Player)
  33. UpdateQuestStepDescription(Quest, 2, "I have dug up the Ree cache.")
  34. AddQuestStepChat(Quest, 3, "I need to return to Ventar", 1, "I need to find the spot where the Shin'Ree treasure is buried and dig it up.", 926, 330214)
  35. AddQuestStepCompleteAction(Quest, 3, "QuestComplete")
  36. end
  37. function QuestComplete(Quest, QuestGiver, Player)
  38. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  39. UpdateQuestStepDescription(Quest, 3, "I have spoken with Ventar.")
  40. UpdateQuestTaskGroupDescription(Quest, 1, "I have unearthed the Shin'Ree treasure and brought it to Ventar.")
  41. UpdateQuestDescription(Quest, "I found the buried Shin'Ree treasure and brought it to Ventar. He was not surprised that it was locked.")
  42. GiveQuestReward(Quest, Player)
  43. end
  44. function Reload(Quest, QuestGiver, Player, Step)
  45. if Step == 1 then
  46. Step1Complete(Quest, QuestGiver, Player)
  47. elseif Step == 2 then
  48. Step2Complete(Quest, QuestGiver, Player)
  49. elseif Step == 3 then
  50. QuestComplete(Quest, QuestGiver, Player)
  51. end
  52. end