vida_needs_a_new_broom.lua 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. --[[
  2. Script Name : Quests/Nettleville/vida_needs_a_new_broom.lua
  3. Script Purpose : Handles the quest, "Vida Needs a New Broom"
  4. Script Author : Scatman
  5. Script Date : 2009.08.12
  6. Notes: Updated format post 'hailed' for consistency. - Dorbin 06.25.2022
  7. Zone : Nettleville
  8. Quest Giver: Vida Sweeps
  9. Preceded by: The Dusty Blue Stone
  10. Followed by: None
  11. --]]
  12. require "SpawnScripts/Generic/DialogModule"
  13. function Init(Quest)
  14. AddQuestStepChat(Quest, 1, "I need to find Tawli Whiskwind.", 1, "I need to find Tawli Whiskwind in the Baubbleshire and pick up Vida's new broom.", 0, 2380047)
  15. AddQuestStepCompleteAction(Quest, 1, "Step1_Complete_SpokeWithTawli")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. FaceTarget(QuestGiver, Player)
  19. Dialog.New(QuestGiver, Player)
  20. PlayFlavor(QuestGiver, "", "", "thanks", 0, 0, Player)
  21. Dialog.AddDialog("Great! I need you to pick up my new broom. Don't worry! It's already paid for; I just haven't picked it up. Tawli Whiskwind, a halfling lass in the Baubbleshire, should have it ready for me. You may have a difficult time finding her -- she's always running around looking for the finest materials for her brooms.")
  22. Dialog.AddVoiceover("voiceover/english/vida_sweeps/qey_village01/vidasweeps002.mp3", 1651808120, 3255633748)
  23. Dialog.AddOption("I'll go over to the Baubbleshire and look for her.")
  24. Dialog.Start()
  25. end
  26. function Declined(Quest, QuestGiver, Player)
  27. end
  28. function Deleted(Quest, QuestGiver, Player)
  29. end
  30. function Step1_Complete_SpokeWithTawli(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 1, "I found Tawli Whiskwind.")
  32. UpdateQuestTaskGroupDescription(Quest, 1, "I found Tawli Whiskwind and picked up the new broom for Vida.")
  33. UpdateQuestZone(Quest, "Nettleville")
  34. AddQuestStepChat(Quest, 2, "I should return to Vida Sweeps.", 1, "I should get this new broom to Vida in Nettleville.", 0, 2330011)
  35. AddQuestStepCompleteAction(Quest, 2, "Quest_Complete")
  36. end
  37. function Quest_Complete(Quest, QuestGiver, Player)
  38. UpdateQuestStepDescription(Quest, 2, "I gave the new broom to Vida Sweeps.")
  39. UpdateQuestTaskGroupDescription(Quest, 2, "I gave the new broom to Vida and received the dusty blue stone in payment.")
  40. UpdateQuestDescription(Quest, "Vida seems happy with the new broom and put it to use right away. She gave me the dusty blue stone and suggested I may want to ask a mineral expert about it.")
  41. GiveQuestReward(Quest, Player)
  42. end
  43. function Reload(Quest, QuestGiver, Player, Step)
  44. if Step == 1 then
  45. Step1_Complete_SpokeWithTawli(Quest, QuestGiver, Player)
  46. end
  47. end