NarinHeirloom.lua 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. --[[
  2. Script Name : Quests/TheCommonlands/NarinHeirloom.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.05.20 08:05:23
  5. Script Purpose :
  6. Zone : TheCommonlands, Fallen Gate
  7. Quest Giver: V'Tal Narin
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStep(Quest, 1, "I am looking for V'tal's brother and the heirloom", 1, 100, "I am looking for V'tal's brother and the heirloom. Her brother may have gone down to help the Thexians excavate the Hall of the Fallen.", 1046)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. local conversation = CreateConversation()
  18. AddConversationOption(conversation, "What was your brother looking for?", "Continue")
  19. StartConversation(conversation, QuestGiver, Player, "Excellent ... in the last letter I received from him, he said he found my family's heirloom and was returning with it. I have not heard from him since.")
  20. PlayFlavor(NPC, "voiceover/english/v_tal_narin/commonlands/quests/vtalnarin/vtalnarin005.mp3", "", "", 3927176102, 1208729032, Spawn)
  21. end
  22. function Continue(Quest, QuestGiver, Player)
  23. FaceTarget(QuestGiver, Player)
  24. local conversation = CreateConversation()
  25. AddConversationOption(conversation, "What if your brother is no longer alive?", "Continue2")
  26. StartConversation(conversation, QuestGiver, Player, "That is information you need not know. My brother took a small lockbox to carry the item. When you find him, he should have the box.")
  27. PlayFlavor(NPC, "voiceover/english/v_tal_narin/commonlands/quests/vtalnarin/vtalnarin006.mp3", "", "", 2007241749, 1986842596, Spawn)
  28. end
  29. function Continue2(Quest, QuestGiver, Player)
  30. FaceTarget(QuestGiver, Player)
  31. local conversation = CreateConversation()
  32. AddConversationOption(conversation, "I'll return once I have found your brother and the box.")
  33. StartConversation(conversation, QuestGiver, Player, "If that is so, then bring me just the box. It is made of dark wood and has a falcon engraved on its lid.")
  34. PlayFlavor(NPC, "voiceover/english/v_tal_narin/commonlands/quests/vtalnarin/vtalnarin007.mp3", "", "", 1495924345, 491648823, Spawn)
  35. end
  36. function Declined(Quest, QuestGiver, Player)
  37. -- Add dialog here for when the quest is declined
  38. end
  39. function Deleted(Quest, QuestGiver, Player)
  40. -- Remove any quest specific items here when the quest is deleted
  41. end
  42. function Step1Complete(Quest, QuestGiver, Player)
  43. UpdateQuestStepDescription(Quest, 1, "I found her brother and the heirloom.")
  44. UpdateQuestTaskGroupDescription(Quest, 1, "I found her brother and the heirloom.")
  45. AddQuestStepChat(Quest, 2, "I need to return to V'tal", 1, "I need to return to V'tal and tell her what I have found.", 11, 330173)
  46. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  47. end
  48. function QuestComplete(Quest, QuestGiver, Player)
  49. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  50. UpdateQuestStepDescription(Quest, 2, "I have returned the lockbox to V'tal and told her about her brother.")
  51. UpdateQuestTaskGroupDescription(Quest, 2, "I have returned the lockbox to V'tal and told her about her brother.")
  52. UpdateQuestDescription(Quest, "V'tal Narin's brother was dead, but I found the box and returned it to her.")
  53. GiveQuestReward(Quest, 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. QuestComplete(Quest, QuestGiver, Player)
  60. end
  61. end