@496815 I took your code, changed a bit to this:
function onStatsChange(cid, attacker, type, combat, value)
if isPlayer(attacker) and isMonster(cid) and type == STATSCHANGE_HEALTHLOSS then
print("x")
if getPlayerStorageValue(attacker, 15600) == 1 then
print("y")...