9
3

Greybeard.lua 915 B

1234567891011121314151617181920212223242526272829303132
  1. --[[
  2. Script Name : SpawnScripts/IsleRefuge1/Greybeard.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.09.13 04:09:04
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/MonsterCallouts/BaseSkeleton2.lua")
  9. require "SpawnScripts/Generic/NPCModule"
  10. function spawn(NPC)
  11. local dmgMod = GetStr(NPC)/10
  12. Named(NPC)
  13. SetInfoStructUInt(NPC, "override_primary_weapon", 1)
  14. SetInfoStructUInt(NPC, "primary_weapon_damage_low", 5 + dmgMod)
  15. SetInfoStructUInt(NPC, "primary_weapon_damage_high", 11 + dmgMod)
  16. SetInfoStructUInt(NPC, "hp_regen_override", 1)
  17. SetInfoStructSInt(NPC, "hp_regen", 0)
  18. SetInfoStructUInt(NPC, "pw_regen_override", 1)
  19. SetInfoStructSInt(NPC, "pw_regen", 0)
  20. SetSpawnAnimation(NPC, 13016)
  21. end
  22. function hailed(NPC, Spawn)
  23. FaceTarget(NPC, Spawn)
  24. end
  25. function respawn(NPC)
  26. spawn(NPC)
  27. end