sifting_through_the_grizzly_garbage.lua 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. --[[
  2. Script Name : Quests/FrostfangSea/sifting_through_the_grizzly_garbage.lua
  3. Script Purpose : the quest Sifting Through the Grizzly Garbage
  4. Script Author : theFoof
  5. Script Date : 2013.5.19
  6. Zone : Frostfang Sea
  7. Quest Giver : Verien Skysigh
  8. Preceded by : Beets the Alternative
  9. Followed by :
  10. --]]
  11. function Accepted(Quest, QuestGiver, Player)
  12. end
  13. function Declined(Quest, QuestGiver, Player)
  14. end
  15. function Deleted(Quest, QuestGiver, Player)
  16. end
  17. function Init(Quest)
  18. AddQuestRewardCoin(Quest, math.random(10,80), math.random(2,5), 0, 0)
  19. AddQuestStep(Quest, 1, "Search for any sign of the orcs within the blizzard grizzly den.", 3, 100, "Search for any sign of the orcs within the blizzard grizzly den north west of the pilgrims' camp in Gwenevyn's Cove.", 2359)
  20. AddQuestStepCompleteAction(Quest, 1, "Searched")
  21. end
  22. function Searched(Quest, QuestGiver, Player)
  23. RemoveSpawnAccess(GetSpawn(QuestGiver, 4701834), Player)
  24. UpdateQuestTaskGroupDescription(Quest, 1, "You found no sign of the orcs within the blizzard grizzly den.")
  25. AddQuestStepChat(Quest, 2, "Return to Verien Skysigh at the pilgrims' camp. You told Verien how there was no sign of the orcs within the blizzard grizzly cave.", 1, "You should return to Verien Skysigh, at the pilgrims' camp within Gwenevyn's Cove, even though you haven't been able to find any sign of the orcs.", 0, 4700034)
  26. AddQuestStepCompleteAction(Quest, 2, "CompleteQuest")
  27. end
  28. function CompleteQuest(Quest, QuestGiver, Player)
  29. GiveQuestReward(Quest, Player)
  30. end
  31. function Reload(Quest, QuestGiver, Player, Step)
  32. if Step == 1 then
  33. Searched(Quest, QuestGiver, Player)
  34. elseif Step == 2 then
  35. CompleteQuest(Quest, QuestGiver, Player)
  36. end
  37. end