function onUse(cid, item, fromPosition, itemEx, toPosition)
if [B]item.uid == 9999[/B] then
if(isInArray({[B]getPlayerStorageValue(cid, xxxx)[/B], -1) == TRUE) then
doPlayerSendTextMessage(cid, 22, "The door seems to be sealed against unwanted intruders.")
else
doPlayerSendTextMessage(cid, 22, "You've absorbed enough energy! You may pass.")
doTransformItem(item.uid, item.itemid + 1)
doTeleportThing(cid, toPosition, TRUE)
end
return TRUE
end
return FALSE
end