CommanderGrikSna.lua 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/CommanderGrikSna.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2024.01.20 06:01:18
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/NPCModule"
  9. function spawn(NPC, Spawn)
  10. dmgMod = GetStr(NPC)/10
  11. SetInfoStructUInt(NPC, "override_primary_weapon", 1)
  12. SetInfoStructUInt(NPC, "primary_weapon_damage_low", math.floor(55 + dmgMod))
  13. SetInfoStructUInt(NPC, "primary_weapon_damage_high", math.floor(95 + dmgMod))
  14. Bloodskull(NPC)
  15. OrcChainCommon(NPC)
  16. AddTimer(NPC, 6000, "waypoints")
  17. end
  18. function hailed(NPC, Spawn)
  19. FaceTarget(NPC, Spawn)
  20. end
  21. function respawn(NPC)
  22. spawn(NPC)
  23. end
  24. function waypoints(NPC)
  25. MovementLoopAddLocation(NPC, -573.57, -48.04, 547.36, 2, 0)
  26. MovementLoopAddLocation(NPC, -577, -48.04, 531.3, 2, 0)
  27. MovementLoopAddLocation(NPC, -568.51, -48.04, 516.51, 2, 0)
  28. MovementLoopAddLocation(NPC, -552.95, -47.6, 510.75, 2, 0)
  29. MovementLoopAddLocation(NPC, -538.6, -45.15, 507.25, 2, 0)
  30. MovementLoopAddLocation(NPC, -518.92, -47.09, 515.89, 2, 0)
  31. MovementLoopAddLocation(NPC, -508.98, -47.97, 530.34, 2, 0)
  32. MovementLoopAddLocation(NPC, -503.32, -48.04, 553.19, 2, 0)
  33. MovementLoopAddLocation(NPC, -507.41, -48.04, 579.35, 2, 0)
  34. MovementLoopAddLocation(NPC, -525.15, -47.82, 598.88, 2, 0)
  35. MovementLoopAddLocation(NPC, -545.14, -47.43, 605.57, 2, 0)
  36. MovementLoopAddLocation(NPC, -555.79, -47.86, 605.41, 2, 0)
  37. MovementLoopAddLocation(NPC, -561.06, -48.56, 595.49, 2, 0)
  38. MovementLoopAddLocation(NPC, -566.65, -48.3, 574.07, 2, 0)
  39. end