9
3

ASolidifiedFront.lua 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. --[[
  2. Script Name : Quests/Darklight/ASolidifiedFront.lua
  3. Script Purpose : Handles the quest, "A Solidified Front"
  4. Script Author : Cynnar
  5. Script Date : 7/3/2015
  6. Zone : Darklight Wood
  7. Quest Giver : Verex N'Za
  8. Preceded by : None
  9. Followed by : Elemental Encroachment (ElementalEncroachment.lua) Sealing the Rift (SealingtheRift.lua)
  10. // Note:
  11. // Removed duplicate quest rewards
  12. --]]
  13. local ASolidifiedFront = 120
  14. function Init(Quest)
  15. AddQuestStepChat(Quest, 1, "Locate Udiyitas X'Kilrea", 1, "I should travel outisde the breach in the southern wall of Hate's Envy and find Udiyitas X'Kilrae and Pellandra D'Xatyl.", 11, 340226)
  16. AddQuestStepChat(Quest, 2, "Locate Pellandra D'Xatyl", 1, "I should travel outisde the breach in the southern wall of Hate's Envy and find Udiyitas X'Kilrae and Pellandra D'Xatyl.", 11, 340038)
  17. AddQuestStepCompleteAction(Quest, 1, "Udiyitas")
  18. AddQuestStepCompleteAction(Quest, 2, "Pellandra")
  19. end
  20. function CheckProgress(Quest, QuestGiver, Player)
  21. if QuestStepIsComplete(Player, ASolidifiedFront, 1) and QuestStepIsComplete(Player, ASolidifiedFront, 2) then
  22. UpdateQuestTaskGroupDescription(Quest, 1, "I met with both Udiyitas X'Kilrae and Pellandra D'Xatyl outside the southern breach in the walls of Hate's Envy.")
  23. QuestComplete(Quest, QuestGiver, Player)
  24. end
  25. end
  26. function QuestComplete(Quest, QuestGiver, Player)
  27. SetCompleteFlag(Quest)
  28. GiveQuestReward(Quest, Player)
  29. end
  30. function Udiyitas(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 1, "I spoke with Udiyitas X'Kilrae")
  32. CheckProgress(Quest, QuestGiver, Player)
  33. end
  34. function Pellandra(Quest, QuestGiver, Player)
  35. UpdateQuestStepDescription(Quest, 2, "I spoke with Pellandra D'Xatyl")
  36. CheckProgress(Quest, QuestGiver, Player)
  37. end
  38. function Accepted(Quest, QuestGiver, Player)
  39. FaceTarget(QuestGiver, Player)
  40. conversation = CreateConversation()
  41. StartConversation(conversation, QuestGiver, Player, "May Innoruuk guide your blade, young one!")
  42. end
  43. function Deleted(Quest, QuestGiver, Player)
  44. end
  45. function Declined(Quest, QuestGiver, Player)
  46. end
  47. function Reload(Quest, QuestGiver, Player, Step)
  48. if QuestStepIsComplete(Player, ASolidifiedFront, 1) then
  49. Udiyitas(Quest, QuestGiver, Player)
  50. end
  51. if QuestStepIsComplete(Player, ASolidifiedFront, 2) then
  52. Pellandra(Quest, QuestGiver, Player)
  53. end
  54. end