function onUse(cid, item, frompos, item2, topos)
local bag = doPlayerAddItem(cid, 1988, 1)
if item.itemid == 1945 and doPlayerRemoveMoney(cid,4000) == 1 then
doAddContainerItem(bag, 2789, 100)
doAddContainerItem(bag, 2152, 10)
doTransformItem(item.uid,item.itemid+1)
elseif item.itemid == 1946 and doPlayerRemoveMoney(cid,4000) == 1 then
doAddContainerItem(bag, 2789, 100)
doAddContainerItem(bag, 2152, 10)
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendCancel(cid,"Nie masz kasy baranie!")
end
return 1
end