9
3

nathan.lua 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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, 9, "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)<66 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. function respawn(NPC)
  48. spawn(NPC)
  49. end
  50. function waypoints(NPC)
  51. MovementLoopAddLocation(NPC, 780.46, -23.28, 81.74, 6, 0)
  52. MovementLoopAddLocation(NPC, 812.79, -23.34, 79.12, 6, 0)
  53. MovementLoopAddLocation(NPC, 832.09, -23.31, 46.9, 6, 0)
  54. MovementLoopAddLocation(NPC, 861.34, -25.37, 42.41, 6, 0)
  55. MovementLoopAddLocation(NPC, 892.74, -25.5, 54.12, 6, 0)
  56. MovementLoopAddLocation(NPC, 864.29, -25.5, 111.67, 6, 0)
  57. MovementLoopAddLocation(NPC, 906.32, -25.37, 7.59, 6, 0)
  58. MovementLoopAddLocation(NPC, 891.37, -25.36, -48.18, 6, 0)
  59. MovementLoopAddLocation(NPC, 862.76, -25.46, -72.81, 6, 0)
  60. MovementLoopAddLocation(NPC, 810.88, -20.4, -61.54, 6, 0)
  61. MovementLoopAddLocation(NPC, 762.83, -21.57, -60.8, 6, 0)
  62. MovementLoopAddLocation(NPC, 762.12, -20.8, -20.16, 6, 0)
  63. MovementLoopAddLocation(NPC, 750.64, -20.93, 4.63, 6, 0)
  64. MovementLoopAddLocation(NPC, 703.9, -21.08, -53.43, 6, 0)
  65. MovementLoopAddLocation(NPC, 731.13, -21.32, -59.2, 6, 0)
  66. MovementLoopAddLocation(NPC, 885.24, -25.36, -61.67, 6, 0)
  67. MovementLoopAddLocation(NPC, 904.09, -25.37, 12.44, 6, 0)
  68. MovementLoopAddLocation(NPC, 950.73, -25.5, 32.34, 6, 0)
  69. MovementLoopAddLocation(NPC, 952.78, -25.5, 20.96, 6, 0)
  70. MovementLoopAddLocation(NPC, 950.73, -25.5, 32.34, 6, 0)
  71. MovementLoopAddLocation(NPC, 904.09, -25.37, 12.44, 6, 0)
  72. MovementLoopAddLocation(NPC, 885.24, -25.36, -61.67, 6, 0)
  73. MovementLoopAddLocation(NPC, 731.13, -21.32, -59.2, 6, 0)
  74. MovementLoopAddLocation(NPC, 703.9, -21.08, -53.43, 6, 0)
  75. MovementLoopAddLocation(NPC, 750.64, -20.93, 4.63, 6, 0)
  76. MovementLoopAddLocation(NPC, 762.12, -20.8, -20.16, 6, 0)
  77. MovementLoopAddLocation(NPC, 762.83, -21.57, -60.8, 6, 0)
  78. MovementLoopAddLocation(NPC, 810.88, -20.4, -61.54, 6, 0)
  79. MovementLoopAddLocation(NPC, 862.76, -25.46, -72.81, 6, 0)
  80. MovementLoopAddLocation(NPC, 891.37, -25.36, -48.18, 6, 0)
  81. MovementLoopAddLocation(NPC, 906.32, -25.37, 7.59, 6, 0)
  82. MovementLoopAddLocation(NPC, 864.29, -25.5, 111.67, 6, 0)
  83. MovementLoopAddLocation(NPC, 892.74, -25.5, 54.12, 6, 0)
  84. MovementLoopAddLocation(NPC, 861.34, -25.37, 42.41, 6, 0)
  85. MovementLoopAddLocation(NPC, 832.09, -23.31, 46.9, 6, 0)
  86. MovementLoopAddLocation(NPC, 812.79, -23.34, 79.12, 6, 0)
  87. MovementLoopAddLocation(NPC, 780.46, -23.28, 81.74, 6, 0)
  88. end