local required, used, level = 1234, 5678, 60
function onUse(cid, item, fromPosition, itemEx, toPosition)
return TRUE, getPlayerStorageValue(cid, used) > 0 and doPlayerSendTextMessage(cid, 27, "You can use this only once.") or getPlayerStorageValue(cid, required) > 0 and getPlayerLevel(cid) >= level and getPlayerStorageValue(cid, used) < 1 and setPlayerStorageValue(cid, used, 1) and doPlayerSendTextMessage(cid, 24 , "You are able to open door now.") and doSendMagicEffect(getPlayerPosition(cid),14)
end