eq2emu-content/Spells/Commoner/ValiantBeast.lua
2024-10-26 11:37:28 +00:00

33 lines
No EOL
958 B
Lua
Executable file

--[[
Script Name : Spells/Commoner/ValiantBeast.lua
Script Author : neatz09
Script Date : 2020.11.26 03:11:01
Script Purpose :
:
--]]
-- Increases STA of caster by 2.5
-- Increases STR of caster by 2.5
-- Increases INT of caster by 2.5
-- Increases AGI of caster by 2.5
-- Increases WIS of caster by 2.5
-- Summons a pet Valiant Beast
-- If follows Mithaniel Marr
function cast(Caster, Target, PetID, Stats)
Adjusted = GetLevel(Caster) / Stats
SummonDeityPet(Caster, PetID, Stats)
Say(Caster, "deity checks needed and formula need to be fine tuned")
AddSpellBonus(Target, 0, Adjusted)
AddSpellBonus(Target, 1, Adjusted)
AddSpellBonus(Target, 2, Adjusted)
AddSpellBonus(Target, 3, Adjusted)
AddSpellBonus(Target, 4, Adjusted)
end
function remove(Caster, Target)
pet = GetDeityPet(Caster)
if pet ~= nil then
DismissPet(pet)
end
RemoveSpellBonus(Target)
end