9
3

off_to_the_ossuary.lua 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. --[[
  2. Script Name : Quests/FrostfangSea/off_to_the_ossuary.lua
  3. Script Purpose : the quest Off to the Ossuary
  4. Script Author : theFoof
  5. Script Date : 2013.6.17
  6. Script Notes :
  7. Zone : Frostfang Sea
  8. Quest Giver : Dolur Axebeard
  9. Preceded by : The Gauntlet
  10. Followed by : Severing the Head
  11. --]]
  12. function Init(Quest)
  13. UpdateQuestZone(Quest, "Cave of Illboding Dark")
  14. AddQuestRewardCoin(Quest, math.random(5,90), math.random(6,15), 0, 0)
  15. AddQuestStepKill(Quest, 1, "I must kill the Ry'Gorr reanimators in the Cave of Illboding Dark.", 2, 100, "I must find the cave on the Forbidden Ossuary of Ice and hunt down the reanimators within. The Ossuary is an island off the coast of Erollis, to the south of Ry'Gorr Isle.", 611, 5160006)
  16. AddQuestStepKill(Quest, 2, "I must kill the Ry'Gorr lackeys in the Cave of Illboding Dark.", 4, 100, "I must find the cave on the Forbidden Ossuary of Ice and hunt down the reanimators within. The Ossuary is an island off the coast of Erollis, to the south of Ry'Gorr Isle.", 611, 5160005)
  17. AddQuestStepCompleteAction(Quest, 1, "KilledRean")
  18. AddQuestStepCompleteAction(Quest, 2, "KilledLackey")
  19. end
  20. function Accepted(Quest, QuestGiver, Player)
  21. FaceTarget(QuestGiver, Player)
  22. conversation = CreateConversation()
  23. PlayFlavor(QuestGiver, "dolur_axebeard/halas/great_shelf/dolur_axebeard/dolur_axebeard085.mp3", "", "", 2080430397, 2045091210, Player)
  24. AddConversationOption(conversation, "I'll deliver my own brand of personal justice.")
  25. AddConversationOption(conversation, "I will slip in unseen and have a look around.")
  26. AddConversationOption(conversation, "You can count on me, Dolur.")
  27. StartConversation(conversation, QuestGiver, Player, "We call the floating isle the Forbidden Ossuary of Ice. Search for the cavern entrance there, and then have a look inside for the necromancers. If ye find any, give them the sharp side of an axe for me.")
  28. end
  29. function Deleted(Quest, QuestGiver, Player)
  30. end
  31. function Declined(Quest, QuestGiver, Player)
  32. end
  33. function KilledRean(Quest, QuestGiver, Player)
  34. UpdateQuestStepDescription(Quest, 1, "I have killed the Ry'Gorr reanimators.")
  35. CheckProgress(Quest, QuestGiver, Player)
  36. end
  37. function KilledLackey(Quest, QuestGiver, Player)
  38. UpdateQuestStepDescription(Quest, 2, "I have killed the Ry'Gorr lackeys.")
  39. CheckProgress(Quest, QuestGiver, Player)
  40. end
  41. function CheckProgress(Quest, QuestGiver, Player)
  42. if QuestStepIsComplete(Player, 71, 1) and QuestStepIsComplete(Player, 71, 2) then
  43. AddStep3(Quest, QuestGiver, Player)
  44. end
  45. end
  46. function AddStep3(Quest, QuestGiver, Player)
  47. UpdateQuestZone(Quest, "Frostfang Sea")
  48. UpdateQuestTaskGroupDescription(Quest, 1, "I have killed several reanimators and their lackeys in the Cave of Illboding Dark.")
  49. AddQuestStepChat(Quest, 3, "I must speak with Dolur Axebeard.", 1, "I must speak with Dolur Axebeard, who can be found in the cave at the Great Shelf.", 0, 4700078)
  50. AddQuestStepCompleteAction(Quest, 3, "CompleteQuest")
  51. end
  52. function CompleteQuest(Quest, QuestGiver, Player)
  53. GiveQuestReward(Quest, Player)
  54. end
  55. function Reload(Quest, QuestGiver, Player, Step)
  56. if QuestStepIsComplete(Player, 71, 1) then
  57. KilledRean(Quest, QuestGiver, Player)
  58. end
  59. if QuestStepIsComplete(Player, 71, 2) then
  60. KilledLackey(Quest, QuestGiver, Player)
  61. end
  62. end