acho que isso aqui vai ajudar:
-- by BobZero
--A action id do piso deve ter o mesmo valor da storage que vc quer que o player tenha feito.
function onStepIn(cid, item, position, fromPosition)
if item.uid > 0 and isPlayer(cid) == TRUE then
if item.actionid > 0 then
storage = getPlayerStorageValue(cid,item.actionid)
if storage == -1 then
doTeleportThing(cid, fromPosition, FALSE)
doCreatureSay(cid, "Você não consegue passar.", TALKTYPE_ORANGE_1)
end
else
return FALSE
end
end
return TRUE
end
coloque a actionid no piso com o valor da storage que vc quer
depois adicione uma linha no moveevents.xml assim:
<movevent event="StepIn" actionid="17507" script="storagetiles.lua"/>
lembre-se de colocar o actionid certo aqui