function onStepIn(cid, item, pos, fromPos)
if isPlayer(cid) then
local p = not hasCondition(cid, CONDITION_GAMEMASTER, GAMEMASTER_INVISIBLE)
if p then doSendMagicEffect(pos, 10) end
if doPlayerRemoveMoney(cid, 1000000) then
doTeleportThing(cid, {x=1210, y=1152, z=6})
if p then doSendMagicEffect({x=1210, y=1152, z=6}, 10) end
else
doTeleportThing(cid, {x=797, y=1086, z=7})
if p then doSendMagicEffect({x=797, y=1086, z=7}, 10) end
doPlayerSendCancel(cid, 'You don\'t have enough money to enter. You need 100cc!')
end
end
end