I did this quickly, I'm not that much experienced in LUA and would need some help/feedback...
What should be in ???
also, after they get this storage, I want them able to go through a magic door, should I add storage in actionid in the door then?
Lua:
function onStepIn(cid, item, frompos, item2, topos)
local storage = 27234
if getPlayerStorageValue(cid,storage)
setPlayerStorageValue(cid, storage, [B]???[/B])
end
end
What should be in ???
also, after they get this storage, I want them able to go through a magic door, should I add storage in actionid in the door then?