embers_for_xoort.lua 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. --[[
  2. Script Name : Quests/Baubbleshire/embers_for_xoort.lua
  3. Script Purpose : Handles the quest, "Embers for Xoort"
  4. Script Author : Scatman
  5. Script Date : 2009.09.27
  6. (Script Fixes & Callout: Dorbin 2021.01.07)
  7. Zone : The Baubbleshire
  8. Quest Giver: Sage Xoort
  9. Preceded by: None
  10. Followed by: None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I need to gather coals from the fiery forgotten guardians in the Forest Ruins.", 2, 70, "I need to gather an everburning coal from the fiery forgotten guardians in the Forest Ruins.", 183, 1960019)
  14. AddQuestStepCompleteAction(Quest, 1, "step1_complete_gotGoal")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. conversation = CreateConversation()
  19. AddConversationOption(conversation, "All right already!")
  20. StartConversation(conversation, QuestGiver, Player, "Well? What are you waiting for? Go, go, GO!")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. end
  24. function step1_complete_gotGoal(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 1, "I gathered an everburning coal.")
  26. UpdateQuestTaskGroupDescription(Quest, 1, "I gathered the embers that Sage Xoort needed from the guardians.")
  27. UpdateQuestZone(Quest, "The Baubbleshire")
  28. AddQuestStepChat(Quest, 2, "I need to speak with Sage Xoort in the Baubbleshire.", 1, "I need to speak with Sage Xoort and give him the embers I gathered.", 0, 2380043)
  29. AddQuestStepCompleteAction(Quest, 2, "quest_complete")
  30. end
  31. function quest_complete(Quest, QuestGiver, Player)
  32. UpdateQuestStepDescription(Quest, 2, "I spoke with Sage Xoort in the Baubbleshire.")
  33. UpdateQuestTaskGroupDescription(Quest, 2, "I gave Sage Xoort all five embers that I gathered from the guardians.")
  34. UpdateQuestDescription(Quest, "I gathered the coals for Xoort's experimentation. Turns out to be a good thing that I did. Xoort gave me some coin for the job.")
  35. GiveQuestReward(Quest, Player)
  36. end
  37. function Reload(Quest, QuestGiver, Player, Step)
  38. if Step == 1 then
  39. step1_complete_gotGoal(Quest, QuestGiver, Player)
  40. elseif Step == 2 then
  41. quest_complete(Quest, QuestGiver, Player)
  42. end
  43. end