the_glimmer_orc.lua 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. --[[
  2. Script Name : Quests/FrostfangSea/the_glimmer_orc.lua
  3. Script Purpose : the quest The Glimmer Orc
  4. Script Author : theFoof
  5. Script Date : 2013.5.26
  6. Zone : Frostfang Sea
  7. Quest Giver : Dolur Axebeard
  8. Preceded by : None
  9. Followed by : A Murky Miasma of a Mystery
  10. --]]
  11. function Accepted(Quest, QuestGiver, Player)
  12. FaceTarget(QuestGiver, Player)
  13. conversation = CreateConversation()
  14. PlayFlavor(QuestGiver, "dolur_axebeard/halas/great_shelf/dolur_axebeard/dolur_axebeard012.mp3", "", "", 2959588390, 53288716, Player)
  15. AddConversationOption(conversation, "I will be back shortly.")
  16. AddConversationOption(conversation, "Any orc that ambushes me will be sorry.")
  17. StartConversation(conversation, QuestGiver, Player, "The snowflurries tend to wander around the icy cliffs just outside our hideaway. Ye can't miss 'em. Brell guide ye, " .. GetName(Player) .. ".")
  18. end
  19. function Declined(Quest, QuestGiver, Player)
  20. end
  21. function Deleted(Quest, QuestGiver, Player)
  22. end
  23. function Init(Quest)
  24. AddQuestStepKill(Quest, 1, "I must collect several glimmer powders from luminous snowflurries.", 8, 90, "I must collect several glimmer powders from luminous snowflurries. The snowflurries tend to wander just outside the cave, at the Great Shelf, or on Pride Overlook.", 3479, 4700064)
  25. AddQuestStepCompleteAction(Quest, 1, "GotPowder")
  26. AddQuestRewardCoin(Quest, math.random(23,80), math.random(13,22), 0, 0)
  27. end
  28. function GotPowder(Quest, QuestGiver, Player)
  29. UpdateQuestTaskGroupDescription(Quest, 1, "I have collected several glimmer powders.")
  30. 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)
  31. AddQuestStepCompleteAction(Quest, 2, "CompleteQuest")
  32. end
  33. function CompleteQuest(Quest, QuestGiver, Player)
  34. GiveQuestReward(Quest, Player)
  35. end
  36. function Reload(Quest, QuestGiver, Player, Step)
  37. if Step == 1 then
  38. GotPowder(Quest, QuestGiver, Player)
  39. end
  40. end