xalieas_request.lua 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. --[[
  2. Script Name : Quests/IsleofRefuge/xalieas_request.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.09.25 03:09:16
  5. Script Purpose :
  6. Zone : IsleofRefuge
  7. Quest Giver: Priestess Xaliea
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. local priestess_xaliea = 3250009
  13. local a_fallen_pirate = 3250145
  14. local Graybeard = 3250143
  15. function Init(Quest)
  16. AddQuestStepKill(Quest, 1, "I need to find three bonechips for Xaliea. Perhaps I can obtain some from the undead pirates on the northeastern shore of the bay.", 3, 25, "I need to acquire three bone chips for Xaliea.", 322, a_fallen_pirate, Graybeard)
  17. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  18. end
  19. function Accepted(Quest, QuestGiver, Player)
  20. FaceTarget(QuestGiver, Player)
  21. Dialog.New(QuestGiver, Player)
  22. Dialog.AddDialog("I can hear them, out there in the distance. Their bones are rattling and crackling. Oh! How I want to feel them crumble beneath my grasp. Hurry up, bring me those bone chips!")
  23. Dialog.AddVoiceover("voiceover/english/priestess_xaliea/tutorial_island01/xaliea/xaliea_ally_secondtalk_01.mp3", 125454777, 4152864248)
  24. PlayFlavor(QuestGiver,"","","scheme",0,0,Player)
  25. Dialog.AddOption("I will do so.")
  26. Dialog.Start()
  27. end
  28. function Declined(Quest, QuestGiver, Player)
  29. -- Add dialog here for when the quest is declined
  30. end
  31. function Deleted(Quest, QuestGiver, Player)
  32. -- Remove any quest specific items here when the quest is deleted
  33. end
  34. function Step1Complete(Quest, QuestGiver, Player)
  35. UpdateQuestStepDescription(Quest, 1, "I have collected the three bonechips for Xaliea.")
  36. UpdateQuestTaskGroupDescription(Quest, 1, "I have the bone chips for Xaliea.")
  37. AddQuestStepChat(Quest, 2, "I still need to take the bone chips to Xaliea.", 1, "I should take the bone chips back to Xaliea.", 418, priestess_xaliea)
  38. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  39. end
  40. function QuestComplete(Quest, QuestGiver, Player)
  41. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  42. UpdateQuestStepDescription(Quest, 2, "I have given the bone chips to Xaliea.")
  43. UpdateQuestTaskGroupDescription(Quest, 2, "I have taken the bonechips back to Xaliea.")
  44. UpdateQuestDescription(Quest, "I defeated some of the local skeletons and gave Priestess Xaliea the three bone chips. This seemed to satisfy her lust for adventure.")
  45. GiveQuestReward(Quest, Player)
  46. end
  47. function Reload(Quest, QuestGiver, Player, Step)
  48. if Step == 1 then
  49. Step1Complete(Quest, QuestGiver, Player)
  50. elseif Step == 2 then
  51. QuestComplete(Quest, QuestGiver, Player)
  52. end
  53. end