9
3

totem_annihilation.lua 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. --[[
  2. Script Name : Quests/FrostfangSea/totem_annihilation.lua
  3. Script Purpose : the quest Totem Annihilation
  4. Script Author : theFoof
  5. Script Date : 2013.5.28
  6. Script Notes :
  7. Zone : Frostfang Sea
  8. Quest Giver : Dolur Axebeard
  9. Preceded by : A Scattering of Ashes
  10. Followed by :
  11. --]]
  12. function Init(Quest)
  13. AddQuestRewardCoin(Quest, math.random(10,80), math.random(13,20), 0 ,0)
  14. AddQuestStep(Quest, 1, "I must destroy several totems that are being used to raise the Ry'Gorr skeletons.", 5, 100, "I must destroy several totems that are being used to raise the Ry'Gorr skeletons. These totems have been planted all over the battlefield, which is south of the cave at the Great Shelf.", 3596)
  15. AddQuestStepCompleteAction(Quest, 1, "DestroyedTotems")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. FaceTarget(QuestGiver, Player)
  19. conversation = CreateConversation()
  20. PlayFlavor(QuestGiver, "dolur_axebeard/halas/great_shelf/dolur_axebeard/dolur_axebeard044.mp3", "", "", 4252179126, 1393655567, Player)
  21. AddConversationOption(conversation, "They don't scare me.")
  22. AddConversationOption(conversation, "I'll fight tooth and nail to get the job done.")
  23. StartConversation(conversation, QuestGiver, Player, "Ha! I was just telling ol' Rockbreaker here that you were the one for the job. Head back to the battlefield to the south and look for the totems there. And don't expect the Ry'Gorr to let you succeed without putting up a fight.")
  24. end
  25. function Deleted(Quest, QuestGiver, Player)
  26. end
  27. function Declined(Quest, QuestGiver, Player)
  28. end
  29. function DestroyedTotems(Quest, QuestGiver, Player)
  30. UpdateQuestTaskGroupDescription(Quest, 1, "I have destroyed the totems.")
  31. 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)
  32. AddQuestStepCompleteAction(Quest, 2, "CompleteQuest")
  33. end
  34. function CompleteQuest(Quest, QuestGiver, Player)
  35. GiveQuestReward(Quest, Player)
  36. end
  37. function Reload(Quest, QuestGiver, Player, Step)
  38. if Step == 1 then
  39. DestroyedTotems(Quest, QuestGiver, Player)
  40. end
  41. end