KizdeanGix.lua 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/KizdeanGix.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2024.02.18 04:02:16
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/NPCModule"
  9. function spawn(NPC)
  10. dmgMod = GetStr(NPC)/10
  11. SetInfoStructUInt(NPC, "override_primary_weapon", 1)
  12. SetInfoStructUInt(NPC, "primary_weapon_damage_low", math.floor(30 + dmgMod))
  13. SetInfoStructUInt(NPC, "primary_weapon_damage_high", math.floor(60 + dmgMod))
  14. AddTimer(NPC, 6000, "waypoints")
  15. end
  16. function hailed(NPC, Spawn)
  17. FaceTarget(NPC, Spawn)
  18. end
  19. function respawn(NPC)
  20. spawn(NPC)
  21. end
  22. function waypoints(NPC)
  23. MovementLoopAddLocation(NPC, 1097.15, -39.09, -365.92, 2, 0)
  24. MovementLoopAddLocation(NPC, 1099.76, -38.75, -319.8, 2, 0)
  25. MovementLoopAddLocation(NPC, 1102.63, -38.65, -300.75, 2, 0)
  26. MovementLoopAddLocation(NPC, 1107.13, -39.01, -280.9, 2, 0)
  27. MovementLoopAddLocation(NPC, 1113.07, -39.93, -266.85, 2, 0)
  28. MovementLoopAddLocation(NPC, 1119.85, -40.44, -256.74, 2, 0)
  29. MovementLoopAddLocation(NPC, 1136.4, -41.85, -242.27, 2, 0)
  30. MovementLoopAddLocation(NPC, 1143.52, -42.19, -230.14, 2, 0)
  31. MovementLoopAddLocation(NPC, 1148.07, -42.37, -211.93, 2, 0)
  32. MovementLoopAddLocation(NPC, 1145.61, -42.37, -194.23, 2, 0)
  33. MovementLoopAddLocation(NPC, 1138.69, -42.41, -175.32, 2, 0)
  34. MovementLoopAddLocation(NPC, 1127.67, -42.42, -155.45, 2, 0)
  35. MovementLoopAddLocation(NPC, 1114.67, -42.66, -134.83, 2, 0)
  36. MovementLoopAddLocation(NPC, 1085.05, -44.97, -79.89, 2, 0)
  37. MovementLoopAddLocation(NPC, 1078.44, -45.1, -70.18, 2, 0)
  38. MovementLoopAddLocation(NPC, 1069.05, -45.16, -59.48, 2, 0)
  39. MovementLoopAddLocation(NPC, 1062.95, -45.15, -54.51, 2, 0)
  40. MovementLoopAddLocation(NPC, 1054.21, -45.09, -48.24, 2, 0)
  41. MovementLoopAddLocation(NPC, 1026.77, -44.87, -31.35, 2, 0)
  42. MovementLoopAddLocation(NPC, 1008.64, -44.97, -18.77, 2, 0)
  43. MovementLoopAddLocation(NPC, 981.84, -44.9, 3.4, 2, 0)
  44. MovementLoopAddLocation(NPC, 971.18, -44.97, 14.53, 2, 0)
  45. MovementLoopAddLocation(NPC, 963.24, -45.23, 25.29, 2, 0)
  46. MovementLoopAddLocation(NPC, 955.27, -45.9, 42.18, 2, 0)
  47. MovementLoopAddLocation(NPC, 950.99, -46.18, 50.52, 2, 0)
  48. MovementLoopAddLocation(NPC, 942, -46.57, 63.5, 2, 0)
  49. MovementLoopAddLocation(NPC, 928.65, -46.66, 75.44, 2, 0)
  50. MovementLoopAddLocation(NPC, 915.41, -46.62, 83.04, 2, 0)
  51. MovementLoopAddLocation(NPC, 890.2, -46.42, 90.98, 2, 0)
  52. MovementLoopAddLocation(NPC, 880.58, -46.24, 95.18, 2, 0)
  53. MovementLoopAddLocation(NPC, 843.29, -45.33, 124.17, 2, 0)
  54. MovementLoopAddLocation(NPC, 816.5, -43.91, 143.08, 2, 0)
  55. MovementLoopAddLocation(NPC, 769.93, -45.04, 182.28, 2, 0)
  56. MovementLoopAddLocation(NPC, 761.9, -45.09, 188.72, 2, 0)
  57. MovementLoopAddLocation(NPC, 749.77, -45.31, 196.83, 2, 0)
  58. MovementLoopAddLocation(NPC, 660.6, -47.57, 247.61, 2, 0)
  59. MovementLoopAddLocation(NPC, 655.74, -47.76, 249.78, 2, 0)
  60. MovementLoopAddLocation(NPC, 633.82, -47.81, 257.35, 2, 0)
  61. MovementLoopAddLocation(NPC, 623.04, -47.61, 259.92, 2, 0)
  62. MovementLoopAddLocation(NPC, 615.78, -47.48, 261.6, 2, 0)
  63. MovementLoopAddLocation(NPC, 601.93, -47.38, 262.82, 2, 0)
  64. MovementLoopAddLocation(NPC, 601.93, -47.38, 262.82, 2, 0)
  65. MovementLoopAddLocation(NPC, 615.78, -47.48, 261.6, 2, 0)
  66. MovementLoopAddLocation(NPC, 623.04, -47.61, 259.92, 2, 0)
  67. MovementLoopAddLocation(NPC, 633.82, -47.81, 257.35, 2, 0)
  68. MovementLoopAddLocation(NPC, 655.74, -47.76, 249.78, 2, 0)
  69. MovementLoopAddLocation(NPC, 660.6, -47.57, 247.61, 2, 0)
  70. MovementLoopAddLocation(NPC, 749.77, -45.31, 196.83, 2, 0)
  71. MovementLoopAddLocation(NPC, 761.9, -45.09, 188.72, 2, 0)
  72. MovementLoopAddLocation(NPC, 769.93, -45.04, 182.28, 2, 0)
  73. MovementLoopAddLocation(NPC, 816.5, -43.91, 143.08, 2, 0)
  74. MovementLoopAddLocation(NPC, 843.29, -45.33, 124.17, 2, 0)
  75. MovementLoopAddLocation(NPC, 880.58, -46.24, 95.18, 2, 0)
  76. MovementLoopAddLocation(NPC, 890.2, -46.42, 90.98, 2, 0)
  77. MovementLoopAddLocation(NPC, 915.41, -46.62, 83.04, 2, 0)
  78. MovementLoopAddLocation(NPC, 928.65, -46.66, 75.44, 2, 0)
  79. MovementLoopAddLocation(NPC, 942, -46.57, 63.5, 2, 0)
  80. MovementLoopAddLocation(NPC, 950.99, -46.18, 50.52, 2, 0)
  81. MovementLoopAddLocation(NPC, 955.27, -45.9, 42.18, 2, 0)
  82. MovementLoopAddLocation(NPC, 963.24, -45.23, 25.29, 2, 0)
  83. MovementLoopAddLocation(NPC, 971.18, -44.97, 14.53, 2, 0)
  84. MovementLoopAddLocation(NPC, 981.84, -44.9, 3.4, 2, 0)
  85. MovementLoopAddLocation(NPC, 1008.64, -44.97, -18.77, 2, 0)
  86. MovementLoopAddLocation(NPC, 1026.77, -44.87, -31.35, 2, 0)
  87. MovementLoopAddLocation(NPC, 1054.21, -45.09, -48.24, 2, 0)
  88. MovementLoopAddLocation(NPC, 1062.95, -45.15, -54.51, 2, 0)
  89. MovementLoopAddLocation(NPC, 1069.05, -45.16, -59.48, 2, 0)
  90. MovementLoopAddLocation(NPC, 1078.44, -45.1, -70.18, 2, 0)
  91. MovementLoopAddLocation(NPC, 1085.05, -44.97, -79.89, 2, 0)
  92. MovementLoopAddLocation(NPC, 1114.67, -42.66, -134.83, 2, 0)
  93. MovementLoopAddLocation(NPC, 1127.67, -42.42, -155.45, 2, 0)
  94. MovementLoopAddLocation(NPC, 1138.69, -42.41, -175.32, 2, 0)
  95. MovementLoopAddLocation(NPC, 1145.61, -42.37, -194.23, 2, 0)
  96. MovementLoopAddLocation(NPC, 1148.07, -42.37, -211.93, 2, 0)
  97. MovementLoopAddLocation(NPC, 1143.52, -42.19, -230.14, 2, 0)
  98. MovementLoopAddLocation(NPC, 1136.4, -41.85, -242.27, 2, 0)
  99. MovementLoopAddLocation(NPC, 1119.85, -40.44, -256.74, 2, 0)
  100. MovementLoopAddLocation(NPC, 1113.07, -39.93, -266.85, 2, 0)
  101. MovementLoopAddLocation(NPC, 1107.13, -39.01, -280.9, 2, 0)
  102. MovementLoopAddLocation(NPC, 1102.63, -38.65, -300.75, 2, 0)
  103. MovementLoopAddLocation(NPC, 1099.76, -38.75, -319.8, 2, 0)
  104. MovementLoopAddLocation(NPC, 1097.15, -39.09, -365.92, 2, 0)
  105. end