a_dramatic_performance.lua 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. --[[
  2. Script Name : a_dramatic_performance.lua
  3. Script Purpose : Handles the quest, "A Dramatic Performance"
  4. Script Author : torsten
  5. Script Date : 19.07.2022
  6. Script Notes :
  7. Zone : Longshadow Alley
  8. Quest Giver : Maliz T`Raan
  9. Preceded by : Taking it Out on the Raiders
  10. Followed by : A Shady Clearing
  11. --]]
  12. require "SpawnScripts/Generic/DialogModule"
  13. function Init(Quest)
  14. AddQuestStepChat(Quest, 1, "Talk to Pavo Nightfire in Beggar's Court.", 1, "Talk to Pavo Nightfire in Beggar's Court, in front of a building to the east of the inn.", 11, 1370048)
  15. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  16. end
  17. function Step1Complete(Quest, QuestGiver, Player)
  18. UpdateQuestStepDescription(Quest, 1, "I have found and spoken to Pavo Nightfire.")
  19. UpdateQuestTaskGroupDescription(Quest, 1, "Pavo seemed upset by that message. I would have thought he would have been happy by it, considering how much the performance moved Maliz's friend.")
  20. AddQuestStepChat(Quest, 2, "I should return to Imnat and let him know that Pavo Nightfire can do his part now.", 1, "Pavo has asked me to return a message to Maliz. The message is that the understudies will be performing tomorrow night, except Maliz needs to set up the stage first.", 11, 1380030)
  21. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  22. end
  23. function QuestComplete(Quest, QuestGiver, Player)
  24. UpdateQuestStepDescription(Quest, 2, "I delivered the message to Pavo Nightfire.")
  25. UpdateQuestTaskGroupDescription(Quest, 2, "I delivered the message to Pavo Nightfire in Beggar's Court.")
  26. UpdateQuestDescription(Quest, "Maliz seemed a lot different than I was expecting. He accepted the message, and suggested I talk to his friend, Inmat, for some more employment. I'm curious as to what this is all about.")
  27. GiveQuestReward(Quest, Player)
  28. end
  29. function Accepted(Quest, QuestGiver, Player)
  30. FaceTarget(QuestGiver, Player)
  31. Dialog.New(QuestGiver, Player)
  32. Dialog.AddDialog("I'm not certain of your motives, but nonetheless, I will entrust you with this message. Go to the human's district and look for a man named Pavo. Tell him the acting troupe's performance brought my friend to tears. I need to know his response. For your sake, I hope you return quickly...")
  33. PlayFlavor(QuestGiver,"","","agree",0,0,Player)
  34. Dialog.AddOption("Touching... I'll see he get's this.")
  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