9
3

tweezing_kerra.lua 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. --[[
  2. Script Name : Quests/Stonestair/tweezing_kerra.lua
  3. Script Purpose : Handles the quest, "Tweezing Kerra"
  4. Script Author : QuestParser (Replace this)
  5. Script Date : 6/22/2018
  6. Script Notes :
  7. Zone : Stonestair Byway
  8. Quest Giver :
  9. Preceded by : erudite_alchemy.lua
  10. Followed by : incantation_oration.lua
  11. --]]
  12. -- Item ID's
  13. local SILVER_TWEEZERS = 48065
  14. function Init(Quest)
  15. AddQuestStepChat(Quest, 1, "Speak with Sevri Il'Bethod and give her the mixture. She should be near the Inn.", 1, "Speak to Sevri Il'Bethod and give her the herbal mixture.", 11, 1350011)
  16. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  17. end
  18. function Accepted(Quest, QuestGiver, Player)
  19. FaceTarget(QuestGiver, Player)
  20. conversation = CreateConversation()
  21. PlayFlavor(QuestGiver, "voiceover/english/tutorial_revamp/vesh_al_ishni/fprt_hood02/vesh_alishni017.mp3", "", "", 2088321300, 3465986991, Player)
  22. AddConversationOption(conversation, "I'll take it to her.")
  23. StartConversation(conversation, QuestGiver, Player, "Straight down the path, up the stairs, and to the right of the inn.")
  24. end
  25. function Declined(Quest, QuestGiver, Player)
  26. -- Add dialog here for when the quest is declined
  27. end
  28. function Deleted(Quest, QuestGiver, Player)
  29. RemoveTweezers(Player)
  30. end
  31. function RemoveTweezers(Player)
  32. while HasItem(Player, SILVER_TWEEZERS, 1) do
  33. RemoveItem(Player, SILVER_TWEEZERS)
  34. end
  35. end
  36. function Step1Complete(Quest, QuestGiver, Player)
  37. UpdateQuestStepDescription(Quest, 1, "I've spoken with Sevri and given her the mixture.")
  38. SummonItem(Player, SILVER_TWEEZERS)
  39. AddQuestStepSpell(Quest, 2, "I need to pluck some fur from kerrans.", 5, 100, "Speak to Sevri Il'Bethod and give her the herbal mixture.", 0, 2550000)
  40. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  41. end
  42. function Step2Complete(Quest, QuestGiver, Player)
  43. UpdateQuestStepDescription(Quest, 2, "I've plucked fur from several kerrans.")
  44. AddQuestStepChat(Quest, 3, "I need to bring this fur back to Sevri.", 1, "Speak to Sevri Il'Bethod and give her the herbal mixture.", 11, 1350011)
  45. AddQuestStepCompleteAction(Quest, 3, "QuestComplete")
  46. end
  47. function QuestComplete(Quest, QuestGiver, Player)
  48. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  49. UpdateQuestStepDescription(Quest, 3, "I've spoken with Sevri and given her the fur.")
  50. UpdateQuestTaskGroupDescription(Quest, 1, "The kerra have been tweezed! I've got all the fur Sevri asked for.")
  51. UpdateQuestDescription(Quest, "After tweezing several of the kerra, no doubt to their complete discomfort, I returned their fur to Sevri.")
  52. GiveQuestReward(Quest, Player)
  53. RemoveTweezers(Player)
  54. end
  55. function Reload(Quest, QuestGiver, Player, Step)
  56. if Step == 1 then
  57. Step1Complete(Quest, QuestGiver, Player)
  58. elseif Step == 2 then
  59. Step2Complete(Quest, QuestGiver, Player)
  60. elseif Step == 3 then
  61. QuestComplete(Quest, QuestGiver, Player)
  62. end
  63. end