valley_of_the_rogue_magi_.lua 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. --[[
  2. Script Name : valley_of_the_rogue_magi.lua
  3. Script Purpose : Handles the quest, "Valley of the Rogue Magi"
  4. Script Author : premierio015
  5. Script Date : 26.05.2021
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Commonlands, Valley of the Rogue Magi
  8. Quest Giver : Potion of Earthwalking
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. SetQuestFeatherColor(Quest, 3)
  14. SetQuestRepeatable(Quest)
  15. AddQuestStep(Quest, 1, "I need to enter the Valley of the Rogue Magi through the rockpile in The Commonlands.", 1, 100, "Having consumed this potion, I need to enter the Valley of the Rogue Magi through the rockpile in The Commonlands.", 11)
  16. AddQuestStepCompleteAction(Quest, 1, "QuestComplete")
  17. end
  18. function Accepted(Quest, QuestGiver, Player)
  19. if HasItem(Player, 10564) then
  20. RemoveItem(Player, 10564)
  21. end
  22. end
  23. function Declined(Quest, QuestGiver, Player)
  24. -- Add dialog here for when the quest is declined
  25. end
  26. function Deleted(Quest, QuestGiver, Player)
  27. -- Remove any quest specific items here when the quest is deleted
  28. end
  29. function QuestComplete(Quest, QuestGiver, Player)
  30. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  31. UpdateQuestStepDescription(Quest, 1, "I have entered the Valley of the Rogue Magi")
  32. UpdateQuestTaskGroupDescription(Quest, 1, "I have discovered the secrets of the Valley of the Rogue Magi.")
  33. UpdateQuestDescription(Quest, "I have discovered the secrets of the Valley of the Rogue Magi.")
  34. GiveQuestReward(Quest, Player)
  35. end
  36. function Reload(Quest, QuestGiver, Player, Step)
  37. if Step == 1 then
  38. QuestComplete(Quest, QuestGiver, Player)
  39. end
  40. end