function onUse(cid, item, item2, fromPos, toPos)
if item.uid == 1444 then
queststatus = getPlayerStorageValue(cid,123412)
if queststatus ~= 1 then
doPlayerSendTextMessage(cid,22,"You have found a bag.")
local bag = doPlayerAddItem(cid,1987,1)
local pos = {x=xxx, y=yyy, z=z}
doAddContainerItem(bag,2160,2)
doAddContainerItem(bag,2160,30)
doTeleportThing(cid,pos)
setPlayerStorageValue(cid,123412,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
end
end
<action uniqueid="1444" script="quest.lua" />