9
3

LookoutVenylle.lua 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. --[[
  2. Script Name : SpawnScripts/ElddarGrove/LookoutVenylle.lua
  3. Script Purpose : Lookout Venylle
  4. Script Author : Dorbin
  5. Script Date : 09.19.2023
  6. Script Notes : Quests,VOs added 5.3.2022 - Dorbin
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, 5515)
  11. ProvidesQuest(NPC, 5516)
  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, "", "", "shakefist", 0, 0, Spawn)
  19. else
  20. FaceTarget(NPC, Spawn)
  21. Dialog.New(NPC, Spawn)
  22. Dialog.AddDialog("Well, greetings, friend. I'm sorry I've no time for chatting. We rangers must be ever watchful. Many dangers lurk in the dark. Some natural, some ... unnatural.")
  23. Dialog.AddVoiceover("voiceover/english/lookout_venylle/qey_elddar/lookoutvenylle000.mp3",487024690, 2845985258)
  24. PlayFlavor(NPC, "", "", "hello", 0, 0, Spawn)
  25. if not HasQuest(Spawn,5515) and not HasCompletedQuest (Spawn,5515) then
  26. Dialog.AddOption("What dangers have you heard about?", "Holly1")
  27. end
  28. if not HasQuest(Spawn,5516) and not HasCompletedQuest (Spawn,5516) and GetLevel(Spawn) >=9 then
  29. Dialog.AddOption("Do any unnatural dangers threaten Qeynos?", "DangerQuest")
  30. elseif GetQuestStep(Spawn,5516)==2 then
  31. Dialog.AddOption("I was able to deal with some of the undead from Antonica as you mentioned.", "Dangers2")
  32. end
  33. Dialog.AddOption("Don't let me keep you from your vigilance. ")
  34. Dialog.Start()
  35. end
  36. end
  37. function Holly1(NPC, Spawn)
  38. FaceTarget(NPC, Spawn)
  39. Dialog.New(NPC, Spawn)
  40. Dialog.AddDialog("It is ill to speak of the dead, but knowing the dangers that prowl in the dark is for your own safety. Rumor has it, that Holly Windstalker once again walks the hills. I won't guarantee this is true, but neither will I discount it. What I do know is a grave bearing her name sits on a hill overlooking the village. You'll see for yourself; she was laid to rest years ago.")
  41. Dialog.AddVoiceover("voiceover/english/lookout_venylle/qey_elddar/lookoutvenylle001.mp3",3608144910, 1097856081)
  42. PlayFlavor(NPC, "", "", "no", 0, 0, Spawn)
  43. Dialog.AddOption("I've heard of the name Holly Windstalker. I think I'd like to see the grave.", "Holly2")
  44. Dialog.AddOption("I tend to stay away from graves that may not be able to hold their dead. ")
  45. Dialog.Start()
  46. end
  47. function Holly2(NPC, Spawn)
  48. if not HasQuest(Spawn,5515) and not HasCompletedQuest (Spawn,5515) then
  49. OfferQuest(NPC,Spawn, 5515)
  50. FaceTarget(NPC, Spawn)
  51. end
  52. end
  53. function DangerQuest(NPC, Spawn)
  54. OfferQuest(NPC,Spawn, 5516)
  55. FaceTarget(NPC, Spawn)
  56. end
  57. function Dangers2(NPC, Spawn)
  58. SetStepComplete(Spawn,5516,3)
  59. FaceTarget(NPC, Spawn)
  60. Dialog.New(NPC, Spawn)
  61. Dialog.AddDialog("Ahh, you've done well adventurer! This is just one of the many valuable lessons you'll learn on your adventures. Please, take this reward for serving Qeynos.")
  62. Dialog.AddVoiceover("voiceover/english/lookout_venylle/qey_elddar/lookoutvenylle004.mp3",1813659207, 4263570557)
  63. PlayFlavor(NPC, "", "", "thank", 0, 0, Spawn)
  64. Dialog.AddOption("Thank you. I'll keep that in mind.")
  65. Dialog.Start()
  66. end