In_search_of_the_sepulcher_of_jahnda.lua 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. --[[
  2. Script Name : Quests/VerminsSnye/In_search_of_the_sepulcher_of_jahnda.lua
  3. Script Author : premierio015
  4. Script Date : 2020.05.25 10:05:18
  5. Script Purpose :
  6. Zone : Vermin's Snye
  7. Quest Giver: Gillin Blackfis
  8. Preceded by: None
  9. Followed by: None
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "Speak to Mirf Guinders", 1, "I need to find a religious zealot of small stature. An area with a number of tinkerers may be a good place to begin my search.", 11, 2380029, 5890275)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. -- Add dialog here for when the quest is accepted
  17. end
  18. function Declined(Quest, QuestGiver, Player)
  19. -- Add dialog here for when the quest is declined
  20. end
  21. function Deleted(Quest, QuestGiver, Player)
  22. -- Remove any quest specific items here when the quest is deleted
  23. end
  24. function Step1Complete(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 1, "I spoke to Mirf Guinders.")
  26. UpdateQuestTaskGroupDescription(Quest, 1, "I found Mirf Guinders in the Qeynos Capitol District.")
  27. AddQuestStepKill(Quest, 2, "Hunt the undead lurking in Vermin's Snye", 3, 100, "I need to collect three jade golem crystals from the Vermin's Snye. I hear that the undead guardians there have often been animated by use of these gems.", 769, 2000027, 2000018, 2000011, 2000010, 2000012, 2000020, 2000022)
  28. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  29. end
  30. function Step2Complete(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 2, "I have collected three jade golem crystals from Vermin's Snye.")
  32. UpdateQuestTaskGroupDescription(Quest, 2, "I have collected the three jade golem crystals.")
  33. AddQuestStepChat(Quest, 3, "Speak to Mirf Guinders", 1, "I must go back to the capitol district of Qeynos to deliver the jade golem crystals to Mirf Guinders.", 11, 2380029, 5890275)
  34. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  35. end
  36. function Step3Complete(Quest, QuestGiver, Player)
  37. UpdateQuestStepDescription(Quest, 3, "Spoke to Mirf Guinders.")
  38. UpdateQuestTaskGroupDescription(Quest, 3, "I gave three jade golem crystals to Mirf Guinders in the Qeynos Capitol District.")
  39. AddQuestStepKill(Quest, 4, "Slay Ayamia the Rat Queen", 1, 100, "I must go back to Vermin's Snye and slay Ayamia the Rat Queen.", 1009, 2000028)
  40. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  41. end
  42. function Step4Complete(Quest, QuestGiver, Player)
  43. UpdateQuestStepDescription(Quest, 4, "I slew Ayamia the Rat Queen.")
  44. UpdateQuestTaskGroupDescription(Quest, 4, "I slew Ayamia the Rat Queen and collected a sarcophagus key from her.")
  45. AddQuestStepLocation(Quest, 5, "Go to the Central Stairwell", 1, "I must go to the Central Stairwell and Drain in Vermin's Snye.", 11, 120, 0, -109, 15)
  46. AddQuestStepCompleteAction(Quest, 5, "Step5Complete")
  47. end
  48. function Step5Complete(Quest, QuestGiver, Player)
  49. UpdateQuestStepDescription(Quest, 5, "I went to the Central Stairwell.")
  50. UpdateQuestTaskGroupDescription(Quest, 5, "I went to the Central Stairwell and Drain in Vermin's Snye.")
  51. AddQuestStepLocation(Quest, 6, "Go to the Coldwind Coast Cliff painting", 1, "I must search for the alcove containing a painting of the Coldwind Coast Cliffs.", 11, 184, -5.11, -91.3, 5)
  52. AddQuestStepCompleteAction(Quest, 6, "Step6Complete")
  53. end
  54. function Step6Complete(Quest, QuestGiver, Player)
  55. UpdateQuestStepDescription(Quest, 6, "I went to the Coldwind Coast Cliff painting.")
  56. UpdateQuestTaskGroupDescription(Quest, 6, "I found the alcove containing a painting of the Coldwind Coast Cliffs.")
  57. AddQuestStepLocation(Quest, 7, "Go to the Sepulcher of the Prime Healer", 1, "I must search for the main mausoleum called the Sepulcher of the Prime Healer.", 11, 237, -7, -81, 15)
  58. AddQuestStepCompleteAction(Quest, 7, "Step7Complete")
  59. end
  60. function Step7Complete(Quest, QuestGiver, Player)
  61. UpdateQuestStepDescription(Quest, 7, "I went to the Sepulcher of the Prime Healer.")
  62. UpdateQuestTaskGroupDescription(Quest, 7, "I found the main mausoleum called the Sepulcher of the Prime Healer.")
  63. AddQuestStepLocation(Quest, 8, "Go to the Tomb of Lord Tonmerk", 1, "I must go to the Tomb of Lord Tonmerk in Vermin's Snye. He was Priestess Jahnda's greatest personal guard, but one of the most humble souls.", 11, 252, -6, -119)
  64. AddQuestStepCompleteAction(Quest, 8, "QuestComplete")
  65. end
  66. function QuestComplete(Quest, QuestGiver, Player)
  67. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  68. UpdateQuestStepDescription(Quest, 8, "I went to the Tomb of Lord Tonmerk.")
  69. UpdateQuestTaskGroupDescription(Quest, 8, "I found Lord Tonmerk's sarcophagus.")
  70. UpdateQuestDescription(Quest, "I discovered the Tomb of Lord Tonmerk. It is rumored to be the secret entrance into the hidden mausoleum called the Sepulcher of Jahnda. ")
  71. GiveQuestReward(Quest, Player)
  72. end
  73. function Reload(Quest, QuestGiver, Player, Step)
  74. if Step == 1 then
  75. Step1Complete(Quest, QuestGiver, Player)
  76. elseif Step == 2 then
  77. Step2Complete(Quest, QuestGiver, Player)
  78. elseif Step == 3 then
  79. Step3Complete(Quest, QuestGiver, Player)
  80. elseif Step == 4 then
  81. Step4Complete(Quest, QuestGiver, Player)
  82. elseif Step == 5 then
  83. Step5Complete(Quest, QuestGiver, Player)
  84. elseif Step == 6 then
  85. Step6Complete(Quest, QuestGiver, Player)
  86. elseif Step == 7 then
  87. Step7Complete(Quest, QuestGiver, Player)
  88. elseif Step == 8 then
  89. QuestComplete(Quest, QuestGiver, Player)
  90. end
  91. end