9
3

TellurianRecruit_App1.lua 663 B

12345678910111213141516171819202122232425262728293031
  1. --[[
  2. Script Name : Spells/Summoner/TellurianRecruit_App1.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.11.12 09:11:37
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, PetID)
  9. -- Summons a pet
  10. SummonPet(Caster, PetID)
  11. -- Basic fomula for hp/power
  12. pet = GetPet(Caster)
  13. local Level = GetLevel(pet)
  14. local power = Level *10 + Level*2
  15. local hp = Level*10 + Level*2
  16. SpawnSet(pet, "hp", hp)
  17. SpawnSet(pet, "power", power)
  18. end
  19. function remove(Caster, Target)
  20. pet = GetPet(Caster)
  21. if pet ~= nil then
  22. DismissPet(pet)
  23. end
  24. end
  25. --]]