function onWalkIn(cid, item, frompos)
queststatus = getPlayerStorageValue(cid,1419)
if queststatus == -1 then
pos = getPlayerPosition(cid)
pos2 = {x=1401, y=1042, z=5} -- Posição da dimensão
doTeleportThing(cid, pos2)
doPlayerSendTextMessage(cid,18,"Now you are in dimension.")
setPlayerStorageValue(cid,1419,1)
doSendMagicEffect(frompos,98)
else
setPlayerStorageValue(cid,1419,-1)
doTeleportThing(cid,pos)
doSendMagicEffect(frompos,98)
doSendAnimatedText(getPlayerPosition(cid), "!!!", 180)
setPlayerStorageValue(cid,1419,-1)
doPlayerSendTextMessage(cid,18,"You leaved of dimension.")
end
end
ta assim la ! testei em 2 ots ja
e os 2 deu o erro
[19/03/2014 01:31:35] [Warning - Event::loadScript] Event onUse not found (data/actions/scripts/dimensao.lua)