9
3

a_scattering_of_ashes.lua 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. --[[
  2. Script Name : Quests/FrostfangSea/a_scattering_of_ashes.lua
  3. Script Purpose : the quest A Scattering of Ashes
  4. Script Author : theFoof
  5. Script Date : 2013.5.27
  6. Zone : Frostfang Sea
  7. Quest Giver : Dolur Axebeard
  8. Preceded by : A Murky Miasma of a Mystery
  9. Followed by : Totem Annihilation
  10. --]]
  11. function Init(Quest)
  12. AddQuestRewardCoin(Quest, math.random(23,99), math.random(6,15), 0, 0)
  13. AddQuestStep(Quest, 1, "I must scatter the ashes of the fallen coldain at Pride Overlook.", 1, 100, "I must travel to the peak of Pride Overlook, and then scatter the ashes of the fallen coldain. The Overlook is the peak of the outcropping of the icy cliff just north of the Great Shelf.", 569)
  14. AddQuestStepCompleteAction(Quest, 1, "ScatteredAshes")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. if not HasItem(Player, 49022) then
  18. SummonItem(Player, 49022, 1)
  19. end
  20. FaceTarget(QuestGiver, Player)
  21. conversation = CreateConversation()
  22. PlayFlavor(QuestGiver, "dolur_axebeard/halas/great_shelf/dolur_axebeard/dolur_axebeard028.mp3", "", "", 564515719, 107243017, Player)
  23. AddConversationOption(conversation, "Thank you. I'd be happy to help.")
  24. AddConversationOption(conversation, "Like the Dain? That's a wild exaggeration, but I appreciate the compliment.")
  25. AddConversationOption(conversation, "I'd rather see a coldain honor his brethren.")
  26. StartConversation(conversation, QuestGiver, Player, "I'd be perfectly happy to give this job to one of my brothers, but I'd rather you do it, Tuce. I trust ye. Yer capable and ye fight like the Dain himself.")
  27. end
  28. function Deleted(Quest, QuestGiver, Player)
  29. end
  30. function Declined(Quest, QuestGiver, Player)
  31. end
  32. function ScatteredAshes(Quest, QuestGiver, Player)
  33. UpdateQuestTaskGroupDescription(Quest, 1, "I have scattered the ashes.")
  34. AddQuestStepChat(Quest, 2, "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)
  35. AddQuestStepCompleteAction(Quest, 2, "CompleteQuest")
  36. end
  37. function CompleteQuest(Quest, QuestGiver, Player)
  38. GiveQuestReward(Quest, Player)
  39. end
  40. function Reload(Quest, QuestGiver, Player, Step)
  41. if Step == 1 then
  42. ScatteredAshes(Quest, QuestGiver, Player)
  43. end
  44. end