in_search_of_the_shrine_of_estle.lua 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. --[[
  2. Script Name : Quests/Baubbleshire/in_search_of_the_shrine_of_estle.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.01.19 04:01:12
  5. Script Purpose :
  6. Zone : Baubbleshire
  7. Quest Giver: Mirf Guinders
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. UpdateQuestZone(Quest, "The Down Below")
  13. AddQuestStepLocation(Quest, 1, "I will find the shrine in the Down Below.", 5, "I need to locate the Shrine of Estle in the Down Below.", 0, 7.12, 0.3, -137.86, 199)
  14. AddQuestStepCompleteAction(Quest, 1, "FoundTemple")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. local conversation = CreateConversation()
  18. FaceTarget(QuestGiver, Player)
  19. AddConversationOption(conversation, "Sorry to cut you off, but the down below beckons.")
  20. StartConversation(conversation, QuestGiver, Player, "Deep down in the catacombs there are many shrines to protect the fallen - the heroes of Bristlebane and Rodcet Nife - who carried Qeynos through trials and tribulations, who fought hordes of undead, who...")
  21. PlayAnimation (NPC, orate)
  22. end
  23. function Declined(Quest, QuestGiver, Player)
  24. end
  25. function FoundTemple(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 1, "I located the Shrine of Estle.")
  27. UpdateQuestTaskGroupDescription(Quest, 1, "I found the shrine in the Down Below.")
  28. UpdateQuestZone(Quest, "Baubbleshire")
  29. AddQuestStepChat(Quest, 2, "I should return to Mirf Guinders.", 1, "Mirf Guinders will want to know what I've seen.", 0, 2380029)
  30. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  31. end
  32. function QuestComplete(Quest, QuestGiver, Player)
  33. UpdateQuestStepDescription(Quest, 2, "I've returned to Mirf Guinders.")
  34. UpdateQuestTaskGroupDescription(Quest, 2, "I've told Mirf Guinders about the Temple of Estle.")
  35. UpdateQuestDescription(Quest, "I discovered the location of the Shrine of Estle within the Down Below. Having relayed this information to Mirf Guinders he has paid me for my service.")
  36. GiveQuestReward(Quest, Player)
  37. end
  38. function Reload(Quest, QuestGiver, Player, Step)
  39. if Step == 1 then
  40. FoundTemple(Quest, QuestGiver, Player)
  41. elseif Step == 2 then
  42. QuestComplete(Quest, QuestGiver, Player)
  43. end
  44. end