9
3

IlaenLilac.lua 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. --[[
  2. Script Name : SpawnScripts/ForestRuins/IlaenLilac.lua
  3. Script Purpose : Ilaen Lilac
  4. Script Author : Dorbin
  5. Script Date : 07.14.2022
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. Note: Restructured completely using new dialog format and built race quest.
  8. --]]
  9. require "SpawnScripts/Generic/DialogModule"
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, 5494)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function hailed(NPC, Spawn)
  17. if GetFactionAmount(Spawn,11)<0 then
  18. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/ilaen_lilac/qey_adv02_ruins_revamp/qst_woodelf_ilaen_lilac_done_8182d6c7.mp3", "I am sure this land shall recover, eventually.", "", 1994088059, 2615640220, Spawn, 0)
  19. elseif not GetRace(Spawn, 15) then -- Checking if Woodelf
  20. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/ilaen_lilac/qey_adv02_ruins_revamp/qst_woodelf_ilaen_lilac_notonquest_ae7644e9.mp3", "There is no failing greater than a child unable to protect a parent.", "", 138794585, 337134419, Spawn, 0)
  21. elseif HasCompletedQuest(Spawn, 5494) or GetQuestStep(Spawn,5494)==3 then-- PostQuest
  22. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/ilaen_lilac/qey_adv02_ruins_revamp/qst_woodelf_ilaen_lilac_done_8182d6c7.mp3", "I am sure this land shall recover, eventually.", "", 1994088059, 2615640220, Spawn, 0)
  23. elseif not HasQuest(Spawn,5494) and not HasCompletedQuest(Spawn,5494) then --PreQuest
  24. Dialog9(NPC, Spawn)
  25. elseif GetQuestStep(Spawn,5494)==1 or GetQuestStep(Spawn,5494)==2 then
  26. Dialog1(NPC, Spawn)
  27. end
  28. end
  29. function Dialog1(NPC, Spawn)
  30. FaceTarget(NPC, Spawn)
  31. Dialog.New(NPC, Spawn)
  32. Dialog.AddDialog("Have you found a clue yet?")
  33. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/ilaen_lilac/qey_adv02_ruins/quests/ilaen/ilaen005.mp3", 2448866303, 129613781)
  34. if GetQuestStep(Spawn,5494)==2 then
  35. Dialog.AddOption("Yes, I found this arrow.", "Dialog2")
  36. end
  37. Dialog.AddOption("I'm afraid not. I'm still looking.")
  38. Dialog.Start()
  39. end
  40. function Dialog2(NPC, Spawn)
  41. FaceTarget(NPC, Spawn)
  42. Dialog.New(NPC, Spawn)
  43. Dialog.AddDialog("You found this arrow here? You are certain?")
  44. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/ilaen_lilac/qey_adv02_ruins/quests/ilaen/ilaen006.mp3", 1191782376, 3783466405)
  45. Dialog.AddOption("Yes, from a dead deer.", "Dialog6")
  46. Dialog.Start()
  47. end
  48. function Dialog3(NPC, Spawn)
  49. FaceTarget(NPC, Spawn)
  50. OfferQuest(NPC,Spawn,5494)
  51. end
  52. function Dialog8(NPC, Spawn)
  53. FaceTarget(NPC, Spawn)
  54. Dialog.AddDialog("May you do so without coming to harm.")
  55. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/ilaen_lilac/qey_adv02_ruins/quests/ilaen/ilaen004a.mp3", 1329725839, 577542302)
  56. Dialog.AddOption("Thank you.")
  57. Dialog.Start()
  58. end
  59. function Dialog4(NPC, Spawn)
  60. FaceTarget(NPC, Spawn)
  61. Dialog.New(NPC, Spawn)
  62. Dialog.AddDialog("I do not know, but I believe they are being hunted for sport. They have wounds consistent with arrow fire, but I have yet to recover any clues. Would you be willing to help me search for a clue?")
  63. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/ilaen_lilac/qey_adv02_ruins/quests/ilaen/ilaen003.mp3", 1432167079, 3483891269)
  64. Dialog.AddOption("Yes, I am willing.", "Dialog3")
  65. Dialog.AddOption("Sorry, no.")
  66. Dialog.Start()
  67. end
  68. function Dialog5(NPC, Spawn)
  69. FaceTarget(NPC, Spawn)
  70. Dialog.New(NPC, Spawn)
  71. Dialog.AddDialog("If you have not felt it yet you will soon. The movement, the sudden interest in this place by multiple parties, and the strange deaths of this land's inhabitants.")
  72. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/ilaen_lilac/qey_adv02_ruins/quests/ilaen/ilaen001.mp3", 4282317093, 61887410)
  73. Dialog.AddOption("What are you talking about?", "Dialog7")
  74. Dialog.Start()
  75. end
  76. function Dialog6(NPC, Spawn)
  77. FaceTarget(NPC, Spawn)
  78. Dialog.New(NPC, Spawn)
  79. Dialog.AddDialog("This arrow is of gnollish make. It may have gotten here by innocent means, or a gnoll may have brought it here. If the gnolls are moving in then the Qeynos Guard will be very interested. I want you to take this arrow to Lieutenant Germain. Tell him where you found it, he will be most interested to hear this.")
  80. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/ilaen_lilac/qey_adv02_ruins/quests/ilaen/ilaen007.mp3", 4076027837, 3268404262)
  81. SetStepComplete(Spawn, 5494, 2)
  82. Dialog.AddOption("Alright, I shall.")
  83. Dialog.Start()
  84. end
  85. function Dialog7(NPC, Spawn)
  86. FaceTarget(NPC, Spawn)
  87. Dialog.New(NPC, Spawn)
  88. Dialog.AddDialog("I do not believe this land's problems are enough to interest the Qeynos Guard, not yet lestways. But any child of Tunare who spends time here soon realizes there is something sinister in these lands. The deer of these parts are being slain at an alarming rate. Most of their deaths are obviously the cause of wolves or other predators, natural causes, but some of their bodies are left dead and intact.")
  89. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/ilaen_lilac/qey_adv02_ruins/quests/ilaen/ilaen002.mp3", 2492224424, 564822145)
  90. Dialog.AddOption("Killed by what?", "Dialog4")
  91. Dialog.Start()
  92. end
  93. function Dialog9(NPC, Spawn)
  94. FaceTarget(NPC, Spawn)
  95. Dialog.New(NPC, Spawn)
  96. Dialog.AddDialog("If we do not work to save this land there are no others who will.")
  97. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/ilaen_lilac/qey_adv02_ruins/quests/ilaen/ilaen000.mp3", 3647715461, 395001732)
  98. Dialog.AddOption("Save this land from what?", "Dialog5")
  99. Dialog.Start()
  100. end