flame_on.lua 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. --[[
  2. Script Name : Quests/FrostfangSea/flame_on.lua
  3. Script Purpose : the quest Flame On!
  4. Script Author : theFoof
  5. Script Date : 2013.5.9
  6. Zone : Frostfang Sea
  7. Quest Giver : Yasha Redblade
  8. Preceded by : Boatload of Work
  9. Followed by : Ride Upon the Gwenevyn II
  10. --]]
  11. function Init(Quest)
  12. AddQuestRewardCoin(Quest, math.random (10,80), math.random(1,2), 0, 0)
  13. AddQuestStep(Quest, 1, "Light the signal fire.", 1, 100, "I must climb the rope ladder affixed to the imposing wall of ice east of Yasha Redblade to reach the signal fire.", 2233)
  14. AddQuestStepCompleteAction(Quest, 1, "LitFire")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. end
  18. function Declined(Quest, QuestGiver, Player)
  19. end
  20. function LitFire(Quest, QuestGiver, Player)
  21. UpdateQuestTaskGroupDescription(Quest, 1, "I have lit the signal fire.")
  22. AddQuestStep(Quest, 2, "Kill the ambushing orcs!", 1, 100, "I was ambushed by orcs while I was lighting the signal fire on the ice shelf above the eastern end of the island!", 0)
  23. AddQuestStepCompleteAction(Quest, 2, "KilledOrcs")
  24. end
  25. function KilledOrcs(Quest, QuestGiver, Player)
  26. UpdateQuestTaskGroupDescription(Quest, 2, "I was ambushed by orcs while I was lighting the signal fire! I faced them valiantly and live to tell the tale.")
  27. AddQuestStepChat(Quest, 3, "Return to Yasha Redblade", 1, "I am to return to Yasha Redblade near the broken ship's hull on Pilgrims' Landing.", 0, 4700005)
  28. AddQuestStepCompleteAction(Quest, 3, "CompletedQuest")
  29. end
  30. function CompletedQuest(Quest, QuestGiver, Player)
  31. GiveQuestReward(Quest, Player)
  32. end
  33. function Reload(Quest, QuestGiver, Player, Step)
  34. if Step == 1 then
  35. LitFire(Quest, QuestGiver, Player)
  36. elseif Step == 2 then
  37. KilledOrcs(Quest, QuestGiver, Player)
  38. elseif Step == 3 then
  39. CompletedQuest(Quest, QuestGiver, Player)
  40. end
  41. end