elixir_for_tillheel.lua 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. --[[
  2. Script Name : elixir_for_tillheel.lua
  3. Script Purpose : Handles the quest, "Elixir for Tillheel"
  4. Script Author : Dorbin
  5. Script Date : 3/6/2022
  6. Script Notes :
  7. Zone : Nettleville
  8. Quest Giver : Garion Dunam
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "I need to find Assistant Tillheel in Graystone Yard.", 1, "I need to deliver an elixir to Assistant Tillheel in Graystone Yard.", 8, 2350056)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. -- Add dialog here for when the quest is accepted
  18. end
  19. function Declined(Quest, QuestGiver, Player)
  20. -- Add dialog here for when the quest is declined
  21. end
  22. function Deleted(Quest, QuestGiver, Player)
  23. -- Remove any quest specific items here when the quest is deleted
  24. end
  25. function Step1Complete(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 1, "I have found Assistant Tillheel.")
  27. UpdateQuestTaskGroupDescription(Quest, 1, "I have found Assistant Tillheel.")
  28. AddQuestStepChat(Quest, 2, "I need to return to Garion in Nettleville.", 1, "I need to deliver this delivery payment to Garion Dunam in Nettleville", 401, 2330027)
  29. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  30. end
  31. function QuestComplete(Quest, QuestGiver, Player)
  32. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  33. UpdateQuestStepDescription(Quest, 2, "I returned to Garion with his payment.")
  34. UpdateQuestTaskGroupDescription(Quest, 2, "I returned to Garion.")
  35. UpdateQuestDescription(Quest, "I delivered the elixir of mistmire to Assistant Tillheel. I then returned his payment to Alchemist Garion Dunam. Garion allowed me to keep the change and even threw in a bag as payment for my service.")
  36. GiveQuestReward(Quest, Player)
  37. end
  38. function Reload(Quest, QuestGiver, Player, Step)
  39. if Step == 1 then
  40. Step1Complete(Quest, QuestGiver, Player)
  41. elseif Step == 2 then
  42. QuestComplete(Quest, QuestGiver, Player)
  43. end
  44. end