function onUse(cid, item, fromPosition, itemEx, toPosition) if getPlayerLevel(cid) < 50 then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You must be at least level 50 to take the reward.") return true end if getCreatureStorage(cid, 2014) == EMPTY_STORAGE then doCreatureSetStorage(cid, 2014, 1) doPlayerAddItem(cid, 2160, 15) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have found the money.") else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is empty.") end return true end