local t = {
storage = 500,
monster = 'Demon'
}
function onKill(cid, target, lastHit)
if getCreatureName(target):lower() == t.monster:lower() and getPlayerStorageValue(cid, t.storage) < 1 then
setPlayerStorageValue(cid, t.storage, 1)
end
return true
end