Like that??
local storages = {12345, 12346, 12347, 12348}
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition)
if(not isPlayer(cid)) then
return true
end
local x = 0
for i = 1, #storages do
if getPlayerStorageValue(cid, storages[i]) < 0 then
x = x + 1...