mirror of
https://github.com/emagi/eq2emu-content
synced 2026-08-12 20:23:03 -04:00
33 lines
No EOL
920 B
Lua
Executable file
33 lines
No EOL
920 B
Lua
Executable file
--[[
|
|
Script Name : Spells/Commoner/DivineNobility.lua
|
|
Script Author : neatz09
|
|
Script Date : 2020.04.09 06:04:00
|
|
Script Purpose :
|
|
:
|
|
--]]
|
|
|
|
-- Heals caster for x - y instantly based on Clevel.
|
|
|
|
function cast(Caster, Target, HealMin, HealMax, TickMin, TickMax)
|
|
local Val1 = (GetLevel(Caster) * 1.08) * HealMin
|
|
local Val2 = (GetLevel(Caster) * 1.08) * HealMax
|
|
local Val3 = (GetLevel(Caster) * 1.08) * TickMin
|
|
local Val4 = (GetLevel(Caster) * 1.08) * TickMax
|
|
local HealAmt = randomFloat(Val1, Val2)
|
|
local TickAmt = randomFloat2(Val3, Val4)
|
|
|
|
SpellHeal("Heal", HealAmt)
|
|
end
|
|
|
|
|
|
function tick(Caster, Target, MinVal, MaxVal, TickMin, TickMax)
|
|
SpellHeal("Heal", TickAmt)
|
|
end
|
|
|
|
function randomFloat(Val1, Val2)
|
|
return Val1 + math.random() * (Val2 - Val1);
|
|
end
|
|
|
|
function randomFloat2(Val3, Val4)
|
|
return Val3 + math.random() * (Val4 - Val3);
|
|
end |