embers_for_xoort.lua 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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, 8270009,8270062)
  14. AddQuestStepCompleteAction(Quest, 1, "step1_complete_gotGoal")
  15. UpdateQuestZone(Quest,"Forest Ruins")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. FaceTarget(QuestGiver, Player)
  19. conversation = CreateConversation()
  20. AddConversationOption(conversation, "All right already!")
  21. StartConversation(conversation, QuestGiver, Player, "Well? What are you waiting for? Go, go, GO!")
  22. end
  23. function Declined(Quest, QuestGiver, Player)
  24. end
  25. function step1_complete_gotGoal(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 1, "I gathered an everburning coal.")
  27. UpdateQuestTaskGroupDescription(Quest, 1, "I gathered the embers that Sage Xoort needed from the guardians.")
  28. UpdateQuestZone(Quest, "Baubbleshire")
  29. 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)
  30. AddQuestStepCompleteAction(Quest, 2, "quest_complete")
  31. end
  32. function quest_complete(Quest, QuestGiver, Player)
  33. UpdateQuestStepDescription(Quest, 2, "I spoke with Sage Xoort in the Baubbleshire.")
  34. UpdateQuestTaskGroupDescription(Quest, 2, "I gave Sage Xoort all five embers that I gathered from the guardians.")
  35. 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.")
  36. GiveQuestReward(Quest, Player)
  37. end
  38. function Reload(Quest, QuestGiver, Player, Step)
  39. if Step == 1 then
  40. step1_complete_gotGoal(Quest, QuestGiver, Player)
  41. elseif Step == 2 then
  42. quest_complete(Quest, QuestGiver, Player)
  43. end
  44. end