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![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
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:
![erroam.jpg](/proxy.php?image=http%3A%2F%2Fimg703.imageshack.us%2Fimg703%2F6319%2Ferroam.jpg&hash=e289914e190c7db5eaca5b1173d62099)
I use the TFS 0.3.6, any ideas will be welcome
Thx guys ^_^
Last edited: