LookoutVenylle.lua 4.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. --[[
  2. Script Name : SpawnScripts/ElddarGrove/LookoutVenylle.lua
  3. Script Purpose : Lookout Venylle
  4. Script Author : John Adams
  5. Script Date : 2008.09.28
  6. Script Notes : Quests,VOs added 5.3.2022 - Dorbin
  7. --]]
  8. function spawn(NPC)
  9. ProvidesQuest(NPC, 5515)
  10. ProvidesQuest(NPC, 5516)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. if GetFactionAmount(Spawn,11) <0 then
  17. PlayFlavor(NPC, "", "", "shakefist", 0, 0, Spawn)
  18. else
  19. FaceTarget(NPC, Spawn)
  20. conversation = CreateConversation()
  21. PlayFlavor(NPC, "voiceover/english/lookout_venylle/qey_elddar/lookoutvenylle000.mp3", "", "hello", 487024690, 2845985258, Spawn)
  22. if not HasQuest(Spawn,5515) and not HasCompletedQuest (Spawn,5515) then
  23. AddConversationOption(conversation, "What unnatural dangers lurk in the dark?", "dlg_10_1")
  24. else
  25. AddConversationOption(conversation, "I need a reminder on how to get to Windstalker's grave.", "dlg_10_2")
  26. end
  27. if not HasQuest(Spawn,5516) and not HasCompletedQuest (Spawn,5516) and GetLevel(Spawn) >=9 then
  28. AddConversationOption(conversation, "Do any unnatural dangers threaten Qeynos?", "Dangers1")
  29. elseif GetQuestStep(Spawn,5516)==2 then
  30. AddConversationOption(conversation, "I was able to deal with some of the undead from Antonica as you mentioned.", "Dangers2")
  31. end
  32. AddConversationOption(conversation, "Don't let me keep you from your vigilance. ")
  33. StartConversation(conversation, NPC, Spawn, "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.")
  34. end
  35. end
  36. function dlg_10_1(NPC, Spawn)
  37. FaceTarget(NPC, Spawn)
  38. conversation = CreateConversation()
  39. PlayFlavor(NPC, "voiceover/english/lookout_venylle/qey_elddar/lookoutvenylle001.mp3", "", "no", 3608144910, 1097856081, Spawn)
  40. AddConversationOption(conversation, "I've heard of the name Holly Windstalker. I think I'd like to see the grave.", "dlg_10_2")
  41. AddConversationOption(conversation, "I tend to stay away from graves that may not be able to hold their dead. ")
  42. StartConversation(conversation, NPC, Spawn, "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.")
  43. end
  44. function dlg_10_2(NPC, Spawn)
  45. FaceTarget(NPC, Spawn)
  46. conversation = CreateConversation()
  47. PlayFlavor(NPC, "voiceover/english/lookout_venylle/qey_elddar/lookoutvenylle002.mp3", "", "agree", 2384165847, 2428685999, Spawn)
  48. AddConversationOption(conversation, "Thank you. I'll follow those directions.", "dlg_10_3")
  49. StartConversation(conversation, NPC, Spawn, "Ahh ... very well, you are a daring soul! To get to the grave, follow the aqueduct from Qeynos to Windstalker Village. The village is built around the waterwheel that keeps the aqueduct flowing. The duct passes through rock so you may lose sight of it for a time. Just continue around the mountain, and you'll see it on the other side.")
  50. end
  51. function dlg_10_3(NPC, Spawn)
  52. if not HasQuest(Spawn,5515) and not HasCompletedQuest (Spawn,5515) then
  53. OfferQuest(NPC,Spawn, 5515)
  54. FaceTarget(NPC, Spawn)
  55. end
  56. end
  57. function Dangers1(NPC, Spawn)
  58. FaceTarget(NPC, Spawn)
  59. conversation = CreateConversation()
  60. PlayFlavor(NPC, "voiceover/english/lookout_venylle/qey_elddar/lookoutvenylle003.mp3", "", "agree", 166316836, 1644056019, Spawn)
  61. AddConversationOption(conversation, "Alright. I'll return once I've dealt with a dozen of these undead.", "DangerQuest")
  62. AddConversationOption(conversation, "I prefer to stay away from undead. Sorry.")
  63. StartConversation(conversation, NPC, Spawn, "Too many unatural dangers thrive to name them in one sitting. You'd learn more of the undead if you served Qeynos in a civic manner. A mausoleum rests on a small island in Antonica near the north gates of Qeynos. Venture to the crypt and confront it's protector's decaying filthy skeletons. Put to rest a dozen of these unnatural guardians who walk the earth.")
  64. end
  65. function DangerQuest(NPC, Spawn)
  66. OfferQuest(NPC,Spawn, 5516)
  67. FaceTarget(NPC, Spawn)
  68. end
  69. function Dangers2(NPC, Spawn)
  70. FaceTarget(NPC, Spawn)
  71. conversation = CreateConversation()
  72. PlayFlavor(NPC, "voiceover/english/lookout_venylle/qey_elddar/lookoutvenylle004.mp3", "", "thank", 1813659207, 4263570557, Spawn)
  73. AddConversationOption(conversation, "Thank you. I'll keep that in mind.", "DangerDone")
  74. StartConversation(conversation, NPC, Spawn, "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.")
  75. end
  76. function DangerDone(NPC, Spawn)
  77. SetStepComplete(Spawn,5516,3)
  78. FaceTarget(NPC, Spawn)
  79. end