soothing_the_spirits_of_marr.lua 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. --[[
  2. Quest Template
  3. Script Name : soothing_the_spirits_of_marr.lua
  4. Script Purpose : Handles the quest, "Soothing the Spirits of Marr"
  5. Script Author : Scatman
  6. Script Date : 2009.07.25
  7. Zone : The Graveyard
  8. Quest Giver : An Ethernere Guard
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "In order to appease the restless Knights of Marr, I must recover their holy relics from the graverobbers here in the Graveyard.", 4, 100, "I must hunt the graverobbers in the Graveyard in order to recover the relics of Marr they have purloined.", 368, 1250093, 1250094, 1250092, 1250096)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1_Complete_KilledGraverobbers")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. conversation = CreateConversation()
  19. PlayFlavor(QuestGiver, "an_ethernere_guard/fprt_adv02_graveyard/ethernere_keeper004.mp3", "", "", 2575556836, 1434752042, Player)
  20. AddConversationOption(conversation, "I will fulfill my duty to the Overlord.")
  21. StartConversation(conversation, QuestGiver, Player, "You must recover these holy relics and return them to the graves of the awakened spirits for them to find rest again.")
  22. end
  23. function Declined(Quest, QuestGiver, Player)
  24. end
  25. function Step1_Complete_KilledGraverobbers(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 1, "I was able to gather the stolen relics of Marr from the graverobbers in the Graveyard.")
  27. UpdateQuestTaskGroupDescription(Quest, 1, "I have recovered the four stolen relics of Marr.")
  28. AddQuestStep(Quest, 2, "I must take these relics to the tomb of Sir Ackmin.", 1, 100, "I should return to an Ethernere guard and let them know of my success.", 0)
  29. AddQuestStepCompleteAction(Quest, 2, "Step2_Complete_BroughRelics")
  30. end
  31. function Step2_Complete_BroughRelics(Quest, QuestGiver, Player)
  32. UpdateQuestStepDescription(Quest, 2, "I have returned the relics to the tomb of Sir Ackmin.")
  33. UpdateQuestTaskGroupDescription(Quest, 2, "It would seem that the return of the relics has put Sir Ackmin's soul to rest.")
  34. AddQuestStepChat(Quest, 3, "I should let an Ethernere guard know of my success.", 1, "I must return the relics to the tomb of Sir Ackmin.", 0, 1250074, 1250032, 1250084, 1250044)
  35. AddQuestStepCompleteAction(Quest, 3, "Step2_Complete_BroughRelics")
  36. end
  37. function QuestComplete(Quest, QuestGiver, Player)
  38. UpdateQuestStepDescription(Quest, 3, "The Keepers of Ethernere were pleased to hear of my efforts.")
  39. UpdateQuestTaskGroupDescription(Quest, 3, "The Keepers of Ethernere were pleased with my success")
  40. GiveQuestReward(Quest, Player)
  41. UpdateQuestDescription(Quest, "Having appeased the Spirits of Marr, things have returned to their normal level of danger here in the Graveyard.")
  42. end
  43. function Reload(Quest, QuestGiver, Player, Step)
  44. if Step == 1 then
  45. Step1_Complete_KilledGraverobbers(Quest, QuestGiver, Player)
  46. elseif Step == 2 then
  47. Step2_Complete_BroughRelics(Quest, QuestGiver, Player)
  48. end
  49. end