a_rings_calling.lua 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. --[[
  2. Script Name : Quests/TheCommonlands/a_rings_calling.lua
  3. Script Purpose : Handles the quest, "A Ring's Calling"
  4. Script Author : premierio015
  5. Script Date : 29.05.2021
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Commonlands
  8. Quest Giver : The Ring of Val'marr
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepLocation(Quest, 1, "I must explore a tower in the ruins of Val'marr", 10, "I must find and explore the tower in the ruins of Val'marr.", 11, 552, -30, 193)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. -- Add dialog here for when the quest is accepted
  18. end
  19. function Declined(Quest, QuestGiver, Player)
  20. -- Add dialog here for when the quest is declined
  21. end
  22. function Deleted(Quest, QuestGiver, Player)
  23. -- Remove any quest specific items here when the quest is deleted
  24. end
  25. function Step1Complete(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 1, "I discovered the correct tower in Val'marr.")
  27. UpdateQuestTaskGroupDescription(Quest, 1, "I have found the tower in the ruins of Val'marr.")
  28. AddQuestStepKill(Quest, 2, "I must slay some fallen crusaders of Val'marr", 10, 100, "I must release the crusader souls of Val'marr by defeating their skeletons here in the ruins.", 91, 330077, 330329)
  29. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  30. end
  31. function QuestComplete(Quest, QuestGiver, Player)
  32. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  33. UpdateQuestStepDescription(Quest, 2, "I have slain the fallen crusaders of Val'marr.")
  34. UpdateQuestTaskGroupDescription(Quest, 2, "After crushing the cursed life from the undead crusaders I have released their souls.")
  35. UpdateQuestDescription(Quest, "After finding a brilliant gold ring I was drawn to the ruins of an ancient castle, Val'marr. There I brought this ring that somehow caused an ancient spirit to awaken. I was forced to battle undead crusaders. I feel as though I have released their souls now. ")
  36. GiveQuestReward(Quest, Player)
  37. if HasItem(Player, 14224) then
  38. RemoveItem(Player, 14224)
  39. end
  40. end
  41. function Reload(Quest, QuestGiver, Player, Step)
  42. if Step == 1 then
  43. Step1Complete(Quest, QuestGiver, Player)
  44. elseif Step == 2 then
  45. QuestComplete(Quest, QuestGiver, Player)
  46. end
  47. end