9
3

checking_up_on_lollas_kegs_.lua 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. --[[
  2. Script Name : Quests/Nettleville/checking_up_on_lollas_kegs_.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.01.21 05:01:42
  5. Script Purpose :
  6. Zone : Nettleville
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "I need to find Zipiff Clamorclang.", 1, " I need to find Zipiff Clamorclang in the Baubbleshire and find out how Lolla's new kegs are coming along.", 0, 2380010)
  13. AddQuestStepCompleteAction(Quest, 1, "Delivery")
  14. UpdateQuestZone(Quest, "Baubbleshire")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. conversation = CreateConversation()
  18. PlayFlavor(QuestGiver,"","","ponder",0,0,Player)
  19. AddConversationOption(conversation, "I'll just be going now.")
  20. AddConversationOption(conversation, "Well, alright then.")
  21. StartConversation(conversation, QuestGiver, Player, "Great. Thanks. Now do I have enough glasses for...")
  22. end
  23. function Declined(Quest, QuestGiver, Player)
  24. end
  25. function Delivery(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 1, " I found Zipiff Clamorclang.")
  27. UpdateQuestTaskGroupDescription(Quest, 1, "I found out the kegs are coming along nicely and should be ready soon.")
  28. AddQuestStepChat(Quest, 2, "I need to return to Lolla Cotgrove.", 1, "I need to let Lolla that the kegs are on schedule.", 0, 2330012)
  29. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  30. UpdateQuestZone(Quest, "Nettleville")
  31. end
  32. function QuestComplete(Quest, QuestGiver, Player)
  33. UpdateQuestStepDescription(Quest, 2, "I've returned to Lolla.")
  34. UpdateQuestTaskGroupDescription(Quest, 2, "I've returned to Lolla and informed her about her ordered kegs.")
  35. UpdateQuestDescription(Quest, "I reported back to Lolla Cotgrove that her tinkered kegs are coming along well and should be ready soon. She was pleased with the news and paid me with with an interesting concoction of hers and a few coins.")
  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