dyes_for_danielle.lua 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. --[[
  2. Script Name : Quests/NorthQeynos/dyes_for_danielle.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.05.11 02:05:37
  5. Script Purpose :
  6. Zone : NorthQeynos
  7. Quest Giver: Danielle Clothspinner
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. --
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "I need to pick up two dye tubs from Khalil'Mun.", 1, "Danielle Clothspinner wants me to pick up two dye tubs from Khalil'Mun in South Qeynos.", 11, 2310048)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. UpdateQuestZone(Quest,"South Qeynos")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. -- Add dialog here for when the quest is accepted
  19. end
  20. function Declined(Quest, QuestGiver, Player)
  21. -- Add dialog here for when the quest is declined
  22. end
  23. function Deleted(Quest, QuestGiver, Player)
  24. -- Remove any quest specific items here when the quest is deleted
  25. end
  26. function Step1Complete(Quest, QuestGiver, Player)
  27. UpdateQuestStepDescription(Quest, 1, "I picked up the dye from Khalil'Mun.")
  28. UpdateQuestTaskGroupDescription(Quest, 1, "Khalil'Mun was happy to receive payment for his marvelous dye.")
  29. AddQuestStepChat(Quest, 2, "I need to deliver this dye to Danielle Clothspinner.", 1, "Danielle Clothspinner is expecting this dye in North Qeynos so she can complete her project.", 356, 2220061)
  30. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  31. UpdateQuestZone(Quest,"South Qeynos")
  32. end
  33. function QuestComplete(Quest, QuestGiver, Player)
  34. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  35. UpdateQuestStepDescription(Quest, 2, "I delivered dye to Danielle Clothspinner.")
  36. UpdateQuestTaskGroupDescription(Quest, 2, "Danielle Clothspinner was happy to finally get the dye she was waiting for to finish her work.")
  37. UpdateQuestDescription(Quest, "After returning with the dyes from Khalil'Mun's shop, Danielle was able to complete her work for the day. I found myself happy to do the task for her, and the pay for the pick-up wasn't too shabby either.")
  38. GiveQuestReward(Quest, Player)
  39. end
  40. function Reload(Quest, QuestGiver, Player, Step)
  41. if Step == 1 then
  42. Step1Complete(Quest, QuestGiver, Player)
  43. elseif Step == 2 then
  44. QuestComplete(Quest, QuestGiver, Player)
  45. end
  46. end