9
3

quell_the_undead.lua 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. --[[
  2. Script Name : quell_the_undead.lua
  3. Script Purpose : Handles the quest, "Quell the Undead"
  4. Script Author : premierio015
  5. Script Date : 26.03.2021
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Wailing Caves
  8. Quest Giver : Ronam Olansk
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I must kill fifteen orc skeletons", 15, 100, "I'm destroying the risen skeletons of orc warriors in the Wailing Caves for Ronam Olansk.", 611, 2580033, 2580002, 2580043, 2580044, 2580038, 2580000, 2580008, 2580015, 2580039)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. local conversation = CreateConversation()
  19. AddConversationOption(conversation, "Don't worry about me. Have concern with your villagers until the job is done.")
  20. StartConversation(conversation, QuestGiver, Player, "I know the task will not be easy.The halls of the Wailing Caves are haunted with the angry, tormented ghosts of orcs left to a grisly death by the members of the Freeport Militia. I imagine quite a few will need to fall before any progress can be made.")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. -- Add dialog here for when the quest is declined
  24. end
  25. function Deleted(Quest, QuestGiver, Player)
  26. -- Remove any quest specific items here when the quest is deleted
  27. end
  28. function Step1Complete(Quest, QuestGiver, Player)
  29. UpdateQuestStepDescription(Quest, 1, "I have killed the orc skeletons.")
  30. UpdateQuestTaskGroupDescription(Quest, 1, "I've destroyed enough orc skeletons in the Wailing Caves to satisfy Ronam Olansk's needs for now.")
  31. AddQuestStepChat(Quest, 2, "I must return to speak with Ronam Olansk", 1, "I must return to Ronam Olansk at the nomad camp to inform him of the completion of his task.", 11, 330215)
  32. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  33. end
  34. function QuestComplete(Quest, QuestGiver, Player)
  35. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  36. UpdateQuestStepDescription(Quest, 2, "I've spoken with Ronam Olansk.")
  37. UpdateQuestTaskGroupDescription(Quest, 2, "I've returned to the nomad camp and spoken with Ronam Olansk.")
  38. UpdateQuestDescription(Quest, "I drove back the undead to protect the nomads, though I feel they shall soon return. Those souls shall never rest for long, I fear. Ronam Olansk kept to his word and rewarded me for my effort, though I believe they may be in vain should he not relocate his people.")
  39. GiveQuestReward(Quest, Player)
  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