AdvisorPandrus.lua 794 B

1234567891011121314151617181920212223242526272829
  1. --[[
  2. Script Name : SpawnScripts/Antonica/AdvisorPandrus.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2023.02.02 09:02:30
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/NPCModule"
  9. function spawn(NPC, Spawn)
  10. dmgMod = GetStr(NPC)/10
  11. Named(NPC)
  12. SetInfoStructUInt(NPC, "override_primary_weapon", 1)
  13. SetInfoStructUInt(NPC, "primary_weapon_damage_low", math.floor(65 + dmgMod))
  14. SetInfoStructUInt(NPC, "primary_weapon_damage_high", math.floor(105 + dmgMod))
  15. AddTimer(NPC, 6000, "waypoints")
  16. end
  17. function waypoints(NPC, Spawn)
  18. RandomMovement(NPC, Spawn, 35, -35, 2, 8, 15)
  19. end
  20. function respawn(NPC, Spawn)
  21. spawn(NPC)
  22. end
  23. function hailed(NPC, Spawn)
  24. FaceTarget(NPC, Spawn)
  25. end