AmbassadorJalanderra.lua 699 B

12345678910111213141516171819202122232425
  1. --[[
  2. Script Name : SpawnScripts/Oakmyst_Classic/AmbassadorJalanderra.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.10.22 01:10:43
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/MonsterCallouts/BaseFairy1.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", math.floor(5 + dmgMod))
  15. SetInfoStructUInt(NPC, "primary_weapon_damage_high", math.floor(15 + dmgMod))
  16. end
  17. function hailed(NPC, Spawn)
  18. end
  19. function respawn(NPC)
  20. spawn(NPC)
  21. end