xalieas_request.lua 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. --[[
  2. Script Name : xalieas_request.lua
  3. Script Purpose : Handles the quest, "Xaliea's Request"
  4. Script Author : vo1d
  5. Script Date : 10/25/2019
  6. Script Notes :
  7. Zone : Outpost of the Overlord
  8. Quest Giver : Priestess Xaliea
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. local priestess_xaliea = 2780019
  13. local shipwrecked_explorer = 2780004
  14. local shipwrecked_swashbuckler = 2780005
  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, 100, "I need to acquire three bone chips for Xaliea.", 322, shipwrecked_explorer, shipwrecked_swashbuckler)
  17. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  18. end
  19. function Accepted(Quest, QuestGiver, Player)
  20. FaceTarget(QuestGiver, Player)
  21. Conversation = CreateConversation()
  22. PlayFlavor(QuestGiver, "voiceover/english/priestess_xaliea/tutorial_island01/xaliea/xaliea_ally_secondtalk_01.mp3", "", "", 125454777, 4152864248, Player)
  23. AddConversationOption(Conversation, "I will do so.")
  24. StartConversation(Conversation, QuestGiver, Player, "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!")
  25. end
  26. function Declined(Quest, QuestGiver, Player)
  27. -- Add dialog here for when the quest is declined
  28. end
  29. function Deleted(Quest, QuestGiver, Player)
  30. -- Remove any quest specific items here when the quest is deleted
  31. end
  32. function Step1Complete(Quest, QuestGiver, Player)
  33. UpdateQuestStepDescription(Quest, 1, "I have collected the three bonechips for Xaliea.")
  34. UpdateQuestTaskGroupDescription(Quest, 1, "I have the bone chips for Xaliea.")
  35. 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)
  36. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  37. end
  38. function QuestComplete(Quest, QuestGiver, Player)
  39. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  40. UpdateQuestStepDescription(Quest, 2, "I have given the bone chips to Xaliea.")
  41. UpdateQuestTaskGroupDescription(Quest, 2, "I have taken the bonechips back to Xaliea.")
  42. 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.")
  43. GiveQuestReward(Quest, Player)
  44. end
  45. function Reload(Quest, QuestGiver, Player, Step)
  46. if Step == 1 then
  47. Step1Complete(Quest, QuestGiver, Player)
  48. elseif Step == 2 then
  49. QuestComplete(Quest, QuestGiver, Player)
  50. end
  51. end