tenta essa
-- Vip Door --
function onUse(cid, item, frompos, item2, topos)
local storageValue = 13540
vipstatus = getPlayerStorageValue(cid,storageValue)
newnPosition = {x=784, y=805, z=7} -- onde será teleportado
if vipstatus == 1 then
playerpos = getPlayerPosition(cid)
doorpos = {x = frompos.x, y = frompos.y, z = frompos.z, stackpos = 253}
if item.actionid == 2075 and getPlayerStorageValue(cid,13540) == 1 then
doTeleportThing(cid,newnPosition)
doSendMagicEffect(newnPosition, 10)
doCreatureSay(cid, "Seja Bem vindo!!!", TALKTYPE_ORANGE_1)
end
else
doCreatureSay(cid, "Voce nao tem acesso vip vip access.", TALKTYPE_ORANGE_1)
end
return 1
end
dps
<action actionid="2075" script="vip.lua"/>