call_to_arms.lua 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. --[[
  2. Script Name : Quests/FrostfangSea/call_to_arms.lua
  3. Script Purpose : Handles the quest "Call to Arms"
  4. Script Author : thefoof
  5. Script Date : 2013.5.4
  6. Zone : Frostfang Sea
  7. Quest Giver : Yasha Redblade
  8. Preceded by : Stonefist's Art of Combat
  9. Followed by : Boatload of Work
  10. --]]
  11. function Init(Quest)
  12. AddQuestRewardCoin(Quest, math.random(8,80), math.random(2,5), 0, 0)
  13. AddQuestStepKill(Quest, 1, "Slay Ry'Gorr centurions.", 4, 100, "I am to slay any of the Ry'Gorr centurions that are attacking the southeastern side of Pilgrims' Landing", 611, 4700027, 4700413)
  14. AddQuestStepCompleteAction(Quest, 1, "KilledOrcs")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. end
  18. function Declined(Quest, QuestGiver, Player)
  19. end
  20. function KilledOrcs(Quest, QuestGiver, Player)
  21. UpdateQuestTaskGroupDescription(Quest, 1, "I defended Pilgrims' Landing by slaying several of the attacking Ry'Gorr centurions!")
  22. AddQuestStepChat(Quest, 2, "Return to Yasha Redblade", 1, "I am to return to to Yasha Redblade near the broken ship's hull on Pilgrims' Landing.", 0, 4700005)
  23. AddQuestStepCompleteAction(Quest, 2, "TalkedYasha")
  24. end
  25. function TalkedYasha(Quest, QuestGiver, Player)
  26. GiveQuestReward(Quest, Player)
  27. end
  28. function Reload(Quest, QuestGiver, Player, Step)
  29. if Step == 1 then
  30. KilledOrcs(Quest, QuestGiver, Player)
  31. elseif Step == 2 then
  32. TalkedYasha(Quest, QuestGiver, Player)
  33. end
  34. end