se sua vip for por premium ..
function onStepIn(cid, item, position, fromPosition)
if isPlayer(cid) then
if isPremium(cid) then
doPlayerSendTextMessage(cid, 22, "Bem Vindo.")
else
doTeleportThing(cid, fromPosition, true)
doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE)
doPlayerSendTextMessage(cid, 22, "Você não é Premium.")
end
end
return true
end
se for por storage ..
function onStepIn(cid, item, position, fromPosition)
local storage = XXX -- storage vip aki
if isPlayer(cid) then
if getPlayerStorageValue(cid, storage) >= 1 then
doPlayerSendTextMessage(cid, 22, "Bem Vindo.")
else
doTeleportThing(cid, fromPosition, true)
doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE)
doPlayerSendTextMessage(cid, 22, "Você não é Vip.")
end
end
return true
end
tag em movements.xml :
<movevent type="StepIn" uniqueid="Unique Id" event="script" value="Nome do Arquivo.lua"/>
coloca a uniqueid desejada na tag , depois é só colocar no tile pelo RME .
opa tinha um erro , editei








info
Grupo: Campones
Registrado: 13/03/14
Posts: 31
Reputação: 0
TIPO EU TO CRIANDO NOVAS AREAS VIP NO MEU OT GLOBAL 9.81 DAI EU ESTOU QUERENDO POR PRA SO ENTRA SE O PLAYER TIVER DAYS VIP INTAO OS VIP VAI SER POR PREMIUM SCROLL AI QUAL ID EU COLOCO NO PISO DA AREA VIP PRA QUANDO O PLAYER USA A PREMIUM SCROLL ELE PODER PASSA PELO PISO? SE PODEREM AJUDA AGRADESÇO DESDE JÁ VALENDO REP+