9
3

bee_swatter.lua 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. --[[
  2. Script Name : Quests/GreaterFaydark/bee_swatter.lua
  3. Script Purpose : Handles the quest, "Bee Swatter"
  4. Script Author : Scatman
  5. Script Date : 2009.03.29
  6. Zone : Greater Faydark
  7. Quest Giver: Ami Augren
  8. Preceded by: None
  9. Followed by: Broken Buttons (broken_buttons.lua)
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I need to swat a few stingswarm buzzers to try and make Ami stop crying.", 5, 100, "Little Ami is scared of all the stringswarm buzzers that are flying around the area. If I swat a few of them it might make her happy.", 110, 1140020)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1_Complete_KilledBees")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. conversation = CreateConversation()
  18. PlayFlavor(QuestGiver, "voiceover/english/exp03_questvo2/ami_augren/_exp03/exp03_rgn_greater_faydark/ami_augren/ami_augren003.mp3", "", "", 240117721, 1491988690, Player)
  19. AddConversationOption(conversation, "I'll take care of them.")
  20. StartConversation(conversation, QuestGiver, Player, "They make owies! Don't let them pinch you!")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. end
  24. function Step1_Complete_KilledBees(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 1, "I swatted a few of the stingswarm buzzers. Hopefully that will make Ami stop crying.")
  26. UpdateQuestTaskGroupDescription(Quest, 1, "I swatted a few of the stingswarm buzzers. Hopefully that will make Ami stop crying.")
  27. AddQuestStepChat(Quest, 2, "I should tell Ami I chased away the buzzers.", 1, "I should go back to Ami Augren and tell her I chased away the stingswarm buzzers.", 110, 1140019)
  28. AddQuestStepCompleteAction(Quest, 2, "Quest_Complete")
  29. end
  30. function Quest_Complete(Quest, QuestGiver, Player)
  31. UpdateQuestDescription(Quest, "I swatted a few of the bees that were bothering Ami Augren. I hope this calms her down somewhat.")
  32. GiveQuestReward(Quest, Player)
  33. end
  34. function Reload(Quest, QuestGiver, Player, Step)
  35. if Step == 1 then
  36. Step1_Complete_KilledBees(Quest, QuestGiver, Player)
  37. end
  38. end