9
3

for_that_special_someone.lua 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. --[[
  2. Script Name : for_that_special_someone.lua
  3. Script Purpose : Handles the quest, "For That Special Someone"
  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 : A Special Perfume
  10. Followed by : None
  11. --]]
  12. require "SpawnScripts/Generic/DialogModule"
  13. function Init(Quest)
  14. AddQuestStepChat(Quest, 1, "I need to find the banker.", 1, "I should bring this wine to the banker here in Longshadow Alley.", 11, 1380021)
  15. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  16. end
  17. function Step1Complete(Quest, QuestGiver, Player)
  18. UpdateQuestStepDescription(Quest, 1, "I have given the bottle to T'Val the banker.")
  19. UpdateQuestTaskGroupDescription(Quest, 1, "I gave her husband the wine, which he enjoyed. He seemed worried that his wife was outside for some reason.")
  20. AddQuestStepChat(Quest, 2, "I should return to Zelina T`Von.", 1, "I should return to Zelina and let her know he received his gift.", 11, 1380033)
  21. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  22. end
  23. function QuestComplete(Quest, QuestGiver, Player)
  24. UpdateQuestStepDescription(Quest, 2, "I've informed Zelina that her husband enjoyed the wine.")
  25. UpdateQuestTaskGroupDescription(Quest, 2, "I've informed Zelina that her husband enjoyed the wine.")
  26. UpdateQuestDescription(Quest, "It seems that Zelina isn't married to T'val, and she tricked me into giving him some poisoned wine. I'm not sure what's going on between the two, but it looks like I just got myself involved in something more than I had expected.")
  27. GiveQuestReward(Quest, Player)
  28. end
  29. function Accepted(Quest, QuestGiver, Player)
  30. FaceTarget(QuestGiver, Player)
  31. Dialog.New(QuestGiver, Player)
  32. Dialog.AddDialog("My partner is the banker for this horrid district, so you should find him at the bank--unless he's with that tram ... trainee, I mean. Give him this wine, and tell him I hope he enjoys it. When you return, I'll give you some coin.")
  33. PlayFlavor(QuestGiver, "", "", "agree", 0, 0, Player, 0)
  34. Dialog.AddOption("Alright. I'll make sure the banker gets this wine.")
  35. Dialog.Start()
  36. end
  37. function Declined(Quest, QuestGiver, Player)
  38. -- Add dialog here for when the quest is declined
  39. end
  40. function Deleted(Quest, QuestGiver, Player)
  41. -- Remove any quest specific items here when the quest is deleted
  42. end
  43. function Reload(Quest, QuestGiver, Player, Step)
  44. if Step == 1 then
  45. Step1Complete(Quest, QuestGiver, Player)
  46. elseif Step == 2 then
  47. QuestComplete(Quest, QuestGiver, Player)
  48. end
  49. end