I would like to know how do I make a creature lose HP when it takes damage, I've tried something with onStatsChange but it didn't works .
in addition the client send this error every time i attack the creature :blink:
I use the TFS 0.3.6, any ideas will be welcome
Thx guys ^_^
Code:
function onStatsChange(cid, attacker, type, combat, value)
if type == STATSCHANGE_HEALTHLOSS then
doCreatureAddHealth(cid, -50)
return FALSE
end
return TRUE
end
in addition the client send this error every time i attack the creature :blink:
I use the TFS 0.3.6, any ideas will be welcome
Thx guys ^_^
Last edited: