eduardbean
Member
- Joined
- Nov 26, 2010
- Messages
- 129
- Solutions
- 2
- Reaction score
- 16
Code:
function onChangeHealth(cid, attacker, damage)
Creature(cid):addHealth(-damage)
if ( Creature(cid):getMaster() ) then
local sid = Player(Creature(cid):getMaster())
sid.sendExtendedOpcode(sid, 26, Creature(cid):getHealth() )
end
end
I make this for send health of summon to otclient, but now when i healh my summon, they lose health, how i can use this funcition with this "bug" ?