9
3

In_search_of_the_sepulcher_of_jahnda.lua 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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. FaceTarget(QuestGiver, Player)
  17. local conversation = CreateConversation()
  18. AddConversationOption(conversation, "I will leave you to your insanity. Farewell.")
  19. StartConversation(conversation, QuestGiver, Player, "Huh? Yer not Ronicus! Blast! I told them that password was too obvious! Ronicus and his Red Raiders are gonna' have me head if this happens again. Ehem ... forget what I said, if you know what's best.")
  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 spoke to Mirf Guinders.")
  29. UpdateQuestTaskGroupDescription(Quest, 1, "I found Mirf Guinders in the Qeynos Capitol District.")
  30. 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)
  31. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  32. end
  33. function Step2Complete(Quest, QuestGiver, Player)
  34. UpdateQuestStepDescription(Quest, 2, "I have collected three jade golem crystals from Vermin's Snye.")
  35. UpdateQuestTaskGroupDescription(Quest, 2, "I have collected the three jade golem crystals.")
  36. 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)
  37. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  38. end
  39. function Step3Complete(Quest, QuestGiver, Player)
  40. UpdateQuestStepDescription(Quest, 3, "Spoke to Mirf Guinders.")
  41. UpdateQuestTaskGroupDescription(Quest, 3, "I gave three jade golem crystals to Mirf Guinders in the Qeynos Capitol District.")
  42. 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)
  43. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  44. end
  45. function Step4Complete(Quest, QuestGiver, Player)
  46. UpdateQuestStepDescription(Quest, 4, "I slew Ayamia the Rat Queen.")
  47. UpdateQuestTaskGroupDescription(Quest, 4, "I slew Ayamia the Rat Queen and collected a sarcophagus key from her.")
  48. GiveQuestItem(Quest, Player, "I slew Ayamia the Rat Queen and collected a sarcophagus key from her.", 7984)
  49. AddQuestStepZoneLoc(Quest, 5, "Go to the Central Stairwell", 10, "I must go to the Central Stairwell and Drain in Vermin's Snye.", 11, 120, 0, -109, 200)
  50. AddQuestStepCompleteAction(Quest, 5, "Step5Complete")
  51. end
  52. function Step5Complete(Quest, QuestGiver, Player)
  53. UpdateQuestStepDescription(Quest, 5, "I went to the Central Stairwell.")
  54. UpdateQuestTaskGroupDescription(Quest, 5, "I went to the Central Stairwell and Drain in Vermin's Snye.")
  55. AddQuestStepZoneLoc(Quest, 6, "Go to the Coldwind Coast Cliff painting", 10, "I must search for the alcove containing a painting of the Coldwind Coast Cliffs.", 11, 184, -5.11, -91.3, 200)
  56. AddQuestStepCompleteAction(Quest, 6, "Step6Complete")
  57. end
  58. function Step6Complete(Quest, QuestGiver, Player)
  59. UpdateQuestStepDescription(Quest, 6, "I went to the Coldwind Coast Cliff painting.")
  60. UpdateQuestTaskGroupDescription(Quest, 6, "I found the alcove containing a painting of the Coldwind Coast Cliffs.")
  61. AddQuestStepZoneLoc(Quest, 7, "Go to the Sepulcher of the Prime Healer", 10, "I must search for the main mausoleum called the Sepulcher of the Prime Healer.", 11, 237, -7, -81, 200)
  62. AddQuestStepCompleteAction(Quest, 7, "Step7Complete")
  63. end
  64. function Step7Complete(Quest, QuestGiver, Player)
  65. UpdateQuestStepDescription(Quest, 7, "I went to the Sepulcher of the Prime Healer.")
  66. UpdateQuestTaskGroupDescription(Quest, 7, "I found the main mausoleum called the Sepulcher of the Prime Healer.")
  67. 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)
  68. AddQuestStepCompleteAction(Quest, 8, "QuestComplete")
  69. end
  70. function QuestComplete(Quest, QuestGiver, Player)
  71. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  72. UpdateQuestStepDescription(Quest, 8, "I went to the Tomb of Lord Tonmerk.")
  73. UpdateQuestTaskGroupDescription(Quest, 8, "I found Lord Tonmerk's sarcophagus.")
  74. 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. ")
  75. GiveQuestReward(Quest, Player)
  76. end
  77. function Reload(Quest, QuestGiver, Player, Step)
  78. if Step == 1 then
  79. Step1Complete(Quest, QuestGiver, Player)
  80. elseif Step == 2 then
  81. Step2Complete(Quest, QuestGiver, Player)
  82. elseif Step == 3 then
  83. Step3Complete(Quest, QuestGiver, Player)
  84. elseif Step == 4 then
  85. Step4Complete(Quest, QuestGiver, Player)
  86. elseif Step == 5 then
  87. Step5Complete(Quest, QuestGiver, Player)
  88. elseif Step == 6 then
  89. Step6Complete(Quest, QuestGiver, Player)
  90. elseif Step == 7 then
  91. Step7Complete(Quest, QuestGiver, Player)
  92. elseif Step == 8 then
  93. QuestComplete(Quest, QuestGiver, Player)
  94. end
  95. end