9
3

TellurianScarabV2.lua 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. --[[
  2. Script Name : SpawnScripts/SummonerPets/TellurianScarabV2.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.11.22 01:11:05
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. --Get pet's level
  10. local Level = GetLevel(NPC)
  11. --Set values based on pet spell tier
  12. local BaseStr = 55 -- Base strength for pet before level modification
  13. local Dif = 1 --Pet's difficulty tier
  14. local HPMod = 22.81 -- Pet's hitpoint multipier
  15. local PWMod = 6.875 -- Pet's power multiplier
  16. local Sz = 30 -- Pet's size
  17. --Calculate new stats
  18. local hp = Level * HPMod
  19. local pw = Level * PWMod
  20. local newStr = BaseStr + Level
  21. --Set stats
  22. SpawnSet(NPC, "difficulty", difficulty)
  23. SpawnSet(NPC, "hp", hp)
  24. SpawnSet(NPC, "power", pw)
  25. SpawnSet(NPC, "size", Sz)
  26. SetInfoStructFloat(pet, "str", newStr)
  27. SetStrBase(pet, newStr)
  28. end
  29. function hailed(NPC, Spawn)
  30. FaceTarget(NPC, Spawn)
  31. end
  32. function respawn(NPC)
  33. spawn(NPC)
  34. end