cleaning_supplies_for_findlebop.lua 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. --[[
  2. Script Name : Quests/OakmystForest/cleaning_supplies_for_findlebop.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.01.18 03:01:08
  5. Script Purpose :
  6. Zone : OakmystForest
  7. Quest Giver: Smithy Findlebop
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I need to find a pristine Mystail rat tail.", 1, 35, "I need to hunt down Mystail matriarch in the Oakmyst forest until I can find a suitable tail.", 172, 8300036)
  14. AddQuestStepCompleteAction(Quest, 1, "step1_complete_Matriarchs")
  15. UpdateQuestZone(Quest, "Oakmyst Forest")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. FaceTarget(QuestGiver, Player)
  19. Dialog.New(QuestGiver, Player)
  20. Dialog.AddDialog("FINE! Sorry to be harsh, but you bother me a critical juncture! If you want to help me, go get me something to scrub this bit of metal. Perhaps the tail of a Mystail rat will do the trick. Yes, yes. That would work. Get one from the Oakmyst Forest!")
  21. PlayFlavor(QuestGiver, "","","sigh",0,0, Player)
  22. Dialog.AddVoiceover("voiceover/english/smithy_findlebop/qey_village06/smithyfindlebop002.mp3",3746495978,2876844206)
  23. Dialog.AddOption("Ok, I'll be back.")
  24. Dialog.Start()
  25. end
  26. function Declined(Quest, QuestGiver, Player)
  27. end
  28. function step1_complete_Matriarchs(Quest, QuestGiver, Player)
  29. UpdateQuestStepDescription(Quest, 1, "I found a perfect mystail rat tail.")
  30. UpdateQuestTaskGroupDescription(Quest, 1, "I gathered a perfect Mystail rat tail for Smithy Findlebop to clean with.")
  31. UpdateQuestZone(Quest, "Baubbleshire")
  32. AddQuestStepChat(Quest, 2, "I must return to Smithy Findlebop.", 1, "I must return to Smithy Findlebop in Baubbleshire.", 238, 2380011)
  33. AddQuestStepCompleteAction(Quest, 2, "quest_complete")
  34. end
  35. function quest_complete(Quest, QuestGiver, Player, Step)
  36. UpdateQuestStepDescription(Quest, 2, "I returned to Smithy Findlebop.")
  37. UpdateQuestTaskGroupDescription(Quest, 2, "I gave the Mystrat tail to Smithy Findlebop in Baubbleshire.")
  38. UpdateQuestDescription(Quest, "I finally got a suitable tail to bring back to Smithy Findlebop, and it seemed to work out well for his purposes. He apologized for being so curt with me earlier too.")
  39. GiveQuestReward(Quest, Player)
  40. end
  41. function Reload(Quest, QuestGiver, Player, Step)
  42. if Step == 1 then
  43. step1_complete_Matriarchs(Quest, QuestGiver, Player)
  44. end
  45. end