9
3

LieutenantGurg.lua 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. --[[
  2. Script Name : SpawnScripts/TheRuins_Classic/LieutenantGurg.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2024.01.01 10:01:05
  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(18 + dmgMod))
  12. SetInfoStructUInt(NPC, "primary_weapon_damage_high", math.floor(32 + 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 death(NPC, Spawn)
  22. AddTimer(NPC, 6000, "Koduhl")
  23. end
  24. function Koduhl(NPC, Spawn)
  25. local zone = GetZone(NPC)
  26. local Koduhl = SpawnByLocationID(zone, 133789172)
  27. end
  28. function waypoints(NPC)
  29. MovementLoopAddLocation(NPC, 9.51, -4.24, 162.1, 2, 0)
  30. MovementLoopAddLocation(NPC, -1.32, -4.24, 161.85, 2, 0)
  31. MovementLoopAddLocation(NPC, -11.35, -4.24, 161.61, 2, 0)
  32. MovementLoopAddLocation(NPC, -19.89, -4.24, 159.03, 2, 0)
  33. MovementLoopAddLocation(NPC, -21.75, -4.24, 156.69, 2, 0)
  34. MovementLoopAddLocation(NPC, -23.38, -4.32, 148.91, 2, 0)
  35. MovementLoopAddLocation(NPC, -22.05, -4.34, 145.02, 2, 0)
  36. MovementLoopAddLocation(NPC, -24.85, -4.28, 141.44, 2, 0)
  37. MovementLoopAddLocation(NPC, -28.17, -4.28, 139.93, 2, 0)
  38. MovementLoopAddLocation(NPC, -35.27, -4.31, 132.41, 2, 0)
  39. MovementLoopAddLocation(NPC, -50.01, -2.94, 116.58, 2, 0)
  40. MovementLoopAddLocation(NPC, -59.29, -2.75, 108.84, 2, 0)
  41. MovementLoopAddLocation(NPC, -54.06, -2.82, 111.77, 2, 0)
  42. MovementLoopAddLocation(NPC, -49.66, -2.96, 117.91, 2, 0)
  43. MovementLoopAddLocation(NPC, -32.06, -4.28, 136.37, 2, 0)
  44. MovementLoopAddLocation(NPC, -24.68, -4.28, 140.58, 2, 0)
  45. MovementLoopAddLocation(NPC, -23.13, -4.31, 144.69, 2, 0)
  46. MovementLoopAddLocation(NPC, -22.38, -4.24, 155.98, 2, 0)
  47. MovementLoopAddLocation(NPC, -19.28, -4.25, 159.72, 2, 0)
  48. MovementLoopAddLocation(NPC, -12.03, -4.24, 161.17, 2, 0)
  49. end