Trying to do a buff here with: SetMaxHP(Target, GetMaxHP(Target) + 50)
But it's not updating straight away so i'm having fun trying to figure out if it's working or not. Is there a way of having this operate similar to how mana updates when casting, giving an immediate update on the character profile sheet?
Here's my entire script incase you notice anything (it has quite a long duration etc in the db as you'd expect for a buff)
Code: Select all
--[[
This is the EQ2Emu generic spell damage script written in LUA.
These functions are shared, so don't save any character data in them.
If you have any questions be sure to read the readme.txt file located in this directory
--]]
--main process function
function cast(Caster, Target, DamageType, Damage)
SetMaxHP(Target, GetMaxHP(Target) + 50)
end
function tick(Caster, Target, DDType, MinDDVal, MaxDDVal, EffectType, MinEffectVal, MaxEffectVal)
end
function remove(Caster, Target)
SetMaxHP(Target, GetMaxHP(Target) - 50)
end