Set UID to the Chest for example 12345
function onUse(cid, item, frompos, item2, topos)
if item.uid == 12345 then ----------Any UID here
if getPlayerStorageValue(cid,12345) == -1 then ----------Same UID here
doPlayerSendTextMessage(cid,25,"You have found a Dragon Scale Legs.")...