9
3

aseasoneddefender.lua 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. --[[
  2. Script Name : SpawnScripts/Ruins/aseasoneddefender.lua
  3. Script Purpose : a seasoned defender <Freeport Militia>
  4. Script Author : Scatman
  5. Script Date : 2009.08.29
  6. Script Notes :
  7. --]]
  8. dofile("SpawnScripts/Generic/RuinsDefendersVoiceOvers.lua")
  9. function spawn(NPC)
  10. local sli = GetSpawnLocationID(NPC)
  11. if sli == 159684 then
  12. StartPath1(NPC)
  13. elseif sli == 159683 then
  14. StartPath2(NPC)
  15. elseif sli == 159682 then
  16. StartPath3(NPC)
  17. end
  18. end
  19. function respawn(NPC)
  20. spawn(NPC)
  21. end
  22. function hailed(NPC, Spawn)
  23. FaceTarget(NPC, Spawn)
  24. generic_hail(NPC, Spawn)
  25. end
  26. function StartPath1(NPC)
  27. MovementLoopAddLocation(NPC, -20.26, -4.15, 85.17, 2, 0)
  28. MovementLoopAddLocation(NPC, -12.08, -4.24, 75.92, 2, 0)
  29. MovementLoopAddLocation(NPC, -14.95, -4.24, 64.55, 2, 0)
  30. MovementLoopAddLocation(NPC, -11.24, -4.24, 57.84, 2, 0)
  31. MovementLoopAddLocation(NPC, -12.24, -5, 41.88, 2, 0)
  32. MovementLoopAddLocation(NPC, -15.48, -5.31, 37.03, 2, 0)
  33. MovementLoopAddLocation(NPC, -11.25, -5.15, 36.47, 2, 0)
  34. MovementLoopAddLocation(NPC, -8.6, -4.88, 40.77, 2, 0)
  35. MovementLoopAddLocation(NPC, -8.43, -4.24, 50.98, 2, 0)
  36. MovementLoopAddLocation(NPC, -7.42, -4.24, 52.29, 2, 0)
  37. MovementLoopAddLocation(NPC, -5.13, -4.28, 71.41, 2, 0)
  38. MovementLoopAddLocation(NPC, -2.23, -4.26, 76.82, 2, 0)
  39. MovementLoopAddLocation(NPC, -6.65, -4.28, 93.79, 2, 0)
  40. MovementLoopAddLocation(NPC, -5.76, -4.24, 99.44, 2, 0)
  41. MovementLoopAddLocation(NPC, -11.76, -4.24, 108.34, 2, 0)
  42. end
  43. function StartPath2(NPC)
  44. MovementLoopAddLocation(NPC, -12.62, -4.26, 75.78, 2, 0)
  45. MovementLoopAddLocation(NPC, -18.93, -4.24, 83.4, 2, 0)
  46. MovementLoopAddLocation(NPC, -14.57, -4.25, 103.05, 2, 0)
  47. MovementLoopAddLocation(NPC, -18.66, -4.42, 120.44, 2, 0)
  48. MovementLoopAddLocation(NPC, -12.55, -4.39, 123.38, 2, 0)
  49. MovementLoopAddLocation(NPC, -8.87, -4.24, 109.37, 2, 0)
  50. MovementLoopAddLocation(NPC, -9.4, -4.25, 104.12, 2, 0)
  51. MovementLoopAddLocation(NPC, -1.7, -4.24, 78.12, 2, 0)
  52. MovementLoopAddLocation(NPC, -10.69, -4.24, 66.76, 2, 0)
  53. end
  54. function StartPath3(NPC)
  55. MovementLoopAddLocation(NPC, -15.67, -4.94, 16.16, 2, 0)
  56. MovementLoopAddLocation(NPC, -16.02, -5.15, 27.79, 2, 0)
  57. MovementLoopAddLocation(NPC, -8.82, -5.04, 39.21, 2, 0)
  58. MovementLoopAddLocation(NPC, -3.86, -4.27, 88.28, 2, 0)
  59. MovementLoopAddLocation(NPC, -12.66, -4.24, 93.68, 2, 0)
  60. MovementLoopAddLocation(NPC, -20.63, -4.09, 84.59, 2, 0)
  61. MovementLoopAddLocation(NPC, -12.54, -4.26, 76.28, 2, 0)
  62. MovementLoopAddLocation(NPC, -11.41, -4.26, 56.9, 2, 0)
  63. MovementLoopAddLocation(NPC, -11.8, -4.75, 43.46, 2, 0)
  64. MovementLoopAddLocation(NPC, -21.25, -5.21, 28.53, 2, 0)
  65. MovementLoopAddLocation(NPC, -20.74, -5.09, 17.62, 2, 0)
  66. MovementLoopAddLocation(NPC, -15.47, -4.31, 7.05, 2, 0)
  67. MovementLoopAddLocation(NPC, -8.18, -4.32, 10.26, 2, 0)
  68. end