a_special_perfume.lua 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. --[[
  2. Script Name : a_special_perfume.lua
  3. Script Purpose : Handles the quest, "A Special Perfume"
  4. Script Author : torsten
  5. Script Date : 18.07.2022
  6. Script Notes :
  7. Zone : Longshadow Alley
  8. Quest Giver : Zelina T`Von
  9. Preceded by : None
  10. Followed by : For That Special Someone
  11. --]]
  12. require "SpawnScripts/Generic/DialogModule"
  13. function Init(Quest)
  14. AddQuestStepKill(Quest, 1, "I must kill puny squalid vermin until I find a large scent gland.", 1, 15, "I need to travel to the Ruins and gather a large scent gland from a small rodent.", 94, 8420017)
  15. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  16. UpdateQuestZone(Quest,"Ruins")
  17. end
  18. function Step1Complete(Quest, QuestGiver, Player)
  19. UpdateQuestStepDescription(Quest, 1, "I have found a large scent gland.")
  20. UpdateQuestTaskGroupDescription(Quest, 1, "I've gathered a large scent gland from the squalid vermin.")
  21. AddQuestStepChat(Quest, 2, "I should return to Zelina.", 1, "I should return to Zelina to deliver the gland.", 11, 1380033)
  22. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  23. end
  24. function QuestComplete(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 2, "I've given the gland to Zelina.")
  26. UpdateQuestTaskGroupDescription(Quest, 2, "I've given the gland to Zelina.")
  27. UpdateQuestDescription(Quest, "Zelina has given me some coin for gathering the scent gland. She should have enough to be able to make that perfume she was planning on making. If she wants to make a perfume that smell like wine, I don't see why she doesn't just use wine. Go figure.")
  28. GiveQuestReward(Quest, Player)
  29. end
  30. function Accepted(Quest, QuestGiver, Player)
  31. FaceTarget(QuestGiver, Player)
  32. Dialog.New(QuestGiver, Player)
  33. Dialog.AddDialog("Good. Make yourself useful and find the gland. I'll gather the rest of the ingredients from the alchemist and await your return. Do NOT return to me unless you found a complete gland. I will settle for nothing less!")
  34. PlayFlavor(QuestGiver, "", "", "nod", 0, 0, Player, 0)
  35. Dialog.AddOption("Understood.")
  36. Dialog.Start()
  37. end
  38. function Declined(Quest, QuestGiver, Player)
  39. -- Add dialog here for when the quest is declined
  40. end
  41. function Deleted(Quest, QuestGiver, Player)
  42. -- Remove any quest specific items here when the quest is deleted
  43. end
  44. function Reload(Quest, QuestGiver, Player, Step)
  45. if Step == 1 then
  46. Step1Complete(Quest, QuestGiver, Player)
  47. elseif Step == 2 then
  48. QuestComplete(Quest, QuestGiver, Player)
  49. end
  50. end