function onUse(cid, item, frompos, item2, topos)
if item.uid == 8558 then < uid skrzyni
queststatus = getPlayerStorageValue(cid,1996)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You need to do mission.")
doPlayerLearnSpell(cid, 'Nazwa spella (np: kamehameha')
setPlayerStorageValue(cid,8555,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
elseif item.uid == 8559 then < uid skrzyni
queststatus = getPlayerStorageValue(cid,8556)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You need to do mission.")
doPlayerLearnSpell(cid, 'Nazwa spella')
setPlayerStorageValue(cid,1996,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
else