the_icemanes_cometh.lua 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. --[[
  2. Script Name : Quests/FrostfangSea/the_icemanes_cometh.lua
  3. Script Purpose : the quest The Icemanes Cometh
  4. Script Author : theFoof
  5. Script Date : 2013.5.20
  6. Zone : Frostfang Sea
  7. Quest Giver : Verien Skysigh
  8. Preceded by : Pilgrim Pelts
  9. Followed by : None
  10. --]]
  11. function Accepted(Quest, QuestGiver, Player)
  12. if HasItem(Player, 46664) == false then
  13. SummonItem(Player, 46664, 1)
  14. end
  15. FaceTarget(QuestGiver, Player)
  16. conversation = CreateConversation()
  17. PlayFlavor(QuestGiver, "verien_skysigh/halas/gwenevyns_cove/verien_skysigh_030.mp3", "", "", 2735698585, 1703243228, Player)
  18. AddConversationOption(conversation, "I understand.")
  19. StartConversation(conversation, QuestGiver, Player, "Be sure to escort them back here. Then tether them to the icemane post nearby. That is our only hope in dealing with them.")
  20. end
  21. function Declined(Quest, QuestGiver, Player)
  22. end
  23. function Deleted(Quest, QuestGiver, Player)
  24. SetTempVariable(Player, "cub1", nil)
  25. SetTempVariable(Player, "cub2", nil)
  26. SetTempVariable(Player, "cub3", nil)
  27. SetTempVariable(Player, "cub4", nil)
  28. end
  29. function Init(Quest)
  30. AddQuestRewardCoin(Quest, math.random(1,80), math.random(6,12), 0, 0)
  31. AddQuestStep(Quest, 1, "Use the binding tether on icemane cubs upon the Icemane Plains, then bring them back to the lion post near Verien Skysigh at the pilgrims' camp within Gwenevyn's Cove.", 4, 100, "Verien believes the grizzlies will avoid attacking any pilgrim who is being escorted by icemane cubs. He has tasked you with leashing some and bringing them back to the camp using the binding tether he provided you.", 2329)
  32. AddQuestStepCompleteAction(Quest, 1, "GotCubs")
  33. end
  34. function GotCubs(Quest, QuestGiver, Player)
  35. UpdateQuestTaskGroupDescription(Quest, 1, "You brought back enough tethered icemane cubs.")
  36. AddQuestStepChat(Quest, 2, "Return to Verien Skysigh now that you have presented him with enough tethered icemane cubs.", 1, "You should return to Verien Skysigh, at the pilgrims' camp within Gwenevyn's Cove, now that you have presented him with enough tethered icemane cubs.", 0, 4700034)
  37. AddQuestStepCompleteAction(Quest, 2, "CompleteQuest")
  38. end
  39. function CompleteQuest(Quest, QuestGiver, Player)
  40. GiveQuestReward(Quest, Player)
  41. end
  42. function Reload(Quest, QuestGiver, Player, Step)
  43. if Step == 1 then
  44. GotCubs(Quest, QuestGiver, Player)
  45. elseif Step == 2 then
  46. CompleteQuest(Quest, QuestGiver, Player)
  47. end
  48. end