cleaning_supplies_for_findlebop.lua 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I need to find a pristine Mystail rat tail.", 1, 65, "I need to hunt down Mystail matriarch in the Oakmyst forest until I can find a suitable tail.", 172, 1950017)
  13. AddQuestStepCompleteAction(Quest, 1, "step1_complete_Matriarchs")
  14. UpdateQuestZone(Quest, "Oakmyst Forest")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. conversation = CreateConversation()
  19. AddConversationOption(conversation, "Ok, I'll be back.")
  20. StartConversation(conversation, QuestGiver, Player, "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. end
  22. function Declined(Quest, QuestGiver, Player)
  23. end
  24. function step1_complete_Matriarchs(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 1, "I found a perfect mystail rat tail.")
  26. UpdateQuestTaskGroupDescription(Quest, 1, "I gathered a perfect Mystail rat tail for Smithy Findlebop to clean with.")
  27. UpdateQuestZone(Quest, "Baubbleshire")
  28. AddQuestStepChat(Quest, 2, "I must return to Smithy Findlebop.", 1, "I must return to Smithy Findlebop in Baubbleshire.", 238, 2380011)
  29. AddQuestStepCompleteAction(Quest, 2, "quest_complete")
  30. end
  31. function quest_complete(Quest, QuestGiver, Player, Step)
  32. UpdateQuestStepDescription(Quest, 2, "I returned to Smithy Findlebop.")
  33. UpdateQuestTaskGroupDescription(Quest, 2, "I gave the Mystrat tail to Smithy Findlebop in Baubbleshire.")
  34. 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.")
  35. GiveQuestReward(Quest, Player)
  36. end
  37. function Reload(Quest, QuestGiver, Player, Step)
  38. if Step == 1 then
  39. step1_complete_Matriarchs(Quest, QuestGiver, Player)
  40. end
  41. end