vida_needs_a_new_broom.lua 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. Zone : Nettleville
  7. Quest Giver: Vida Sweeps
  8. Preceded by: None
  9. Followed by: None
  10. --]]
  11. function Init(Quest)
  12. 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)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1_Complete_SpokeWithTawli")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. conversation = CreateConversation()
  18. PlayFlavor(QuestGiver, "voiceover/english/vida_sweeps/qey_village01/vidasweeps002.mp3", "", "", 1651808120, 3255633748, Player)
  19. AddConversationOption(conversation, "I'll go over to the Baubbleshire and look for her.")
  20. StartConversation(conversation, QuestGiver, Player, "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.")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. end
  24. function Deleted(Quest, QuestGiver, Player)
  25. end
  26. function Step1_Complete_SpokeWithTawli(Quest, QuestGiver, Player)
  27. UpdateQuestStepDescription(Quest, 1, "I found Tawli Whiskwind.")
  28. UpdateQuestTaskGroupDescription(Quest, 1, "I found Tawli Whiskwind and picked up the new broom for Vida.")
  29. UpdateQuestZone(Quest, "Nettleville")
  30. AddQuestStepChat(Quest, 2, "I should return to Vida Sweeps.", 1, "I should get this new broom to Vida in Nettleville.", 0, 2330011)
  31. AddQuestStepCompleteAction(Quest, 2, "Quest_Complete")
  32. end
  33. function Quest_Complete(Quest, QuestGiver, Player)
  34. UpdateQuestStepDescription(Quest, 2, "I gave the new broom to Vida Sweeps.")
  35. UpdateQuestTaskGroupDescription(Quest, 2, "I gave the new broom to Vida and received the dusty blue stone in payment.")
  36. 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.")
  37. GiveQuestReward(Quest, Player)
  38. end
  39. function Reload(Quest, QuestGiver, Player, Step)
  40. if Step == 1 then
  41. Step1_Complete_SpokeWithTawli(Quest, QuestGiver, Player)
  42. end
  43. end