Kaemon.lua 4.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. --[[
  2. Script Name : SpawnScripts/ElddarGrove/Kaemon.lua
  3. Script Purpose : Kaemon
  4. Script Author : John Adams
  5. Script Date : 2008.09.28
  6. Script Notes : Updated Dialogue 05.01.2022 Dorbin
  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. GenericEcologyHail(NPC, Spawn, faction)
  16. end
  17. function InRange(NPC,Spawn)
  18. GenericEcologyCallout(NPC, Spawn, faction)
  19. end
  20. function respawn(NPC)
  21. end
  22. function waypoints(NPC)
  23. MovementLoopAddLocation(NPC, 796.48, -22.29, -532.16, 2, math.random(0,5))
  24. MovementLoopAddLocation(NPC, 784.51, -22.31, -509.94, 2, math.random(0,5))
  25. MovementLoopAddLocation(NPC, 774.51, -21.8, -496.87, 2, math.random(0,5))
  26. MovementLoopAddLocation(NPC, 753.33, -22.02, -475.7, 2, math.random(0,5))
  27. MovementLoopAddLocation(NPC, 720.13, -21.34, -459.29, 2, math.random(0,5))
  28. MovementLoopAddLocation(NPC, 709.1, -19.77, -445.47, 2, math.random(0,5))
  29. MovementLoopAddLocation(NPC, 704.38, -15.94, -433.44, 2, math.random(0,5))
  30. MovementLoopAddLocation(NPC, 699.07, -15.15, -419.15, 2, math.random(0,5))
  31. MovementLoopAddLocation(NPC, 705.79, -15.79, -379.66, 2, math.random(0,5))
  32. MovementLoopAddLocation(NPC, 755.38, -19.33, -378.63, 2, math.random(0,5))
  33. MovementLoopAddLocation(NPC, 755.38, -19.33, -378.63, 2, math.random(0,5))
  34. MovementLoopAddLocation(NPC, 698.79, -14.76, -379.16, 2, math.random(0,5))
  35. MovementLoopAddLocation(NPC, 648.9, -13.1, -359.49, 2, math.random(0,5))
  36. MovementLoopAddLocation(NPC, 638.81, -13.23, -369.1, 2, math.random(0,5))
  37. MovementLoopAddLocation(NPC, 576.91, -21.66, -364.32, 2, math.random(0,5))
  38. MovementLoopAddLocation(NPC, 568.64, -19.87, -373.3, 2, math.random(0,5))
  39. MovementLoopAddLocation(NPC, 550.27, -21.34, -323.28, 2, math.random(0,5))
  40. MovementLoopAddLocation(NPC, 560.2, -21.9, -314.32, 2, math.random(0,5))
  41. MovementLoopAddLocation(NPC, 596.45, -21.15, -314.94, 2, math.random(0,5))
  42. MovementLoopAddLocation(NPC, 648.73, -21.28, -308, 2, math.random(0,5))
  43. MovementLoopAddLocation(NPC, 649.68, -21.67, -304.18, 2, math.random(0,5))
  44. MovementLoopAddLocation(NPC, 650.22, -21.66, -293.1, 2, math.random(0,5))
  45. MovementLoopAddLocation(NPC, 650.98, -18.01, -207.74, 2, math.random(0,5))
  46. MovementLoopAddLocation(NPC, 648.83, -19.38, -271.75, 2, math.random(0,5))
  47. MovementLoopAddLocation(NPC, 681.02, -19.61, -276.77, 2, math.random(0,5))
  48. MovementLoopAddLocation(NPC, 704.77, -17.08, -331.67, 2, math.random(0,5))
  49. MovementLoopAddLocation(NPC, 723.53, -17.55, -330.58, 2, math.random(0,5))
  50. MovementLoopAddLocation(NPC, 747.75, -20.22, -332.03, 2, math.random(0,5))
  51. MovementLoopAddLocation(NPC, 772.13, -19.09, -331.47, 2, math.random(0,5))
  52. MovementLoopAddLocation(NPC, 747.75, -20.22, -332.03, 2, math.random(0,5))
  53. MovementLoopAddLocation(NPC, 723.53, -17.55, -330.58, 2, math.random(0,5))
  54. MovementLoopAddLocation(NPC, 704.77, -17.08, -331.67, 2, math.random(0,5))
  55. MovementLoopAddLocation(NPC, 681.02, -19.61, -276.77, 2, math.random(0,5))
  56. MovementLoopAddLocation(NPC, 648.83, -19.38, -271.75, 2, math.random(0,5))
  57. MovementLoopAddLocation(NPC, 650.98, -18.01, -207.74, 2, math.random(0,5))
  58. MovementLoopAddLocation(NPC, 650.22, -21.66, -293.1, 2, math.random(0,5))
  59. MovementLoopAddLocation(NPC, 649.68, -21.67, -304.18, 2, math.random(0,5))
  60. MovementLoopAddLocation(NPC, 648.73, -21.28, -308, 2, math.random(0,5))
  61. MovementLoopAddLocation(NPC, 596.45, -21.15, -314.94, 2, math.random(0,5))
  62. MovementLoopAddLocation(NPC, 560.2, -21.9, -314.32, 2, math.random(0,5))
  63. MovementLoopAddLocation(NPC, 550.27, -21.34, -323.28, 2, math.random(0,5))
  64. MovementLoopAddLocation(NPC, 568.64, -19.87, -373.3, 2, math.random(0,5))
  65. MovementLoopAddLocation(NPC, 576.91, -21.66, -364.32, 2, math.random(0,5))
  66. MovementLoopAddLocation(NPC, 638.81, -13.23, -369.1, 2, math.random(0,5))
  67. MovementLoopAddLocation(NPC, 648.9, -13.1, -359.49, 2, math.random(0,5))
  68. MovementLoopAddLocation(NPC, 698.79, -14.76, -379.16, 2, math.random(0,5))
  69. MovementLoopAddLocation(NPC, 755.38, -19.33, -378.63, 2, math.random(0,5))
  70. MovementLoopAddLocation(NPC, 755.38, -19.33, -378.63, 2, math.random(0,5))
  71. MovementLoopAddLocation(NPC, 705.79, -15.79, -379.66, 2, math.random(0,5))
  72. MovementLoopAddLocation(NPC, 699.07, -15.15, -419.15, 2, math.random(0,5))
  73. MovementLoopAddLocation(NPC, 704.38, -15.94, -433.44, 2, math.random(0,5))
  74. MovementLoopAddLocation(NPC, 709.1, -19.77, -445.47, 2, math.random(0,5))
  75. MovementLoopAddLocation(NPC, 720.13, -21.34, -459.29, 2, math.random(0,5))
  76. MovementLoopAddLocation(NPC, 753.33, -22.02, -475.7, 2, math.random(0,5))
  77. MovementLoopAddLocation(NPC, 774.51, -21.8, -496.87, 2, math.random(0,5))
  78. MovementLoopAddLocation(NPC, 784.51, -22.31, -509.94, 2, math.random(0,5))
  79. MovementLoopAddLocation(NPC, 796.48, -22.29, -532.16, 2, math.random(0,5))
  80. end