nightstalker.lua 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. --[[
  2. Script Name : nightstalker.lua
  3. Script Purpose : Waypoint Path for nightstalker.lua
  4. Script Author : Devn00b
  5. Script Date : 04/12/2020 11:16:46 AM
  6. Script Notes : Locations collected from Live
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericEcologyVoiceOvers.lua")
  9. function spawn(NPC)
  10. waypoints(NPC)
  11. SetPlayerProximityFunction(NPC, 7, "InRange", "LeaveRange")
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. local Mikkel = GetSpawn(NPC,2220117)
  16. FaceTarget(NPC, Spawn)
  17. if Mikkel ~=nil then
  18. FaceTarget(Mikkel,Spawn)
  19. end
  20. GenericEcologyHail(NPC, Spawn, faction)
  21. end
  22. function InRange(NPC,Spawn)
  23. if GetFactionAmount(Spawn,11) <0 then
  24. local choice = math.random(1,9)
  25. if choice == 1 then
  26. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/human/human_eco_good_1_notcitizen_gm_1a98f879.mp3", "How did you get past the city gates?!", "doubletake", 2984037816, 3824691347)
  27. elseif choice == 2 then
  28. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/human/human_eco_good_1_notcitizen_gm_6da83eeb.mp3", "I'll defend myself if it comes to that, savage!", "shakefist", 1112175527, 3181748573)
  29. elseif choice == 3 then
  30. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/human/human_eco_good_1_notcitizen_gm_b24ac070.mp3", "Antonius Bayle! Save us from this brute!", "scream", 271724567, 4059439523)
  31. elseif choice == 4 then
  32. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/human/human_eco_good_1_notcitizen_gm_e0dfed5b.mp3", "P-p-please d-don't hurt me!", "beg", 710627605, 2152359545)
  33. elseif choice == 5 then
  34. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/human/human_eco_good_1_notcitizen_gm_48350e59.mp3", "You're not allowed in here!", "point", 1734668326, 429140096)
  35. elseif choice == 6 then
  36. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/human/human_eco_good_1_notcitizen_gm_8236a789.mp3", "Remove yourself from my presence, outsider.", "glare", 742840308, 1978260864)
  37. elseif choice == 7 then
  38. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/human/human_eco_good_1_notcitizen_gm_5afcbd03.mp3", "The streets aren't safe with your kind upon them.", "no", 3192824592, 3089779490)
  39. elseif choice == 8 then
  40. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/human/human_eco_good_1_notcitizen_gm_7e3f7ca.mp3", "I refuse to contaminate myself by conversing with you.", "sulk", 2165609155, 3535416550)
  41. elseif choice == 9 then
  42. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/human/human_eco_good_1_notcitizen_gm_ad3832d1.mp3", "Guards! Guards!!!", "raisehand", 2229045167, 836806226)
  43. end
  44. local Mikkel = GetSpawn(NPC,2220117)
  45. FaceTarget(NPC, Spawn)
  46. if Mikkel ~=nil then
  47. FaceTarget(Mikkel,Spawn)
  48. PlayFlavor(Mikkel, "", "", "shakefist", 0, 0)
  49. end
  50. else
  51. if math.random(1,100) <=30 then
  52. local choice = math.random(1,13)
  53. if choice == 1 then
  54. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/human/human_eco_good_1_hail_gm_7e3b456a.mp3", "Hail, pleasure to meet you.", "agree", 471367832, 2417424572)
  55. elseif choice == 2 then
  56. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/human/human_eco_good_1_hail_gm_ef2b9651.mp3", "Will you quit pestering me? Don't force me to summon the guards!", "tapfoot", 3345611839, 1442739842)
  57. elseif choice == 3 then
  58. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/human/human_eco_good_1_hail_gm_26f4c608.mp3", "Greetings visitor, I'm glad to meet you.", "bye", 1300497520, 2713745446)
  59. elseif choice == 4 then
  60. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/human/human_eco_good_1_hail_gm_13b79d2d.mp3", "Welcome! Welcome traveler, to the fair city of Qeynos! My, isn't it a magnificent day?", "hello", 3746934207, 794965138)
  61. elseif choice == 5 then
  62. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/human/human_eco_good_1_hail_gm_e58035f3.mp3", "What do you want? Leave me be!", "shrug", 1323474108, 3355478224)
  63. elseif choice == 6 then
  64. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/human/human_eco_good_1_aoi_gm_2c5409ba.mp3", "Another lovely day in the city of Qeynos!", "sigh", 2759856909, 614688407)
  65. elseif choice == 7 then
  66. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/human/human_eco_good_1_aoi_gm_4d212798.mp3", "I'm confident that the merchants of our village will fill all equipment needs with the utmost hospitality.", "smile", 2600666744, 586734676)
  67. elseif choice == 8 then
  68. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/human/human_eco_good_1_hail_gm_9b2049a3.mp3", "Well met, friend. It's good to make your acquaintance!", "bow", 754727055, 3165426316)
  69. elseif choice == 9 then
  70. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/human/human_eco_good_1_hail_gm_3fc546db.mp3", "As a citzen of the mighty city of Qeynos, I greet you openly.", "hello", 2645256785, 1334313741)
  71. elseif choice == 10 then
  72. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/human/human_eco_good_1_hail_gm_d38d1fff.mp3", "Ah, what have we here? Glad to see you endured the journey here adventurer.", "ponder", 2806352129, 3453714070)
  73. elseif choice == 11 then
  74. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/human/human_eco_good_1_hail_gm_60dfe3da.mp3", "Welcome to Qeynos friend!", "nod", 3850495157, 2924033866)
  75. elseif choice == 12 then
  76. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/human/human_eco_good_1_hail_gm_34d7a9e6.mp3", "Well met! Here in Qeynos you shall find a wealth of useful supplies. More importantly, ale!", "smile", 3467166298, 3144147842)
  77. elseif choice == 13 then
  78. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/human/human_eco_good_1_hail_gm_5ec5f221.mp3", "Glad you made it. Was the island as difficult as I remember?", "agree", 3870261841, 3828605353)
  79. end
  80. local Mikkel = GetSpawn(NPC,2220117)
  81. FaceTarget(NPC, Spawn)
  82. if Mikkel ~=nil then
  83. FaceTarget(Mikkel,Spawn)
  84. end
  85. end
  86. end
  87. end
  88. function respawn(NPC)
  89. spawn(NPC)
  90. end
  91. function waypoints(NPC)
  92. MovementLoopAddLocation(NPC, 441.68, -20.33, -318.13, 2, 0)
  93. MovementLoopAddLocation(NPC, 447.68, -20.33, -324.06, 2, 0)
  94. MovementLoopAddLocation(NPC, 451.08, -20.35, -326.46, 2, 0)
  95. MovementLoopAddLocation(NPC, 455.34, -20.41, -326.81, 2, 0)
  96. MovementLoopAddLocation(NPC, 460.61, -20.5, -325.99, 2, 0)
  97. MovementLoopAddLocation(NPC, 464.6, -20.47, -323.73, 2, 0)
  98. MovementLoopAddLocation(NPC, 467.31, -20.42, -320.02, 2, 0)
  99. MovementLoopAddLocation(NPC, 467.77, -20.35, -315.62, 2, 0)
  100. MovementLoopAddLocation(NPC, 466.03, -20.23, -311.41, 2, 0)
  101. MovementLoopAddLocation(NPC, 461.14, -20.18, -307.03, 2, 0)
  102. MovementLoopAddLocation(NPC, 455.07, -20.2, -304.7, 2, 0)
  103. MovementLoopAddLocation(NPC, 449.84, -20.26, -304.03, 2, 0)
  104. MovementLoopAddLocation(NPC, 437.04, -20.75, -281.16, 2, 0)
  105. MovementLoopAddLocation(NPC, 437.55, -20.92, -254.01, 2, 0)
  106. MovementLoopAddLocation(NPC, 434.83, -21.31, -248.24, 2, 0)
  107. MovementLoopAddLocation(NPC, 405.9, -23.02, -216.31, 2, 0)
  108. MovementLoopAddLocation(NPC, 388.39, -18.86, -235.08, 2, 0)
  109. MovementLoopAddLocation(NPC, 405.93, -23, -217.04, 2, 0)
  110. MovementLoopAddLocation(NPC, 386.32, -24.34, -194.34, 2, 0)
  111. MovementLoopAddLocation(NPC, 359.28, -25.34, -174.69, 2, 0)
  112. MovementLoopAddLocation(NPC, 341.23, -23.91, -145.54, 2, 0)
  113. MovementLoopAddLocation(NPC, 319.08, -23.15, -103.21, 2, 0)
  114. MovementLoopAddLocation(NPC, 314.18, -22.67, -91.88, 2, 0)
  115. MovementLoopAddLocation(NPC, 306.92, -21.35, -54.89, 2, 0)
  116. MovementLoopAddLocation(NPC, 294.23, -21.05, -45.16, 2, 0)
  117. MovementLoopAddLocation(NPC, 279.54, -21.18, -32.57, 2, 0)
  118. MovementLoopAddLocation(NPC, 257.93, -21.1, -11.88, 2, 0)
  119. MovementLoopAddLocation(NPC, 254.82, -19.97, 35.53, 2, 0)
  120. MovementLoopAddLocation(NPC, 286.47, -12.82, 76.85, 2, 0)
  121. MovementLoopAddLocation(NPC, 291.57, -13.42, 109.62, 2, 0)
  122. MovementLoopAddLocation(NPC, 301.61, -15.94, 140.57, 2, 0)
  123. MovementLoopAddLocation(NPC, 311.09, -17.91, 158.73, 2, 0)
  124. MovementLoopAddLocation(NPC, 315.55, -17.98, 164.22, 2, 0)
  125. MovementLoopAddLocation(NPC, 321.17, -18.12, 167.53, 2, 0)
  126. MovementLoopAddLocation(NPC, 327.38, -18.49, 168.63, 2, 0)
  127. MovementLoopAddLocation(NPC, 335.41, -19.11, 168.24, 2, 0)
  128. MovementLoopAddLocation(NPC, 343.39, -19.81, 165.99, 2, 0)
  129. MovementLoopAddLocation(NPC, 353.19, -20.11, 161.76, 2, 0)
  130. MovementLoopAddLocation(NPC, 362.33, -20.07, 156.28, 2, 0)
  131. MovementLoopAddLocation(NPC, 371, -20.4, 150.07, 2, 0)
  132. MovementLoopAddLocation(NPC, 376.95, -20.63, 141.51, 2, 0)
  133. MovementLoopAddLocation(NPC, 380.82, -20.84, 135.48, 2, 0)
  134. MovementLoopAddLocation(NPC, 376.95, -20.63, 141.51, 2, 0)
  135. MovementLoopAddLocation(NPC, 371, -20.4, 150.07, 2, 0)
  136. MovementLoopAddLocation(NPC, 362.33, -20.07, 156.28, 2, 0)
  137. MovementLoopAddLocation(NPC, 353.19, -20.11, 161.76, 2, 0)
  138. MovementLoopAddLocation(NPC, 343.39, -19.81, 165.99, 2, 0)
  139. MovementLoopAddLocation(NPC, 335.41, -19.11, 168.24, 2, 0)
  140. MovementLoopAddLocation(NPC, 327.38, -18.49, 168.63, 2, 0)
  141. MovementLoopAddLocation(NPC, 321.17, -18.12, 167.53, 2, 0)
  142. MovementLoopAddLocation(NPC, 315.55, -17.98, 164.22, 2, 0)
  143. MovementLoopAddLocation(NPC, 311.09, -17.91, 158.73, 2, 0)
  144. MovementLoopAddLocation(NPC, 301.61, -15.94, 140.57, 2, 0)
  145. MovementLoopAddLocation(NPC, 291.57, -13.42, 109.62, 2, 0)
  146. MovementLoopAddLocation(NPC, 286.47, -12.82, 76.85, 2, 0)
  147. MovementLoopAddLocation(NPC, 254.82, -19.97, 35.53, 2, 0)
  148. MovementLoopAddLocation(NPC, 257.93, -21.1, -11.88, 2, 0)
  149. MovementLoopAddLocation(NPC, 279.54, -21.18, -32.57, 2, 0)
  150. MovementLoopAddLocation(NPC, 294.23, -21.05, -45.16, 2, 0)
  151. MovementLoopAddLocation(NPC, 306.92, -21.35, -54.89, 2, 0)
  152. MovementLoopAddLocation(NPC, 314.18, -22.67, -91.88, 2, 0)
  153. MovementLoopAddLocation(NPC, 319.08, -23.15, -103.21, 2, 0)
  154. MovementLoopAddLocation(NPC, 341.23, -23.91, -145.54, 2, 0)
  155. MovementLoopAddLocation(NPC, 359.28, -25.34, -174.69, 2, 0)
  156. MovementLoopAddLocation(NPC, 386.32, -24.34, -194.34, 2, 0)
  157. MovementLoopAddLocation(NPC, 405.93, -23, -217.04, 2, 0)
  158. MovementLoopAddLocation(NPC, 388.39, -18.86, -235.08, 2, 0)
  159. MovementLoopAddLocation(NPC, 405.9, -23.02, -216.31, 2, 0)
  160. MovementLoopAddLocation(NPC, 434.83, -21.31, -248.24, 2, 0)
  161. MovementLoopAddLocation(NPC, 437.55, -20.92, -254.01, 2, 0)
  162. MovementLoopAddLocation(NPC, 437.04, -20.75, -281.16, 2, 0)
  163. MovementLoopAddLocation(NPC, 449.84, -20.26, -304.03, 2, 0)
  164. MovementLoopAddLocation(NPC, 455.07, -20.2, -304.7, 2, 0)
  165. MovementLoopAddLocation(NPC, 461.14, -20.18, -307.03, 2, 0)
  166. MovementLoopAddLocation(NPC, 466.03, -20.23, -311.41, 2, 0)
  167. MovementLoopAddLocation(NPC, 467.77, -20.35, -315.62, 2, 0)
  168. MovementLoopAddLocation(NPC, 467.31, -20.42, -320.02, 2, 0)
  169. MovementLoopAddLocation(NPC, 464.6, -20.47, -323.73, 2, 0)
  170. MovementLoopAddLocation(NPC, 460.61, -20.5, -325.99, 2, 0)
  171. MovementLoopAddLocation(NPC, 455.34, -20.41, -326.81, 2, 0)
  172. MovementLoopAddLocation(NPC, 451.08, -20.35, -326.46, 2, 0)
  173. MovementLoopAddLocation(NPC, 447.68, -20.33, -324.06, 2, 0)
  174. MovementLoopAddLocation(NPC, 441.68, -20.33, -318.13, 2, 0)
  175. end