9
3

ADimLight.lua 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. --[[
  2. Script Name : ADimLight.lua
  3. Script Purpose : Handles the quest, "A Dim Light"
  4. Script Author : jakejp
  5. Script Date : 6/11/2018
  6. Script Notes :
  7. Zone : Butcherblock Mountains
  8. Quest Giver : Geldrani A'Zhi'Tel
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I must slay kobold mystics in Butcherblock Mountains to locate a luminescent sphere.", 1, 80, "I must collect a luminescent sphere for Geldrani.", 1180, 1080247, 1081121)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Step1Complete(Quest, QuestGiver, Player)
  17. UpdateQuestStepDescription(Quest, 1, "It appears I have found the luminescent sphere.")
  18. UpdateQuestTaskGroupDescription(Quest, 1, "It appears I have found the sphere.")
  19. AddQuestStepChat(Quest, 2, "Bring the luminescent sphere to Geldrani.", 1, "I need to bring the luminescent sphere to Geldrani at the Highland Outposts in the Butcherblock Mountains.", 1180, 1081108)
  20. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  21. end
  22. function QuestComplete(Quest, QuestGiver, Player)
  23. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  24. UpdateQuestStepDescription(Quest, 2, "I returned the luminescent sphere to Geldrani.")
  25. UpdateQuestTaskGroupDescription(Quest, 2, "Geldrani appeared satisfied with what I brought him, and he paid me for my work.")
  26. UpdateQuestDescription(Quest, "I managed to find the sphere Geldrani was looking for. It was strange, because it didn't have any weight to it, like it was simply a solid ball of warm light.")
  27. GiveQuestReward(Quest, Player)
  28. end
  29. function Reload(Quest, QuestGiver, Player, Step)
  30. if Step == 1 then
  31. Step1Complete(Quest, QuestGiver, Player)
  32. elseif Step == 2 then
  33. QuestComplete(Quest, QuestGiver, Player)
  34. end
  35. end
  36. function Accepted(Quest, QuestGiver, Player)
  37. FaceTarget(QuestGiver, Player)
  38. conversation = CreateConversation()
  39. PlayFlavor(QuestGiver, "geldrani_a_zhi_tel/_exp03/exp03_rgn_butcherblock/geldrani/qst_geldrani_004.mp3", "", "", 531507699, 1779782633, Player)
  40. AddConversationOption(conversation, "All right, then. I will return soon.", "dlg_25_4")
  41. StartConversation(conversation, QuestGiver, Player, "Excellent, then. As I said, the mystics are the ones that carry the charms, so you will want to seek them out in favor of the rest of their pack. Bring the orb you recover back to me.")
  42. end
  43. function Declined(Quest, QuestGiver, Player)
  44. -- Add dialog here for when the quest is declined
  45. end