[Encerrado] Porta pra vip

t0gexdarki
em Tópicos Sem Resposta

t0gexdarki

DarK
avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 03/11/13Posts: 63

Olá, preciso de uma ajudinha bem simples mas n sei a função...

preciso adicionar pra, além do level, apenas vips entrarem nessa porta:

 

 

--
function onUse(cid, item, frompos, item2, topos)


tele = {x=915, y=627, z=8}
if item.uid ==2721 then
vocation = getPlayerVocation(cid)
if vocation == 1 and getPlayerLevel(cid) > 499 then
doTeleportThing(cid,tele)
doPlayerSendTextMessage(cid,22,"Bem-vindo a Outland.")
elseif vocation == 1 and getPlayerLevel(cid) > 499 then
doTeleportThing(cid,tele)
doPlayerSendTextMessage(cid,22,"Bem-vindo a Outland.")
elseif vocation == 1 and getPlayerLevel(cid) > 499 then
doTeleportThing(cid,tele)
doPlayerSendTextMessage(cid,22,"Bem-vindo a Outland.")
elseif vocation == 1 and getPlayerLevel(cid) > 499 then
doTeleportThing(cid,tele)
doPlayerSendTextMessage(cid,22,"Bem-vindo a Outland.")


else
doPlayerSendTextMessage(cid,22,"Você Precisa estar level 500+ para entrar")
end
return 0
end
return 1
end

 

 

Também se possível eu gostaria de tirar o vip eterno de todo mundo do servidor e transformar fly ride e surf para free(sem vip), alguém sabe como fazer?

 

vlw :D

 

zipter98

avatar
Herói
Herói

INFOS

Grupo: HeróiRegistrado: 20/09/12Posts: 2553Gênero: Masculino

Tenta assim:

 

function onUse(cid, item, frompos, item2, topos)
 
tele = {x=915, y=627, z=8}
 
    if item.uid == 2721 then
        if isPremium(cid) then
            vocation = getPlayerVocation(cid)
            if vocation == 1 and getPlayerLevel(cid) > 499 then
                doTeleportThing(cid,tele)
                doPlayerSendTextMessage(cid,22,"Bem-vindo a Outland.")
            elseif vocation == 1 and getPlayerLevel(cid) > 499 then
                doTeleportThing(cid,tele)
                doPlayerSendTextMessage(cid,22,"Bem-vindo a Outland.")
            elseif vocation == 1 and getPlayerLevel(cid) > 499 then
                doTeleportThing(cid,tele)
                doPlayerSendTextMessage(cid,22,"Bem-vindo a Outland.")
            elseif vocation == 1 and getPlayerLevel(cid) > 499 then
                doTeleportThing(cid,tele)
                doPlayerSendTextMessage(cid,22,"Bem-vindo a Outland.")
            else
                return doPlayerSendTextMessage(cid, 22, "Você Precisa estar level 500+ para entrar")
            end
        else
            return doPlayerSendCancel(cid, "Você precisa ser premium para entrar!")
        end
    end
    return true
end

Não respondo PMs solicitando suporte. Já existem seções no fórum para isto.

t0gexdarki

DarK
avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 03/11/13Posts: 63

desculpe a demora, funcionou...

dei rep, obrigado.

zipter98

avatar
Herói
Herói

INFOS

Grupo: HeróiRegistrado: 20/09/12Posts: 2553Gênero: Masculino

Tópico movido para a seção de dúvidas e pedidos resolvidos.

Não respondo PMs solicitando suporte. Já existem seções no fórum para isto.

Stigal

don't ever stop...
avatar
Herói
Herói

INFOS

Grupo: HeróiRegistrado: 28/11/10Posts: 3402Gênero: Masculino
A questão neste tópico de suporte foi encerrada por falta de respostas. Este tópico está fechado e foi movido para Suporte - Tópicos Sem Resposta.

+ Caso a dúvida não tenha sido resolvida você poderá criar outro tópico solicitando ajuda.
* Lembre-se que é permitido dar UP no tópico a cada 24 horas para assim o destacar e manter movimentado.

VI6MDIG.png

 

"O fracasso é a oportunidade de se começar de novo inteligentemente"

Minhas Redes Sociais: Youtube | Página & Grupo | Steam  | Discord Xtibia | Skype: @mrooger

 

OTpanel