aBloodsaberCenterPatrol.lua 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. --[[
  2. Script Name : SpawnScripts/DownBelow_Classic/aBloodsaberCenterPatrol.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.11.11 02:11:18
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/MonsterCallouts/BloodSabers.lua")
  9. require "SpawnScripts/Generic/NPCModule"
  10. function spawn(NPC, Spawn)
  11. --if not HasLanguage(Spawn,26) then
  12. --Garbled(NPC,Spawn)
  13. --end
  14. if GetSpawnID(NPC) == 8340015 then
  15. dmgMod = GetStr(NPC)/10
  16. SetInfoStructUInt(NPC, "override_primary_weapon", 1)
  17. SetInfoStructUInt(NPC, "primary_weapon_damage_low", math.floor(12 + dmgMod))
  18. SetInfoStructUInt(NPC, "primary_weapon_damage_high", math.floor(24 + dmgMod))
  19. else
  20. NPCModule(NPC, Spawn)
  21. ratonga(NPC)
  22. end
  23. SetSeeHide(NPC,1)
  24. SetSeeInvis(NPC,1)
  25. waypoints(NPC)
  26. end
  27. function hailed(NPC, Spawn)
  28. FaceTarget(NPC, Spawn)
  29. end
  30. function respawn(NPC)
  31. spawn(NPC)
  32. end
  33. function waypoints(NPC)
  34. MovementLoopAddLocation(NPC, 6.82, -4, -160.27, 2, 5)
  35. MovementLoopAddLocation(NPC, 6.8, -3.95, -154.26, 2, 0)
  36. MovementLoopAddLocation(NPC, 7.5, -2.48, -151.34, 2, 0)
  37. MovementLoopAddLocation(NPC, 6.67, -1.12, -148.5, 2, 0)
  38. MovementLoopAddLocation(NPC, 6.78, -0.02, -146.19, 2, 0)
  39. MovementLoopAddLocation(NPC, 6.87, 0.11, -143.39, 2, math.random(5,10))
  40. MovementLoopAddLocation(NPC, 6.87, 0.11, -143.39, 2, 0)
  41. MovementLoopAddLocation(NPC, 7.06, 0, -146.06, 2, 0)
  42. MovementLoopAddLocation(NPC, 7.43, -1.74, -149.85, 2, 0)
  43. MovementLoopAddLocation(NPC, 6.75, -3.9, -154.11, 2, 0)
  44. MovementLoopAddLocation(NPC, 6.82, -4, -160.27, 2, 2)
  45. end