Got a problem with AddTimer, doesn't seem to trigger for me - the cast is fine but Curse() doesn't
Don't see any messages with luadebug start on
Can anyone help?
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)
SendPopUpMessage(Caster, "Your target is hit by Taliesins Curse")
AddTimer(Target, 6000, "Curse", 5, Caster)
end
function remove(Caster, Target)
end
function Curse(NPC, Player)
ModifyHP(NPC, -30)
AddHate(Player, NPC, 5)
SendPopUpMessage(Player,"Your Taliesins Curse hit for 30 points of damage!")
end