all_that_remains.lua 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. --[[
  2. Script Name : Quests/FrostfangSea/all_that_remains.lua
  3. Script Purpose : for the quest All That Remains
  4. Script Author : theFoof
  5. Script Date : 2013.6.5
  6. Script Notes :
  7. Zone : Frostfang Sea
  8. Quest Giver : Battlepriest Herga
  9. Preceded by : Forsaking the Grave
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestRewardCoin(Quest, math.random(5,90), math.random(6,15), 0, 0)
  14. AddQuestStep(Quest, 1, "I must recover Herga's helm from the jetty of ice below the choke.", 1, 100, "I must recover Herga's helm from the jetty of ice below Herga's Choke.", 2736)
  15. AddQuestStepCompleteAction(Quest, 1, "ClickedHelm")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. FaceTarget(QuestGiver, Player)
  19. conversation = CreateConversation()
  20. PlayFlavor(QuestGiver, "battlepriest_herga/halas/great_shelf/battlepriest_herga/battlepriest_herga056.mp3", "", "", 1633477200, 3542606661, Player)
  21. AddConversationOption(conversation, "I will recover your helmet.")
  22. AddConversationOption(conversation, "This is the least I can do for you.")
  23. StartConversation(conversation, QuestGiver, Player, "I have no kin, as the duties of a Battlepriest precluded the possibility of a quiet life. I never started a family. My ancestral helm is all that remains.")
  24. end
  25. function Deleted(Quest, QuestGiver, Player)
  26. end
  27. function Declined(Quest, QuestGiver, Player)
  28. end
  29. function ClickedHelm(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 1, "I located Herga's helm, but was attacked when I attempted to retrieve it!")
  31. AddQuestStepKill(Quest, 2, "I must kill the frenzied orc that is guarding Herga's helm.", 1, 100, "I must recover Herga's helm from the jetty of ice below Herga's Choke.", 611, 4701122)
  32. AddQuestStepCompleteAction(Quest, 2, "KilledOrc")
  33. end
  34. function KilledOrc(Quest, QuestGiver, Player)
  35. UpdateQuestStepDescription(Quest, 2, "I have killed the frenzied orc that was guarding Herga's helm.")
  36. AddQuestStep(Quest, 3, "Now that I have slain the frenzied orc, I must recover Herga's helm from the jetty of ice below the choke.", 1, 100, "I must recover Herga's helm from the jetty of ice below Herga's Choke.", 2736)
  37. AddQuestStepCompleteAction(Quest, 3, "GotHelmet")
  38. end
  39. function GotHelmet(Quest, QuestGiver, Player)
  40. UpdateQuestTaskGroupDescription(Quest, 1, "I have recovered Herga's helm.")
  41. AddQuestStepChat(Quest, 4, "I must return the helm to Battlepriest Herga.", 1, "I must return the helm to Battlepriest Herga, who can be found on the battlefield at the Great Shelf.", 0, 4700100)
  42. AddQuestStepCompleteAction(Quest, 4, "CompleteQuest")
  43. end
  44. function CompleteQuest(Quest, QuestGiver, Player)
  45. GiveQuestReward(Quest, Player)
  46. end
  47. function Reload(Quest, QuestGiver, Player, Step)
  48. if Step == 1 then
  49. ClickedHelm(Quest, QuestGiver, Player)
  50. elseif Step == 2 then
  51. KilledOrc(Quest, QuestGiver, Player)
  52. elseif Step == 3 then
  53. GotHelmet(Quest, QuestGiver, Player)
  54. end
  55. end