rygorr_tool_taking.lua 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. --[[
  2. Script Name : Quests/FrostfangSea/rygorr_tool_taking.lua
  3. Script Purpose : the quest Ry'Gorr Tool Taking
  4. Script Author : theFoof
  5. Script Date : 2013.7.10
  6. Script Notes :
  7. Zone : Frostfang Sea
  8. Quest Giver : Odon Scourgeson
  9. Preceded by : Campside Spores
  10. Followed by : Watch Out Below!
  11. --]]
  12. function Init(Quest)
  13. AddQuestRewardCoin(Quest, math.random(5,90), math.random(27,40), 0, 0)
  14. AddQuestStep(Quest, 1, "Obtain the Ry'Gorr digging tools from within the Demon's Delve tunnels.", 6, 100, "Return to the Demon's Delve tunnels below Erollis in search of the magically imbued tools.", 1668)
  15. AddQuestStepCompleteAction(Quest, 1, "GotPicks")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. end
  19. function Deleted(Quest, QuestGiver, Player)
  20. end
  21. function Declined(Quest, QuestGiver, Player)
  22. end
  23. function GotPicks(Quest, QuestGiver, Player)
  24. UpdateQuestTaskGroupDescription(Quest, 1, "You've stolen enough of the Ry'Gorr digging tools.")
  25. AddQuestStepChat(Quest, 2, "Return to Odon Scourgeson now that you've stolen enough of the Ry'Gorr digging tools.", 1, "You should return to Odon Scourgeson, at Cragged Spine, now that you've stolen enough of the magically imbued Ry'Gorr digging tools.", 0, 4700108)
  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. GotPicks(Quest, QuestGiver, Player)
  34. end
  35. end