tasty_tears_of_the_thralls.lua 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. --[[
  2. Script Name : tasty_tears_of_the_thralls.lua
  3. Script Purpose : Handles the quest, "Tasty Tears of the Thralls"
  4. Script Author : torsten
  5. Script Date : 23.07.2022
  6. Script Notes :
  7. Zone : Scale Yard
  8. Quest Giver : Dyerth Shiraz
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "Collect tears from Brokentusk prophets", 4, 100, "Dyerth said I should be able to find some Brokentusk prophets in the Ruins, so that's where I should start.", 2489, 1270009)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. UpdateQuestZone(Quest,"The Ruins")
  16. end
  17. function Step1Complete(Quest, QuestGiver, Player)
  18. UpdateQuestStepDescription(Quest, 1, "I have collected the tears from the orcs.")
  19. UpdateQuestTaskGroupDescription(Quest, 1, "I have collected the tears of four Brokentusk prophets.")
  20. UpdateQuestZone(Quest,"Scale Yard")
  21. AddQuestStepChat(Quest, 2, "I should return to Dyerth Shiraz.", 1, "I should return these to Dyerth Shiraz so that she can start making some Sazzpazilla.", 11, 1390054)
  22. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  23. end
  24. function QuestComplete(Quest, QuestGiver, Player)
  25. UpdateQuestDescription(Quest, "Dyerth appreciated my helping her with making her drink. Perhaps someday in the future I may call on her to pay back the favor.")
  26. GiveQuestReward(Quest, Player)
  27. end
  28. function Accepted(Quest, QuestGiver, Player)
  29. -- Add dialog here for when the quest is accepted
  30. end
  31. function Declined(Quest, QuestGiver, Player)
  32. -- Add dialog here for when the quest is declined
  33. end
  34. function Deleted(Quest, QuestGiver, Player)
  35. -- Remove any quest specific items here when the quest is deleted
  36. end
  37. function Reload(Quest, QuestGiver, Player, Step)
  38. if Step == 1 then
  39. Step1Complete(Quest, QuestGiver, Player)
  40. elseif Step == 2 then
  41. QuestComplete(Quest, QuestGiver, Player)
  42. end
  43. end