mirror of
https://github.com/emagi/eq2emu-content
synced 2026-08-12 20:23:03 -04:00
33 lines
No EOL
958 B
Lua
Executable file
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 |