oro_rootforlozoria.lua 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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, 1950002)
  13. AddQuestStepCompleteAction(Quest, 1, "step1_complete_beetles")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. UpdateQuestZone(Quest, "Oakmyst Forest")
  17. FaceTarget(QuestGiver, Player)
  18. conversation = CreateConversation()
  19. AddConversationOption(conversation, "Save some for me for when I return!")
  20. StartConversation(conversation, QuestGiver, Player, "Great! I'll be here nursing this pint until you get back.")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. end
  24. function step1_complete_beetles(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 1, "I have gathered the Oro roots.")
  26. UpdateQuestTaskGroupDescription(Quest, 1, "I have enough Oro roots from the glowmyst beetles.")
  27. UpdateQuestZone(Quest, "Baubbleshire")
  28. AddQuestStepChat(Quest, 2, "I must return to Lozoria Shinkicker.", 1, "I've received enough oro root to return to Lozoria with.", 0, 2380030)
  29. AddQuestStepCompleteAction(Quest, 2, "quest_complete")
  30. end
  31. function quest_complete(Quest, QuestGiver, Player)
  32. UpdateQuestStepDescription(Quest, 2, "I have returned to Lozoria Shinkicker.")
  33. UpdateQuestTaskGroupDescription(Quest, 2, "I have given the Oro roots to Lozoria Shinkicker.")
  34. 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!")
  35. GiveQuestReward(Quest, Player)
  36. end
  37. function Reload(Quest, QuestGiver, Player, Step)
  38. if Step == 1 then
  39. step1_complete_beetles(Quest, QuestGiver, Player)
  40. end
  41. end