CaptainOgof.lua 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/CaptainOgof.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2024.01.20 04:01:25
  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, -679.52, -48.04, 449.72, 2, 0)
  26. MovementLoopAddLocation(NPC, -681.9, -48.04, 444.6, 2, 0)
  27. MovementLoopAddLocation(NPC, -681.9, -48.04, 444.6, 2, 0)
  28. MovementLoopAddLocation(NPC, -675.41, -48.04, 432.53, 2, 0)
  29. MovementLoopAddLocation(NPC, -665.04, -47.89, 425.46, 2, 0)
  30. MovementLoopAddLocation(NPC, -655.93, -45.31, 422.47, 2, 0)
  31. MovementLoopAddLocation(NPC, -643.74, -46.09, 420.74, 2, 0)
  32. MovementLoopAddLocation(NPC, -638.71, -46.61, 423.15, 2, 0)
  33. MovementLoopAddLocation(NPC, -630.31, -47.98, 431.82, 2, 0)
  34. MovementLoopAddLocation(NPC, -626.72, -48.04, 445.24, 2, 0)
  35. MovementLoopAddLocation(NPC, -627.69, -48.04, 460.73, 2, 0)
  36. MovementLoopAddLocation(NPC, -631.15, -47.99, 469.53, 2, 0)
  37. MovementLoopAddLocation(NPC, -631, -47.29, 485.93, 2, 0)
  38. MovementLoopAddLocation(NPC, -627.93, -47.1, 501.28, 2, 0)
  39. MovementLoopAddLocation(NPC, -631.59, -46.99, 512.06, 2, 0)
  40. MovementLoopAddLocation(NPC, -644.25, -45.78, 517.3, 2, 0)
  41. MovementLoopAddLocation(NPC, -656.83, -46, 520.49, 2, 0)
  42. MovementLoopAddLocation(NPC, -671.01, -46.75, 521.89, 2, 0)
  43. MovementLoopAddLocation(NPC, -682.8, -45.98, 518.71, 2, 0)
  44. MovementLoopAddLocation(NPC, -694.56, -46.57, 509.81, 2, 0)
  45. MovementLoopAddLocation(NPC, -696.94, -47.24, 494.23, 2, 0)
  46. MovementLoopAddLocation(NPC, -686.37, -48.04, 462.16, 2, 0)
  47. end