9
3

nathan.lua 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325
  1. --[[
  2. Script Name : nathanironforge.lua
  3. Script Purpose : Waypoint Path for nathanironforge.lua
  4. Script Author : Devn00b
  5. Script Date : 04/09/2020 01:25:37 PM
  6. Script Notes : Locations collected from Live
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 7, "InRange", "LeaveRange")
  10. waypoints(NPC)
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. local choice = math.random(1,3)
  15. if choice == 1 then
  16. FaceTarget(NPC,Spawn)
  17. PlayFlavor(NPC, "voiceover/english/human_eco_good_annoyingkid/ft/eco/good/human_eco_good_annoyingkid_hail_gm_dc9519d6.mp3", "I want to join the Qeynos Guard when I grow up!", "salute", 3878579501, 1793000405, Spawn)
  18. elseif choice == 2 then
  19. FaceTarget(NPC,Spawn)
  20. PlayFlavor(NPC, "voiceover/english/human_eco_good_annoyingkid/ft/eco/good/human_eco_good_annoyingkid_hail_gm_5674cc18.mp3", "Have you seen a Gnoll before?", "stare", 3064755312, 374536170, Spawn)
  21. elseif choice == 3 then
  22. FaceTarget(NPC,Spawn)
  23. PlayFlavor(NPC, "voiceover/english/human_eco_good_annoyingkid/ft/eco/good/human_eco_good_annoyingkid_hail_gm_110eef44.mp3", "Have you been inside the castle? I want to go there someday!", "smile", 2372987392, 3554768792, Spawn)
  24. end
  25. end
  26. function InRange(NPC, Spawn)
  27. if math.random(1,100)<40 then
  28. local choice = math.random(1,5)
  29. if choice == 1 then
  30. PlayFlavor(NPC, "voiceover/english/human_eco_good_annoyingkid/ft/eco/good/human_eco_good_annoyingkid_cat_gm_fdc32a9.mp3", "Come back here kitty!", "wave", 204283170, 334524744, Spawn)
  31. elseif choice == 2 then
  32. PlayFlavor(NPC, "voiceover/english/human_eco_evil_badkid/ft/eco/evil/human_eco_evil_badkid_pig_gm_9fa4475d.mp3", "Run ya swine. Run!", "wave", 1654188343, 2070658176, Spawn)
  33. elseif choice == 3 then
  34. FaceTarget(NPC,Spawn)
  35. PlayFlavor(NPC, "voiceover/english/human_eco_good_annoyingkid/ft/eco/good/human_eco_good_annoyingkid_hail_gm_dc9519d6.mp3", "I want to join the Qeynos Guard when I grow up!", "salute", 3878579501, 1793000405, Spawn)
  36. elseif choice == 4 then
  37. FaceTarget(NPC,Spawn)
  38. PlayFlavor(NPC, "voiceover/english/human_eco_good_annoyingkid/ft/eco/good/human_eco_good_annoyingkid_hail_gm_5674cc18.mp3", "Have you seen a Gnoll before?", "stare", 3064755312, 374536170, Spawn)
  39. elseif choice == 5 then
  40. FaceTarget(NPC,Spawn)
  41. PlayFlavor(NPC, "voiceover/english/human_eco_good_annoyingkid/ft/eco/good/human_eco_good_annoyingkid_hail_gm_110eef44.mp3", "Have you been inside the castle? I want to go there someday!", "smile", 2372987392, 3554768792, Spawn)
  42. end
  43. end
  44. end
  45. function LeaveRange(NPC, Spawn)
  46. end
  47. -- GUARD SALUTES
  48. function Moor(NPC,Spawn)
  49. guard = GetSpawn(NPC,2210118)
  50. if guard ~=nil then
  51. PlayFlavor(NPC,"","","salute",0,0)
  52. AddTimer(NPC,"2500","MoorSalute")
  53. end
  54. end
  55. function MoorSalute(NPC,guard)
  56. guard = GetSpawn(NPC,2210118)
  57. if guard ~=nil then
  58. local choice = math.random(1,3)
  59. if choice==1 then
  60. PlayFlavor(guard,"","","salute",0,0)
  61. elseif choice==2 then
  62. PlayFlavor(guard,"","","chuckle",0,0)
  63. elseif choice==3 then
  64. PlayFlavor(guard,"","","hello",0,0)
  65. end
  66. end
  67. end
  68. function Thoro(NPC,Spawn)
  69. guard = GetSpawn(NPC, 2210254)
  70. if guard ~=nil then
  71. PlayFlavor(NPC,"","","salute",0,0)
  72. AddTimer(NPC,"2500","ThoroSalute")
  73. end
  74. end
  75. function ThoroSalute(NPC,guard)
  76. guard = GetSpawn(NPC,2210254)
  77. if guard ~=nil then
  78. local choice = math.random(1,3)
  79. if choice==1 then
  80. PlayFlavor(guard,"","","salute",0,0)
  81. elseif choice==2 then
  82. PlayFlavor(guard,"","","chuckle",0,0)
  83. elseif choice==3 then
  84. PlayFlavor(guard,"","","hello",0,0)
  85. end
  86. end
  87. end
  88. function Elder(NPC,Spawn)
  89. guard = GetSpawn(NPC, 2210248)
  90. if guard ~=nil then
  91. PlayFlavor(NPC,"","","salute",0,0)
  92. AddTimer(NPC,"2500","ElderSalute")
  93. end
  94. end
  95. function ElderSalute(NPC,guard)
  96. guard = GetSpawn(NPC,2210248)
  97. if guard ~=nil then
  98. local choice = math.random(1,3)
  99. if choice==1 then
  100. PlayFlavor(guard,"","","salute",0,0)
  101. elseif choice==2 then
  102. PlayFlavor(guard,"","","chuckle",0,0)
  103. elseif choice==3 then
  104. PlayFlavor(guard,"","","hello",0,0)
  105. end
  106. end
  107. end
  108. function Velwich(NPC,Spawn)
  109. guard = GetSpawn(NPC, 2210245)
  110. if guard ~=nil then
  111. PlayFlavor(NPC,"","","salute",0,0)
  112. AddTimer(NPC,"2500","VelwichSalute")
  113. end
  114. end
  115. function VelwichSalute(NPC,guard)
  116. guard = GetSpawn(NPC,2210245)
  117. if guard ~=nil then
  118. local choice = math.random(1,3)
  119. if choice==1 then
  120. PlayFlavor(guard,"","","salute",0,0)
  121. elseif choice==2 then
  122. PlayFlavor(guard,"","","chuckle",0,0)
  123. elseif choice==3 then
  124. PlayFlavor(guard,"","","hello",0,0)
  125. end
  126. end
  127. end
  128. function Buresh(NPC,Spawn)
  129. guard = GetSpawn(NPC, 2210284)
  130. if guard ~=nil then
  131. PlayFlavor(NPC,"","","salute",0,0)
  132. AddTimer(NPC,"2500","BureshSalute")
  133. end
  134. end
  135. function BureshSalute(NPC,guard)
  136. guard = GetSpawn(NPC,2210284)
  137. if guard ~=nil then
  138. local choice = math.random(1,3)
  139. if choice==1 then
  140. PlayFlavor(guard,"","","salute",0,0)
  141. elseif choice==2 then
  142. PlayFlavor(guard,"","","chuckle",0,0)
  143. elseif choice==3 then
  144. PlayFlavor(guard,"","","hello",0,0)
  145. end
  146. end
  147. end
  148. function respawn(NPC)
  149. spawn(NPC)
  150. end
  151. function waypoints(NPC)
  152. MovementLoopAddLocation(NPC, 796.4, -23.22, 74.93, 6, 15)
  153. MovementLoopAddLocation(NPC, 808.6, -23.18, 79.46, 6, 0)
  154. MovementLoopAddLocation(NPC, 812.67, -23.34, 79.58, 6, 0)
  155. MovementLoopAddLocation(NPC, 829.18, -23.31, 49.39, 6, 0)
  156. MovementLoopAddLocation(NPC, 833.98, -23.31, 43.18, 6, 0)
  157. MovementLoopAddLocation(NPC, 858.15, -25.37, 39.61, 6, 0)
  158. MovementLoopAddLocation(NPC, 879.39, -25.37, 43.08, 6, 0)
  159. MovementLoopAddLocation(NPC, 886.43, -25.37, 42.17, 6, 0)
  160. MovementLoopAddLocation(NPC, 892.44, -25.37, 37.64, 6, 0)
  161. MovementLoopAddLocation(NPC, 918.84, -25.49, 24.03, 6, 0)
  162. MovementLoopAddLocation(NPC, 928.86, -25.4, 10.88, 6, 15)
  163. MovementLoopAddLocation(NPC, 934.52, -25.47, 22.45, 6, 0)
  164. MovementLoopAddLocation(NPC, 946.09, -25.52, 29.22, 6, 0)
  165. MovementLoopAddLocation(NPC, 949.85, -25.5, 29.55, 6, 0)
  166. MovementLoopAddLocation(NPC, 952.91, -25.5, 26.56, 6, 0)
  167. MovementLoopAddLocation(NPC, 955.05, -25.5, 22.64, 6, 0)
  168. MovementLoopAddLocation(NPC, 957.55, -25.44, 22.11, 6, 0)
  169. MovementLoopAddLocation(NPC, 971.43, -25.52, 21.67, 6, 1)
  170. MovementLoopAddLocation(NPC, 971.43, -25.52, 21.67, 6, 6,"Moor")
  171. MovementLoopAddLocation(NPC, 972.16, -25.52, 21.68, 6, 0)
  172. MovementLoopAddLocation(NPC, 971.64, -25.51, 21.19, 6, 0)
  173. MovementLoopAddLocation(NPC, 957.61, -25.44, 21.73, 6, 0)
  174. MovementLoopAddLocation(NPC, 954.4, -25.5, 25.79, 6, 0)
  175. MovementLoopAddLocation(NPC, 949.8, -25.5, 32.19, 6, 0)
  176. MovementLoopAddLocation(NPC, 913.51, -25.49, 17.93, 6, 0)
  177. MovementLoopAddLocation(NPC, 906.69, -25.42, 12.79, 6, 0)
  178. MovementLoopAddLocation(NPC, 906.1, -25.37, -8.2, 6, 0)
  179. MovementLoopAddLocation(NPC, 903.37, -25.37, -22.91, 6, 0)
  180. MovementLoopAddLocation(NPC, 895.72, -24.12, -45, 6, 0)
  181. MovementLoopAddLocation(NPC, 892.88, -25.36, -52.43, 6, 0)
  182. MovementLoopAddLocation(NPC, 884.04, -25.36, -59.58, 6, 0)
  183. MovementLoopAddLocation(NPC, 876.63, -25.36, -62.49, 6, 0)
  184. MovementLoopAddLocation(NPC, 872.69, -25.39, -67.13, 6, 1)
  185. MovementLoopAddLocation(NPC, 872.69, -25.39, -67.13, 6, 6,"Thoro")
  186. MovementLoopAddLocation(NPC, 872.84, -25.4, -67.94, 6, 0)
  187. MovementLoopAddLocation(NPC, 869.22, -25.36, -64.59, 6, 0)
  188. MovementLoopAddLocation(NPC, 792.92, -20.99, -61.57, 6, 0)
  189. MovementLoopAddLocation(NPC, 762.28, -21.63, -59.98, 6, 0)
  190. MovementLoopAddLocation(NPC, 758.67, -20.97, -37.31, 6, 0)
  191. MovementLoopAddLocation(NPC, 739.73, -21.43, -23.29, 6, 0)
  192. MovementLoopAddLocation(NPC, 701.6, -20.12, -5.44, 6, 15)
  193. MovementLoopAddLocation(NPC, 705.56, -20.64, -10.23, 6, 0)
  194. MovementLoopAddLocation(NPC, 701.20, -20.64, -18.38, 6, 0)
  195. MovementLoopAddLocation(NPC, 679.41, -20.64, -15.31, 6, 1)
  196. MovementLoopAddLocation(NPC, 679.41, -20.64, -15.31, 6, 6,"Elder")
  197. MovementLoopAddLocation(NPC, 676.70, -20.64, -13.99, 6, 0)
  198. MovementLoopAddLocation(NPC, 724.36, -21.22, -27.82, 6, 0)
  199. MovementLoopAddLocation(NPC, 747.34, -21.25, -28.78, 6, 0)
  200. MovementLoopAddLocation(NPC, 751.72, -21.4, -43.48, 6, 0)
  201. MovementLoopAddLocation(NPC, 749, -21.51, -56, 6, 0)
  202. MovementLoopAddLocation(NPC, 720.15, -21.39, -57.71, 6, 0)
  203. MovementLoopAddLocation(NPC, 787.53, -21.22, -53.04, 6, 0)
  204. MovementLoopAddLocation(NPC, 775.66, -20.64, -21.79, 6, 0)
  205. MovementLoopAddLocation(NPC, 780.69, -20.64, -19.9, 6, 60)
  206. MovementLoopAddLocation(NPC, 762.45, -20.71, -23.65, 6, 0)
  207. MovementLoopAddLocation(NPC, 757.97, -20.78, -28.01, 6, 0)
  208. MovementLoopAddLocation(NPC, 751.46, -21.55, -55.8, 6, 0)
  209. MovementLoopAddLocation(NPC, 722.5, -21.39, -56.15, 6, 0)
  210. MovementLoopAddLocation(NPC, 717, -20.72, -81.1, 6, 0)
  211. MovementLoopAddLocation(NPC, 716.36, -20.48, -92.23, 6, 1)
  212. MovementLoopAddLocation(NPC, 716.36, -20.48, -92.23, 6, 6,"Velwich")
  213. MovementLoopAddLocation(NPC, 717.02, -20.4, -93.44, 6, 0)
  214. MovementLoopAddLocation(NPC, 719.33, -20.78, -77.92, 6, 0)
  215. MovementLoopAddLocation(NPC, 719.73, -20.84, -75.24, 6, 0)
  216. MovementLoopAddLocation(NPC, 741.49, -21.33, -59.02, 6, 0)
  217. MovementLoopAddLocation(NPC, 810.85, -20.4, -62.85, 6, 0)
  218. MovementLoopAddLocation(NPC, 844.5, -25.36, -65.08, 6, 0)
  219. MovementLoopAddLocation(NPC, 869.98, -25.36, -64.87, 6, 0)
  220. MovementLoopAddLocation(NPC, 889.56, -25.36, -57.63, 6, 0)
  221. MovementLoopAddLocation(NPC, 895.09, -25.35, -48.96, 6, 0)
  222. MovementLoopAddLocation(NPC, 902.53, -25.32, -28.08, 6, 0)
  223. MovementLoopAddLocation(NPC, 907.76, -25.37, -10.78, 6, 0)
  224. MovementLoopAddLocation(NPC, 904.69, -25.37, 13.46, 6, 0)
  225. MovementLoopAddLocation(NPC, 898.53, -25.37, 31.73, 6, 0)
  226. MovementLoopAddLocation(NPC, 888.99, -25.49, 56.74, 6, 0)
  227. MovementLoopAddLocation(NPC, 883.79, -25.49, 71.17, 6, 0)
  228. MovementLoopAddLocation(NPC, 872.68, -25.49, 94.6, 6, 0)
  229. MovementLoopAddLocation(NPC, 871.31, -25.51, 98.68, 6, 0)
  230. MovementLoopAddLocation(NPC, 866.66, -25.51, 108.53, 6, 0)
  231. MovementLoopAddLocation(NPC, 851.23, -25.5, 110.11, 6, 15)
  232. MovementLoopAddLocation(NPC, 854.43, -25.46, 109.91, 6, 0)
  233. MovementLoopAddLocation(NPC, 864.17, -25.5, 112.06, 6, 0)
  234. MovementLoopAddLocation(NPC, 890.96, -25.52, 56.23, 6, 0)
  235. MovementLoopAddLocation(NPC, 885.97, -25.38, 47.24, 6, 0)
  236. MovementLoopAddLocation(NPC, 859.01, -25.37, 41.12, 6, 0)
  237. MovementLoopAddLocation(NPC, 834.36, -23.31, 44.5, 6, 0)
  238. MovementLoopAddLocation(NPC, 831.2, -23.31, 51.8, 6, 0)
  239. MovementLoopAddLocation(NPC, 819.45, -23.31, 78.92, 6, 0)
  240. MovementLoopAddLocation(NPC, 817.67, -23.31, 86.1, 6, 0)
  241. MovementLoopAddLocation(NPC, 818.65, -23.31, 101.2, 6, 0)
  242. MovementLoopAddLocation(NPC, 810.48, -23.32, 124.02, 6, 0)
  243. MovementLoopAddLocation(NPC, 808.11, -20.94, 139.94, 6, 1)
  244. MovementLoopAddLocation(NPC, 808.11, -20.94, 139.94, 6, 6,"Buresh")
  245. MovementLoopAddLocation(NPC, 809.16, -20.9, 141.91, 6, 0)
  246. MovementLoopAddLocation(NPC, 806.01, -20.92, 142.36, 6, 0)
  247. MovementLoopAddLocation(NPC, 802.61, -20.98, 135.8, 6, 0)
  248. MovementLoopAddLocation(NPC, 810.63, -23.31, 115.74, 6, 0)
  249. MovementLoopAddLocation(NPC, 815.02, -23.31, 103.28, 6, 0)
  250. MovementLoopAddLocation(NPC, 815.83, -23.31, 81.03, 6, 0)
  251. MovementLoopAddLocation(NPC, 806.01, -23.17, 79.34, 6, 0)
  252. end
  253. --[[
  254. function waypoints(NPC)
  255. MovementLoopAddLocation(NPC, 780.46, -23.28, 81.74, 6, 0)
  256. MovementLoopAddLocation(NPC, 812.79, -23.34, 79.12, 6, 0)
  257. MovementLoopAddLocation(NPC, 832.09, -23.31, 46.9, 6, 0)
  258. MovementLoopAddLocation(NPC, 861.34, -25.37, 42.41, 6, 0)
  259. MovementLoopAddLocation(NPC, 892.74, -25.5, 54.12, 6, 0)
  260. MovementLoopAddLocation(NPC, 864.29, -25.5, 111.67, 6, 0)
  261. MovementLoopAddLocation(NPC, 906.32, -25.37, 7.59, 6, 0)
  262. MovementLoopAddLocation(NPC, 891.37, -25.36, -48.18, 6, 0)
  263. MovementLoopAddLocation(NPC, 862.76, -25.46, -72.81, 6, 0)
  264. MovementLoopAddLocation(NPC, 810.88, -20.4, -61.54, 6, 0)
  265. MovementLoopAddLocation(NPC, 762.83, -21.57, -60.8, 6, 0)
  266. MovementLoopAddLocation(NPC, 762.12, -20.8, -20.16, 6, 0)
  267. MovementLoopAddLocation(NPC, 750.64, -20.93, 4.63, 6, 0)
  268. MovementLoopAddLocation(NPC, 703.9, -21.08, -53.43, 6, 0)
  269. MovementLoopAddLocation(NPC, 731.13, -21.32, -59.2, 6, 0)
  270. MovementLoopAddLocation(NPC, 885.24, -25.36, -61.67, 6, 0)
  271. MovementLoopAddLocation(NPC, 904.09, -25.37, 12.44, 6, 0)
  272. MovementLoopAddLocation(NPC, 950.73, -25.5, 32.34, 6, 0)
  273. MovementLoopAddLocation(NPC, 952.78, -25.5, 20.96, 6, 0)
  274. MovementLoopAddLocation(NPC, 950.73, -25.5, 32.34, 6, 0)
  275. MovementLoopAddLocation(NPC, 904.09, -25.37, 12.44, 6, 0)
  276. MovementLoopAddLocation(NPC, 885.24, -25.36, -61.67, 6, 0)
  277. MovementLoopAddLocation(NPC, 731.13, -21.32, -59.2, 6, 0)
  278. MovementLoopAddLocation(NPC, 703.9, -21.08, -53.43, 6, 0)
  279. MovementLoopAddLocation(NPC, 750.64, -20.93, 4.63, 6, 0)
  280. MovementLoopAddLocation(NPC, 762.12, -20.8, -20.16, 6, 0)
  281. MovementLoopAddLocation(NPC, 762.83, -21.57, -60.8, 6, 0)
  282. MovementLoopAddLocation(NPC, 810.88, -20.4, -61.54, 6, 0)
  283. MovementLoopAddLocation(NPC, 862.76, -25.46, -72.81, 6, 0)
  284. MovementLoopAddLocation(NPC, 891.37, -25.36, -48.18, 6, 0)
  285. MovementLoopAddLocation(NPC, 906.32, -25.37, 7.59, 6, 0)
  286. MovementLoopAddLocation(NPC, 864.29, -25.5, 111.67, 6, 0)
  287. MovementLoopAddLocation(NPC, 892.74, -25.5, 54.12, 6, 0)
  288. MovementLoopAddLocation(NPC, 861.34, -25.37, 42.41, 6, 0)
  289. MovementLoopAddLocation(NPC, 832.09, -23.31, 46.9, 6, 0)
  290. MovementLoopAddLocation(NPC, 812.79, -23.34, 79.12, 6, 0)
  291. MovementLoopAddLocation(NPC, 780.46, -23.28, 81.74, 6, 0)
  292. end
  293. ]]--