Try to use a Lua Code Tag.
function restore(cid)
setPlayerStorageValue(cid, 1025, 1)
end
function onUse(cid, item, frompos, item2, topos)
if getPlayerStorageValue(cid, 1025) < 2 -- storage id to use (dont mess with unless you know what you are doing)
then...