function onDeath(creature, corpse, lasthitkiller, mostdamagekiller, lasthitunjustified, mostdamageunjustified)
if lasthitkiller and lasthitkiller:isPlayer() and creature:getLevel() >= 200 then
creature:setStorageValue(167913, math.max(0, creature:getStorageValue(167913)) + 1)
end...