the_gauntlet.lua 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. --[[
  2. Script Name : Quests/FrostfangSea/the_gauntlet.lua
  3. Script Purpose : for the quest "The Gauntlet"
  4. Script Author : theFoof
  5. Script Date : 2013.5.29
  6. Script Notes :
  7. Zone : Frostfang Sea
  8. Quest Giver : Dolur Axebeard
  9. Preceded by : Calling Them Back
  10. Followed by : Off to the Ossuary
  11. --]]
  12. function Init(Quest)
  13. AddQuestRewardCoin(Quest, math.random(10,80), math.random(6,15), 0, 0)
  14. AddQuestStep(Quest, 1, "I must smash several piles of Ry'Gorr bones.", 5, 100, "I must smash several piles of Ry'Gorr bones. These piles of bones litter the battlefield at the Great Shelf.", 90)
  15. AddQuestStepCompleteAction(Quest, 1, "SmashedBones")
  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_axebeard069.mp3", "", "", 269705072, 2630405776, Player)
  21. AddConversationOption(conversation, "Of course.")
  22. AddConversationOption(conversation, "I will return post-haste.")
  23. AddConversationOption(conversation, "Consider them dust.")
  24. StartConversation(conversation, QuestGiver, Player, "My patience for these shuffling skeletons is running out. Best we destroy them at the source, and quickly. Wend your way through the forces of the Ry'Gorr orcs, running the gauntlet, or so to speak. Then grind these bones into dust.")
  25. end
  26. function Deleted(Quest, QuestGiver, Player)
  27. end
  28. function Declined(Quest, QuestGiver, Player)
  29. end
  30. function SmashedBones(Quest, QuestGiver, Player)
  31. UpdateQuestTaskGroupDescription(Quest, 1, "I attempted to smash the piles of Ry'Gorr bones, but they reformed into skeletons and attacked me!")
  32. 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)
  33. AddQuestStepCompleteAction(Quest, 2, "CompleteQuest")
  34. end
  35. function CompleteQuest(Quest, QuestGiver, Player)
  36. GiveQuestReward(Quest, Player)
  37. end
  38. function Reload(Quest, QuestGiver, Player, Step)
  39. if Step == 1 then
  40. SmashedBones(Quest, QuestGiver, Player)
  41. end
  42. end