TFS version? If 1.2 try:
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
local storage = item.uid
if storage > 65535 then
return false
end
if player:getStorageValue(storage) > 0 then
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'The...