oro_rootforlozoria.lua 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. --[[
  2. Script Name : Quests/Baubbleshire/oro_rootforlozoria.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.01.14 03:01:51
  5. Script Purpose :
  6. Zone : Baubbleshire
  7. Quest Giver: Lozoria Shinkicker
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I've heard that the glowmyst beetles in Oakmyst Forest will sometimes dig up Oro roots.", 10, 90, "I need to find oro root that glowmyst beetles have dug up. I'll probably have to kill the beetles to get their treasured roots!", 197, 8300034)
  13. AddQuestStepCompleteAction(Quest, 1, "step1_complete_beetles")
  14. UpdateQuestZone(Quest,"Oakmyst Forest")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. UpdateQuestZone(Quest, "Oakmyst Forest")
  18. FaceTarget(QuestGiver, Player)
  19. conversation = CreateConversation()
  20. AddConversationOption(conversation, "Save some for me for when I return!")
  21. StartConversation(conversation, QuestGiver, Player, "Great! I'll be here nursing this pint until you get back.")
  22. end
  23. function Declined(Quest, QuestGiver, Player)
  24. end
  25. function step1_complete_beetles(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 1, "I have gathered the Oro roots.")
  27. UpdateQuestTaskGroupDescription(Quest, 1, "I have enough Oro roots from the glowmyst beetles.")
  28. UpdateQuestZone(Quest, "Baubbleshire")
  29. AddQuestStepChat(Quest, 2, "I must return to Lozoria Shinkicker.", 1, "I've received enough oro root to return to Lozoria with.", 0, 2380030)
  30. AddQuestStepCompleteAction(Quest, 2, "quest_complete")
  31. end
  32. function quest_complete(Quest, QuestGiver, Player)
  33. UpdateQuestStepDescription(Quest, 2, "I returned with the oro root that Lozoria needed for his next batch of brew.")
  34. UpdateQuestTaskGroupDescription(Quest, 2, "I have given the Oro roots to Lozoria Shinkicker.")
  35. UpdateQuestDescription(Quest, "I managed to collect the ten roots that Lozoria wanted for their new brew. He seems to like the ale it makes just fine, that's for certain! He's rather charming in an odd sort of way!")
  36. GiveQuestReward(Quest, Player)
  37. end
  38. function Reload(Quest, QuestGiver, Player, Step)
  39. if Step == 1 then
  40. step1_complete_beetles(Quest, QuestGiver, Player)
  41. end
  42. end