9
3

joining_the_forward_ranks.lua 4.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. --[[
  2. Script Name : Quests/QueensColony/joining_the_forward_ranks.lua
  3. Script Author : Zcoretri
  4. Script Date : 2015.09.04
  5. Script Purpose : Handles the quest "Joining the Forward Ranks"
  6. Zone : The Queen's Colony
  7. Quest Giver: Murrar Shar
  8. Preceded by: Into the Tainted Forest (into_the_tainted_forest.lua)
  9. Followed by: The Source of Evil (the_source_of_evil.lua)
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "Find Cleric Mara'Vaen at the head of Dead Canyon to the west past Sunset Meadow.", 1, "Find Cleric Mara'Vaen in the Dead Canyon to the west of the colony past Sunset Meadow.", 0, 2530111)
  13. AddQuestStepCompleteAction(Quest, 1, "step1_complete_talkedToCleric")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. if QuestGiver ~= nil then
  17. if GetDistance(Player, QuestGiver) < 30 then
  18. FaceTarget(NPC, Spawn)
  19. conversation = CreateConversation()
  20. PlayFlavor(QuestGiver, "voiceover/english/tutorial_revamp/murrar_shar/tutorial_island02_revamp/quests/citizenship/murrarshar/murrarshar034.mp3", "", "", 682752455, 1067974299)
  21. AddConversationOption(conversation, "I'll head there now.")
  22. StartConversation(conversation, QuestGiver, Player, "She can be found at the head of Dead Canyon to the west.")
  23. end
  24. end
  25. end
  26. function Declined(Quest, QuestGiver, Player)
  27. end
  28. function step1_complete_talkedToCleric(Quest, QuestGiver, Player)
  29. UpdateQuestStepDescription(Quest, 1, "I talked with Cleric Mara'Vaen, She already knew of my coming.")
  30. UpdateQuestTaskGroupDescription(Quest, 1, "I talked with Cleric Mara'Vaen, She already knew of my coming.")
  31. AddQuestStep(Quest, 2, "Pull lost scouts back to Cleric Mara'Vaen from Dead Canyon.", 3, 100, "Cleric Mara'Vaen thinks that she can resurrect some of the scouts that were consumed by evil. I need to somehow get them back to Mara'Vaen and she will attempt the resurrection.", 2516)
  32. AddQuestStepCompleteAction(Quest, 2, "step2_complete_pulledScouts")
  33. end
  34. function step2_complete_pulledScouts(Quest, QuestGiver, Player)
  35. UpdateQuestStepDescription(Quest, 2, "I pulled the lost scouts back To Cleric Mara'Vaen and she was able to resurrect them.")
  36. UpdateQuestTaskGroupDescription(Quest, 2, "I pulled the lost scouts back To Cleric Mara'Vaen and she was able to resurrect them.")
  37. AddQuestStepChat(Quest, 3, "Talk to Cleric Mara'Vaen.", 1, "I need to talk to Mara'Vaen now that the scouts have been resurrected.", 0, 2530111)
  38. AddQuestStepCompleteAction(Quest, 3, "step3_complete_talkedToMara")
  39. end
  40. function step3_complete_talkedToMara(Quest, QuestGiver, Player)
  41. UpdateQuestStepDescription(Quest, 3, "I talked to Cleric Mara'Vaen.")
  42. UpdateQuestTaskGroupDescription(Quest, 3, "I talked to Cleric Mara'Vaen and she informed me of the Morak that have risen from the dead.")
  43. AddQuestStepKill(Quest, 4, "Kill Morak devourers to the north in Dead Canyon.", 4, 100, "Cleric Mara'Vaen informed me of a breed of wolves that was once cleansed from the island. The evil that resides now has risen them from the dead and they now feed again. They are blocking the path of the scouts to get to the Abandoned Way, so I need to clear the way.", 142, 2530015)
  44. AddQuestStepCompleteAction(Quest, 4, "step4_complete_killedMorak")
  45. end
  46. function step4_complete_killedMorak(Quest, QuestGiver, Player)
  47. UpdateQuestStepDescription(Quest, 4, "I cleared the way for the scouts to get to the Abandoned Village.")
  48. UpdateQuestTaskGroupDescription(Quest, 4, "I cleared the way for the scouts to get to the Abandoned Village.")
  49. AddQuestStepChat(Quest, 5, "Return to Cleric Mara'Vaen.", 1, "I killed the Morak Devourers and I should return to Cleric Mara'Vaen.", 0, 2530111)
  50. AddQuestStepCompleteAction(Quest, 5, "questComplete")
  51. end
  52. function questComplete(Quest, QuestGiver, Player)
  53. UpdateQuestDescription(Quest, "I was able to help Cleric Mara'Vaen to resurrect some of the fallen scouts. I then cleared the way through the Morak so that the scouts could push through to the Abandoned Village. Cleric Mara'Vaen rewarded me for my assistance.")
  54. GiveQuestReward(Quest, Player)
  55. end
  56. function Reload(Quest, QuestGiver, Player, Step)
  57. if Step == 1 then
  58. step1_complete_talkedToCleric(Quest, QuestGiver, Player)
  59. elseif Step == 2 then
  60. step2_complete_pulledScouts(Quest, QuestGiver, Player)
  61. elseif Step == 3 then
  62. step3_complete_talkedToMara(Quest, QuestGiver, Player)
  63. elseif Step == 4 then
  64. step4_complete_killedMorak(Quest, QuestGiver, Player)
  65. end
  66. end