9
3

CommanderDuNar.lua 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/CommanderDuNar.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2024.01.21 02:01:16
  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, 111.31, -45.4, 450.07, 2, 0)
  26. MovementLoopAddLocation(NPC, 81.76, -47.81, 495.65, 2, 0)
  27. MovementLoopAddLocation(NPC, 72.24, -47.86, 521.09, 2, 0)
  28. MovementLoopAddLocation(NPC, 78.77, -48.04, 544.38, 2, 0)
  29. MovementLoopAddLocation(NPC, 94.71, -48.04, 558.21, 2, 0)
  30. MovementLoopAddLocation(NPC, 111.58, -47.98, 560.72, 2, 0)
  31. MovementLoopAddLocation(NPC, 137.03, -47.7, 558.12, 2, 0)
  32. MovementLoopAddLocation(NPC, 153.87, -47.45, 552.18, 2, 0)
  33. MovementLoopAddLocation(NPC, 164.19, -46.76, 547.51, 2, 0)
  34. MovementLoopAddLocation(NPC, 179.35, -46.41, 532.42, 2, 0)
  35. MovementLoopAddLocation(NPC, 191.44, -47.68, 510.36, 2, 0)
  36. MovementLoopAddLocation(NPC, 194.62, -48.03, 483.67, 2, 0)
  37. MovementLoopAddLocation(NPC, 194.15, -48.04, 455.38, 2, 0)
  38. MovementLoopAddLocation(NPC, 181.07, -47.63, 440.23, 2, 0)
  39. MovementLoopAddLocation(NPC, 171.37, -46.5, 435.33, 2, 0)
  40. MovementLoopAddLocation(NPC, 146.95, -43.45, 433.92, 2, 0)
  41. MovementLoopAddLocation(NPC, 129.66, -42.68, 434, 2, 0)
  42. MovementLoopAddLocation(NPC, 119.72, -43.55, 438.55, 2, 0)
  43. end