9
3

FerithAnar.lua 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. --[[
  2. Script Name : SpawnScripts/Oakmyst_Classic/FerithAnar.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.10.19 08:10:42
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/NPCModule"
  9. function spawn(NPC)
  10. local dmgMod = GetStr(NPC)/10
  11. Named(NPC)
  12. SetInfoStructUInt(NPC, "override_primary_weapon", 1)
  13. SetInfoStructUInt(NPC, "primary_weapon_damage_low", math.floor(18 + dmgMod))
  14. SetInfoStructUInt(NPC, "primary_weapon_damage_high", math.floor(32 + dmgMod))
  15. AddTimer(NPC, 6000, "waypoints")
  16. end
  17. function hailed(NPC, Spawn)
  18. end
  19. function respawn(NPC)
  20. spawn(NPC)
  21. end
  22. function waypoints(NPC)
  23. if GetSpawnLocationID(NPC)==133779104 then
  24. MovementLoopAddLocation(NPC, 749.41, 13.78, -231.54, 2, 0)
  25. MovementLoopAddLocation(NPC, 755.83, 13.38, -231.36, 2, 0)
  26. MovementLoopAddLocation(NPC, 771.48, 13.35, -248.88, 2, 0)
  27. MovementLoopAddLocation(NPC, 786.09, 13.35, -255.78, 2, 0)
  28. MovementLoopAddLocation(NPC, 804.37, 11.68, -267.99, 2, 0)
  29. MovementLoopAddLocation(NPC, 816.87, 7.87, -277.15, 2, 0)
  30. MovementLoopAddLocation(NPC, 823.56, 6.42, -283.64, 2, 0)
  31. MovementLoopAddLocation(NPC, 828.64, 6.88, -295.1, 2, 0)
  32. MovementLoopAddLocation(NPC, 835.56, 5.46, -307.47, 2, 0)
  33. MovementLoopAddLocation(NPC, 843.99, 4.49, -318.56, 2, 0)
  34. MovementLoopAddLocation(NPC, 854.74, 3.04, -324.44, 2, 0)
  35. MovementLoopAddLocation(NPC, 877.71, 1.89, -333.18, 2, 0)
  36. MovementLoopAddLocation(NPC, 882.57, 1.76, -330.63, 2, 0)
  37. MovementLoopAddLocation(NPC, 903.15, 2.2, -312.93, 2, 0)
  38. MovementLoopAddLocation(NPC, 909.24, 2.32, -310.58, 2, 0)
  39. MovementLoopAddLocation(NPC, 911.41, 2.24, -307.34, 2, 0)
  40. MovementLoopAddLocation(NPC, 908.64, 2.25, -301.7, 2, 0)
  41. MovementLoopAddLocation(NPC, 899.67, 2.2, -283.03, 2, 0)
  42. MovementLoopAddLocation(NPC, 897.62, 1.7, -271.53, 2, 0)
  43. MovementLoopAddLocation(NPC, 885.31, 0.46, -248.92, 2, 0)
  44. MovementLoopAddLocation(NPC, 878.18, 0.4, -246.42, 2, 0)
  45. MovementLoopAddLocation(NPC, 853.35, 2.55, -243.6, 2, 0)
  46. MovementLoopAddLocation(NPC, 836.17, 3.63, -233.48, 2, 0)
  47. MovementLoopAddLocation(NPC, 823.75, 4.81, -222.52, 2, 0)
  48. MovementLoopAddLocation(NPC, 809.69, 6.31, -215.02, 2, 0)
  49. MovementLoopAddLocation(NPC, 800.42, 6.8, -211.23, 2, 0)
  50. MovementLoopAddLocation(NPC, 800.75, 6.79, -208.59, 2, 0)
  51. MovementLoopAddLocation(NPC, 805.6, 6.35, -203.28, 2, 0)
  52. MovementLoopAddLocation(NPC, 815.78, 5.56, -201.2, 2, 0)
  53. MovementLoopAddLocation(NPC, 824.21, 4.74, -196.03, 2, 0)
  54. MovementLoopAddLocation(NPC, 838.82, 3.86, -190.05, 2, 0)
  55. MovementLoopAddLocation(NPC, 869.75, 1.1, -188.59, 2, 0)
  56. MovementLoopAddLocation(NPC, 879.61, 0.34, -193.23, 2, 0)
  57. MovementLoopAddLocation(NPC, 887.57, 1.83, -195.04, 2, 0)
  58. MovementLoopAddLocation(NPC, 891.44, 2.72, -201.43, 2, 0)
  59. MovementLoopAddLocation(NPC, 893.45, 3.14, -208.62, 2, 0)
  60. MovementLoopAddLocation(NPC, 896.7, 3.12, -222.29, 2, 0)
  61. MovementLoopAddLocation(NPC, 894.83, 2.26, -232.35, 2, 0)
  62. MovementLoopAddLocation(NPC, 884.88, 0.44, -244.62, 2, 0)
  63. MovementLoopAddLocation(NPC, 854.38, 2.44, -243.8, 2, 0)
  64. MovementLoopAddLocation(NPC, 837.41, 3.61, -234.36, 2, 0)
  65. MovementLoopAddLocation(NPC, 820.34, 4.86, -219.51, 2, 0)
  66. MovementLoopAddLocation(NPC, 816.51, 5.77, -209.01, 2, 0)
  67. MovementLoopAddLocation(NPC, 819.21, 5.53, -205.14, 2, 0)
  68. MovementLoopAddLocation(NPC, 833.2, 6.9, -207.49, 2, 0)
  69. MovementLoopAddLocation(NPC, 849.66, 9.17, -222.43, 2, 0)
  70. MovementLoopAddLocation(NPC, 863.15, 10.58, -224.16, 2, 0)
  71. MovementLoopAddLocation(NPC, 867.01, 11.31, -229.02, 2, 0)
  72. MovementLoopAddLocation(NPC, 866.54, 11.46, -267.21, 2, 0)
  73. MovementLoopAddLocation(NPC, 859.15, 12.45, -278.84, 2, 0)
  74. MovementLoopAddLocation(NPC, 850.93, 13.52, -289.11, 2, 0)
  75. MovementLoopAddLocation(NPC, 848.52, 13.27, -300.62, 2, 0, "Action")
  76. MovementLoopAddLocation(NPC, 848.52, 13.27, -300.62, 2, 0)
  77. elseif GetSpawnLocationID(NPC)==133779142 then
  78. MovementLoopAddLocation(NPC, 848.52, 13.27, -300.62, 2, 0)
  79. MovementLoopAddLocation(NPC, 848.52, 13.27, -300.62, 2, 0)
  80. MovementLoopAddLocation(NPC, 850.93, 13.52, -289.11, 2, 0)
  81. MovementLoopAddLocation(NPC, 859.15, 12.45, -278.84, 2, 0)
  82. MovementLoopAddLocation(NPC, 866.54, 11.46, -267.21, 2, 0)
  83. MovementLoopAddLocation(NPC, 867.01, 11.31, -229.02, 2, 0)
  84. MovementLoopAddLocation(NPC, 863.15, 10.58, -224.16, 2, 0)
  85. MovementLoopAddLocation(NPC, 849.66, 9.17, -222.43, 2, 0)
  86. MovementLoopAddLocation(NPC, 833.2, 6.9, -207.49, 2, 0)
  87. MovementLoopAddLocation(NPC, 819.21, 5.53, -205.14, 2, 0)
  88. MovementLoopAddLocation(NPC, 816.51, 5.77, -209.01, 2, 0)
  89. MovementLoopAddLocation(NPC, 820.34, 4.86, -219.51, 2, 0)
  90. MovementLoopAddLocation(NPC, 837.41, 3.61, -234.36, 2, 0)
  91. MovementLoopAddLocation(NPC, 854.38, 2.44, -243.8, 2, 0)
  92. MovementLoopAddLocation(NPC, 884.88, 0.44, -244.62, 2, 0)
  93. MovementLoopAddLocation(NPC, 894.83, 2.26, -232.35, 2, 0)
  94. MovementLoopAddLocation(NPC, 896.7, 3.12, -222.29, 2, 0)
  95. MovementLoopAddLocation(NPC, 893.45, 3.14, -208.62, 2, 0)
  96. MovementLoopAddLocation(NPC, 891.44, 2.72, -201.43, 2, 0)
  97. MovementLoopAddLocation(NPC, 887.57, 1.83, -195.04, 2, 0)
  98. MovementLoopAddLocation(NPC, 879.61, 0.34, -193.23, 2, 0)
  99. MovementLoopAddLocation(NPC, 869.75, 1.1, -188.59, 2, 0)
  100. MovementLoopAddLocation(NPC, 838.82, 3.86, -190.05, 2, 0)
  101. MovementLoopAddLocation(NPC, 824.21, 4.74, -196.03, 2, 0)
  102. MovementLoopAddLocation(NPC, 815.78, 5.56, -201.2, 2, 0)
  103. MovementLoopAddLocation(NPC, 805.6, 6.35, -203.28, 2, 0)
  104. MovementLoopAddLocation(NPC, 800.75, 6.79, -208.59, 2, 0)
  105. MovementLoopAddLocation(NPC, 800.42, 6.8, -211.23, 2, 0)
  106. MovementLoopAddLocation(NPC, 809.69, 6.31, -215.02, 2, 0)
  107. MovementLoopAddLocation(NPC, 823.75, 4.81, -222.52, 2, 0)
  108. MovementLoopAddLocation(NPC, 836.17, 3.63, -233.48, 2, 0)
  109. MovementLoopAddLocation(NPC, 853.35, 2.55, -243.6, 2, 0)
  110. MovementLoopAddLocation(NPC, 878.18, 0.4, -246.42, 2, 0)
  111. MovementLoopAddLocation(NPC, 885.31, 0.46, -248.92, 2, 0)
  112. MovementLoopAddLocation(NPC, 897.62, 1.7, -271.53, 2, 0)
  113. MovementLoopAddLocation(NPC, 899.67, 2.2, -283.03, 2, 0)
  114. MovementLoopAddLocation(NPC, 908.64, 2.25, -301.7, 2, 0)
  115. MovementLoopAddLocation(NPC, 911.41, 2.24, -307.34, 2, 0)
  116. MovementLoopAddLocation(NPC, 909.24, 2.32, -310.58, 2, 0)
  117. MovementLoopAddLocation(NPC, 903.15, 2.2, -312.93, 2, 0)
  118. MovementLoopAddLocation(NPC, 882.57, 1.76, -330.63, 2, 0)
  119. MovementLoopAddLocation(NPC, 877.71, 1.89, -333.18, 2, 0)
  120. MovementLoopAddLocation(NPC, 854.74, 3.04, -324.44, 2, 0)
  121. MovementLoopAddLocation(NPC, 843.99, 4.49, -318.56, 2, 0)
  122. MovementLoopAddLocation(NPC, 835.56, 5.46, -307.47, 2, 0)
  123. MovementLoopAddLocation(NPC, 828.64, 6.88, -295.1, 2, 0)
  124. MovementLoopAddLocation(NPC, 823.56, 6.42, -283.64, 2, 0)
  125. MovementLoopAddLocation(NPC, 816.87, 7.87, -277.15, 2, 0)
  126. MovementLoopAddLocation(NPC, 804.37, 11.68, -267.99, 2, 0)
  127. MovementLoopAddLocation(NPC, 786.09, 13.35, -255.78, 2, 0)
  128. MovementLoopAddLocation(NPC, 771.48, 13.35, -248.88, 2, 0)
  129. MovementLoopAddLocation(NPC, 755.83, 13.38, -231.36, 2, 0)
  130. MovementLoopAddLocation(NPC, 749.41, 13.78, -231.54, 2, 0,"Action")
  131. MovementLoopAddLocation(NPC, 749.41, 13.78, -231.54, 2, 0)
  132. end
  133. end
  134. function Action(NPC)
  135. Despawn(NPC)
  136. end