9
3

PrideMistress.lua 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/PrideMistress.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2024.02.11 03:02:48
  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, 757.48, -59.71, -34.43, 2, 0)
  23. MovementLoopAddLocation(NPC, 710.13, -59.96, 21.93, 2, 0)
  24. MovementLoopAddLocation(NPC, 686.98, -59.8, 22.15, 2, 0)
  25. MovementLoopAddLocation(NPC, 639.48, -59.8, -3.96, 2, 0)
  26. MovementLoopAddLocation(NPC, 633.63, -59.8, -17.26, 2, 0)
  27. MovementLoopAddLocation(NPC, 638.71, -59.8, -27.25, 2, 0)
  28. MovementLoopAddLocation(NPC, 681.22, -59.8, -27.35, 2, 0)
  29. MovementLoopAddLocation(NPC, 703.23, -59.8, -33.28, 2, 0)
  30. MovementLoopAddLocation(NPC, 745.87, -59.8, -59.43, 2, 0)
  31. MovementLoopAddLocation(NPC, 761.52, -58.83, -58.62, 2, 0)
  32. MovementLoopAddLocation(NPC, 766.92, -58.69, -48.79, 2, 0)
  33. end