9
3

running_with_cake.lua 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. --[[
  2. Script Name : Quests/SouthQeynos/running_with_cake.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.06.02 08:06:10
  5. Script Purpose :
  6. Zone : SouthQeynos
  7. Quest Giver: Tibby Copperpot
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "I must speak with Harold Dunstan.", 1, "I should get these baked goods from Tibby to Harold Dunstan at Irontoe's East in North Qeynos.", 299, 2220095)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. UpdateQuestZone(Quest,"North Qeynos")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. local conversation = CreateConversation()
  19. AddConversationOption(conversation, "I'll be sure Harold gets these.")
  20. StartConversation(conversation, QuestGiver, Player, "Splended! I am so glad to hear it! Here, I have a bundle goodies all put together for Harold at Irontoes East in the northern part of the city. Please be careful not to squish them- we are trying to prove we have the most scrumptious treats around!")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. -- Add dialog here for when the quest is declined
  24. end
  25. function Deleted(Quest, QuestGiver, Player)
  26. -- Remove any quest specific items here when the quest is deleted
  27. end
  28. function Step1Complete(Quest, QuestGiver, Player)
  29. UpdateQuestStepDescription(Quest, 1, "I have spoken with Harold.")
  30. UpdateQuestTaskGroupDescription(Quest, 1, "I have taken the baked goods from Tibby to Harold.")
  31. UpdateQuestZone(Quest,"South Qeynos")
  32. AddQuestStepChat(Quest, 2, "I need to let Tibby know her delivery has been made.", 1, "Tibby Copperpot will want to know her pastry delivery made it safely. She is at the Food on Foot in South Qeynos", 11, 2310008)
  33. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  34. end
  35. function QuestComplete(Quest, QuestGiver, Player)
  36. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  37. UpdateQuestStepDescription(Quest, 2, "I have returned to Tibby.")
  38. UpdateQuestTaskGroupDescription(Quest, 2, "Tibby was quite pleased to hear that her delivery was so well recieved.")
  39. UpdateQuestDescription(Quest, "I have delivered the baked goods from Tibby to Harold at Irontoe's East in North Qeynos. Harold is very excited to have such variety in his store and hopes to attract much more business. A few drinks and bread for my efforts were well worth it.")
  40. GiveQuestReward(Quest, Player)
  41. end
  42. function Reload(Quest, QuestGiver, Player, Step)
  43. if Step == 1 then
  44. Step1Complete(Quest, QuestGiver, Player)
  45. elseif Step == 2 then
  46. QuestComplete(Quest, QuestGiver, Player)
  47. end
  48. end