Hello. I would like to ask if someone could create me easy script. After killing monster new storageid appears with value = 1. Would be nice if there could be 3 monsters in script so I could change storages and monster names. Thanks.
function onKill(cid, target)
local monsters = {
["rat"] = {storage = 5000, value = 1},
["rotworm"] = {storage = 6000, value = 1}
}
for i,v in pairs(monsters) do
if getCreatureName(target) == i then
doPlayerSetStorageValue(cid, v.storage,v.value)
end
return true
end
end