try this :)
function onUse(cid, item, fromPosition, itemEx, toPosition)
local items = {
item_1 = {{2520,1}, {6140}, {100}}, -- Manaruneitemid, count, storage, level
item_2 = {{2466,1}, {6141} {200}}
}
if(getPlayerStorageValue(cid, items.item_1[2]) < 0) then
if(getPlayerLevel(cid)...