I did this quickly, I'm not that much experienced in LUA and would need some help/feedback...
function onStepIn(cid, item, frompos, item2, topos)
local storage = 27234
if getPlayerStorageValue(cid,storage)
setPlayerStorageValue(cid, storage, ???)
end
end...