local gatePos =
{
x = 673,
y = 928,
z = 7,
stackpos = 1
}
local getGate = getThingfromPos(gatepos)
function onStepIn(cid, item, frompos, item2, topos)
if ((getPlayerStorageValue(cid, 20001) == TRUE) and (getGate.itemid == FALSE)) then
doRemoveItem(getGate.uid)
doCreateItem(2717, 1, gatePos)
end
return TRUE
end