9
3

KoduhlBrokentusk.lua 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. --[[
  2. Script Name : SpawnScripts/TheRuins_Classic/KoduhlBrokentusk.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2024.01.01 10:01:53
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. dmgMod = GetStr(NPC)/10
  10. SetInfoStructUInt(NPC, "override_primary_weapon", 1)
  11. SetInfoStructUInt(NPC, "primary_weapon_damage_low", math.floor(30 + dmgMod))
  12. SetInfoStructUInt(NPC, "primary_weapon_damage_high", math.floor(60 + dmgMod))
  13. AddTimer(NPC, 6000, "waypoints")
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. end
  18. function respawn(NPC)
  19. spawn(NPC)
  20. end
  21. function waypoints(NPC)
  22. MovementLoopAddLocation(NPC, 9.51, -4.24, 162.1, 2, 0)
  23. MovementLoopAddLocation(NPC, -1.32, -4.24, 161.85, 2, 0)
  24. MovementLoopAddLocation(NPC, -11.35, -4.24, 161.61, 2, 0)
  25. MovementLoopAddLocation(NPC, -19.89, -4.24, 159.03, 2, 0)
  26. MovementLoopAddLocation(NPC, -21.75, -4.24, 156.69, 2, 0)
  27. MovementLoopAddLocation(NPC, -23.38, -4.32, 148.91, 2, 0)
  28. MovementLoopAddLocation(NPC, -22.05, -4.34, 145.02, 2, 0)
  29. MovementLoopAddLocation(NPC, -24.85, -4.28, 141.44, 2, 0)
  30. MovementLoopAddLocation(NPC, -28.17, -4.28, 139.93, 2, 0)
  31. MovementLoopAddLocation(NPC, -35.27, -4.31, 132.41, 2, 0)
  32. MovementLoopAddLocation(NPC, -50.01, -2.94, 116.58, 2, 0)
  33. MovementLoopAddLocation(NPC, -59.29, -2.75, 108.84, 2, 0)
  34. MovementLoopAddLocation(NPC, -54.06, -2.82, 111.77, 2, 0)
  35. MovementLoopAddLocation(NPC, -49.66, -2.96, 117.91, 2, 0)
  36. MovementLoopAddLocation(NPC, -32.06, -4.28, 136.37, 2, 0)
  37. MovementLoopAddLocation(NPC, -24.68, -4.28, 140.58, 2, 0)
  38. MovementLoopAddLocation(NPC, -23.13, -4.31, 144.69, 2, 0)
  39. MovementLoopAddLocation(NPC, -22.38, -4.24, 155.98, 2, 0)
  40. MovementLoopAddLocation(NPC, -19.28, -4.25, 159.72, 2, 0)
  41. MovementLoopAddLocation(NPC, -12.03, -4.24, 161.17, 2, 0)
  42. end