9
3

potions_for_jodi.lua 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. --[[
  2. Script Name : Quests/GraystoneYard/potions_for_jodi.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.01.21 01:01:42
  5. Script Purpose :
  6. Zone : GraystoneYard
  7. Quest Giver: Jodi
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "I must speak to Dondl Fuzzlecutte.", 1, "I must go to Baubbleshire and speak with Fuzzlecutter.", 10, 2380048)
  13. AddQuestStepCompleteAction(Quest, 1, "Delivery")
  14. UpdateQuestZone(Quest, "Baubbleshire")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. conversation = CreateConversation()
  18. PlayFlavor(QuestGiver,"","","thank",0,0,Player)
  19. AddConversationOption(conversation, "It is bound to move eventually. I'll be back.")
  20. StartConversation(conversation, QuestGiver, Player, "You are doing me a huge favor! I don't want to lose my place in line.")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. PlayFlavor(QuestGiver,"","Fine. I'll just wait here a little longer.","sigh",0,0,Player)
  24. end
  25. function Delivery(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 1, "I spoke to Fuzzlecutter")
  27. UpdateQuestTaskGroupDescription(Quest, 1, "I spoke to Fuzzlecutter in Baubbleshire.")
  28. AddQuestStepChat(Quest, 2, "I need to return to Jodi.", 1, "I need to return to Jodi with her potions and leftover change.", 358, 2350022)
  29. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  30. UpdateQuestZone(Quest, "Graystone Yard")
  31. end
  32. function QuestComplete(Quest, QuestGiver, Player)
  33. UpdateQuestStepDescription(Quest, 2, "I've returned to Jodi.")
  34. UpdateQuestTaskGroupDescription(Quest, 2, "I've given Jodi her potions she needed picking up.")
  35. UpdateQuestDescription(Quest, "I delivered Fuzzlecutter's potions to Jodi in Graystone. She was very thankful and allowed me to keep the change.")
  36. GiveQuestReward(Quest, Player)
  37. end
  38. function Reload(Quest, QuestGiver, Player, Step)
  39. if Step == 1 then
  40. Delivery(Quest, QuestGiver, Player)
  41. elseif Step == 2 then
  42. QuestComplete(Quest, QuestGiver, Player)
  43. end
  44. end