aBloodsaberCenterPatrol.lua 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. Named(NPC)
  17. SetInfoStructUInt(NPC, "override_primary_weapon", 1)
  18. SetInfoStructUInt(NPC, "primary_weapon_damage_low", math.floor(12 + dmgMod))
  19. SetInfoStructUInt(NPC, "primary_weapon_damage_high", math.floor(24 + dmgMod))
  20. else
  21. NPCModule(NPC, Spawn)
  22. ratonga(NPC)
  23. end
  24. SetSeeHide(NPC,1)
  25. SetSeeInvis(NPC,1)
  26. waypoints(NPC)
  27. end
  28. function hailed(NPC, Spawn)
  29. FaceTarget(NPC, Spawn)
  30. end
  31. function respawn(NPC)
  32. spawn(NPC)
  33. end
  34. function waypoints(NPC)
  35. MovementLoopAddLocation(NPC, 6.82, -4, -160.27, 2, 5)
  36. MovementLoopAddLocation(NPC, 6.8, -3.95, -154.26, 2, 0)
  37. MovementLoopAddLocation(NPC, 7.5, -2.48, -151.34, 2, 0)
  38. MovementLoopAddLocation(NPC, 6.67, -1.12, -148.5, 2, 0)
  39. MovementLoopAddLocation(NPC, 6.78, -0.02, -146.19, 2, 0)
  40. MovementLoopAddLocation(NPC, 6.87, 0.11, -143.39, 2, math.random(5,10))
  41. MovementLoopAddLocation(NPC, 6.87, 0.11, -143.39, 2, 0)
  42. MovementLoopAddLocation(NPC, 7.06, 0, -146.06, 2, 0)
  43. MovementLoopAddLocation(NPC, 7.43, -1.74, -149.85, 2, 0)
  44. MovementLoopAddLocation(NPC, 6.75, -3.9, -154.11, 2, 0)
  45. MovementLoopAddLocation(NPC, 6.82, -4, -160.27, 2, 2)
  46. end