9
3

the_nyghtfallow_heirloom.lua 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. --[[
  2. Script Name : the_nyghtfallow_heirloom.lua
  3. Script Purpose : Handles the quest, "The Nyghtfallow Heirloom"
  4. Script Author : torsten\\Dorbin
  5. Script Date : 17.07.2022
  6. Script Notes :
  7. Zone : Beggar's Court
  8. Quest Giver : Tsuul Nyghtfallow
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. require "SpawnScripts/Generic/DialogModule"
  13. --The following words appear to have been hastily scribbled on the back of the picture, "Vladin the Pale; the Sunken City. Father, I promise that your death will be avenged." It seems that Tsuul's brother was attempting to grow stronger so that he might avenge his father's death.
  14. function Init(Quest)
  15. AddQuestStepKill(Quest, 1, "I must kill Guttersnipe hooligans until I find the pendant.", 1, 22, "I should kill Guttersnipe hooligans in The Sprawl until I find Nyghtfallow's Pendant.", 1244, 8400011)
  16. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  17. end
  18. function Step1Complete(Quest, QuestGiver, Player)
  19. UpdateQuestStepDescription(Quest, 1, "I have killed the Guttersnipe hooligans and found the pendant.")
  20. UpdateQuestTaskGroupDescription(Quest, 1, "I have killed some hooligans.")
  21. AddQuestStepChat(Quest, 2, "I must find Tsuul Nyghtfallow.", 1, "I must return the pendant to Tsuul Nyghtfallow in Beggar's Court.", 1244, 1370025)
  22. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  23. end
  24. function QuestComplete(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 2, "I have found Tsuul Nyghtfallow.")
  26. UpdateQuestTaskGroupDescription(Quest, 2, "I have returned to Tsuul Nyghtfallow.")
  27. UpdateQuestDescription(Quest, "I found and killed the dervish that held Tsuul Nyghtfallow's family pendant. The item given in return is nice enough. ")
  28. GiveQuestReward(Quest, Player)
  29. end
  30. function Accepted(Quest, QuestGiver, Player)
  31. FaceTarget(QuestGiver, Player)
  32. Dialog.New(QuestGiver, Player)
  33. Dialog.AddLanguage(7)
  34. Dialog.AddDialog("Undoubtedly one of the Guttersnipes who killed my brother took the pendant. I'd suggest you start by rummaging through the Guttersnipes' corpses. When and if you recover the pendant, return to me and I'll give you your reward.")
  35. Dialog.AddOption("I'll see what I can do.")
  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