Ir para conteúdo
  • Cadastre-se

Problemas com Sistema Vip !


Posts Recomendados

Ola pessoal,

 

Meu server ele ta com sistema de premium account (que pode entrar na area vip) mas queria q apenas VIP podesse entrar nesta area. Pois quando voce cria uma conta voce ganha 10 dias de premium assim podendo entar na Area Vip. Queria tirar este metodo apenas possibilitando os Vip que comprar pelo site para entrar nela !

 

Dou REP+

Link para o post
Compartilhar em outros sites

Poste o script que faz a checagem do VIP pra entrar na area.

Te ajudei?? REP + e ficamos quites... <ahttp://www.tibiaking.com/forum/uploads/emoticons/default_happyy.png' alt=';D'>

Atenciosamente,

Daniel.

Abraços!

Link para o post
Compartilhar em outros sites

Poste o script que faz a checagem do VIP pra entrar na area.

Cara eu estava vendo aqui, tenho o premiumtile e o viptile, se eu deletar o premium e editar o vip tile conforme o do sistema do mock, vai dar sera ?

Link para o post
Compartilhar em outros sites

Cara, primeiro vc precisa saber onde é que cada script ta sendo usado, pra só dps editar.

Editado por danihcv (veja o histórico de edições)

Te ajudei?? REP + e ficamos quites... <ahttp://www.tibiaking.com/forum/uploads/emoticons/default_happyy.png' alt=';D'>

Atenciosamente,

Daniel.

Abraços!

Link para o post
Compartilhar em outros sites

Achei todos do premium, add os vip, pois quando vou passar no sqm que esta com actionID 13500,  diz que nao tenho Vip, no site consta que estou com vip por 30 dias. Mas nao consigo passar o sqm.

 

Cara, primeiro vc precisa saber onde é que cada script ta sendo usado, pra só dps editar.

Link para o post
Compartilhar em outros sites

Posta o script do actionID 13500.

Te ajudei?? REP + e ficamos quites... <ahttp://www.tibiaking.com/forum/uploads/emoticons/default_happyy.png' alt=';D'>

Atenciosamente,

Daniel.

Abraços!

Link para o post
Compartilhar em outros sites

Posta o script do actionID 13500.

function onStepIn(cid, item, position, fromPosition)

local tileConfig = {

kickPos = fromPosition, kickEffect = CONST_ME_POFF,

kickMsg = "You need to be a vip player to access this area.",

enterMsg = "Welcome to vip area!",

enterEffect = CONST_ME_MAGIC_RED,

}

if isPlayer(cid) == true then

if vip.hasVip(cid) == FALSE then

doTeleportThing(cid, tileConfig.kickPos)

doSendMagicEffect(tileConfig.kickPos, tileConfig.kickEffect)

doPlayerSendCancel(cid, tileConfig.kickMsg)

return

end

doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, tileConfig.enterMsg)

doSendMagicEffect(position, tileConfig.enterEffect)

return true

end

end

 

 

____________________

 

<movevent type="StepIn" actionid="13500" event="script" value="viptile.lua"/>

Link para o post
Compartilhar em outros sites

Tenta assim:

function onStepIn(cid, item, position, fromPosition)

local tileConfig = {
kickPos = fromPosition, kickEffect = CONST_ME_POFF,
kickMsg = "You need to be a vip player to access this area.",
enterMsg = "Welcome to vip area!",
enterEffect = CONST_ME_MAGIC_RED,
}

if isPlayer(cid) == true then
if vip.hasVip(cid) == FALSE then
doTeleportThing(cid, tileConfig.kickPos)
doSendMagicEffect(tileConfig.kickPos, tileConfig.kickEffect)
doPlayerSendCancel(cid, tileConfig.kickMsg)
return
else vip.hasVip(cid) == TRUE then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, tileConfig.enterMsg)
doSendMagicEffect(position, tileConfig.enterEffect)
end
return true
end
end

Te ajudei?? REP + e ficamos quites... <ahttp://www.tibiaking.com/forum/uploads/emoticons/default_happyy.png' alt=';D'>

Atenciosamente,

Daniel.

Abraços!

Link para o post
Compartilhar em outros sites

 

Tenta assim:

function onStepIn(cid, item, position, fromPosition)

local tileConfig = {
kickPos = fromPosition, kickEffect = CONST_ME_POFF,
kickMsg = "You need to be a vip player to access this area.",
enterMsg = "Welcome to vip area!",
enterEffect = CONST_ME_MAGIC_RED,
}

if isPlayer(cid) == true then
if vip.hasVip(cid) == FALSE then
doTeleportThing(cid, tileConfig.kickPos)
doSendMagicEffect(tileConfig.kickPos, tileConfig.kickEffect)
doPlayerSendCancel(cid, tileConfig.kickMsg)
return
else vip.hasVip(cid) == TRUE then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, tileConfig.enterMsg)
doSendMagicEffect(position, tileConfig.enterEffect)
end
return true
end
end

Agora qualquer um passa.

Link para o post
Compartilhar em outros sites

Tenta agr:

function onStepIn(cid, item, position, fromPosition)

local tileConfig = {
kickPos = fromPosition, kickEffect = CONST_ME_POFF,
kickMsg = "You need to be a vip player to access this area.",
enterMsg = "Welcome to vip area!",
enterEffect = CONST_ME_MAGIC_RED,
}

if isPlayer(cid) == true then
if vip.hasVip(cid) == FALSE then
doTeleportThing(cid, tileConfig.kickPos)
doSendMagicEffect(tileConfig.kickPos, tileConfig.kickEffect)
doPlayerSendCancel(cid, tileConfig.kickMsg)
else vip.hasVip(cid) == TRUE then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, tileConfig.enterMsg)
doSendMagicEffect(position, tileConfig.enterEffect)
end
end
return true
end

Obs.: Eu ñ to testando amigo, pois estou meio ocupado. :S

Se der algum erro na distro, pf comunique.

Editado por danihcv (veja o histórico de edições)

Te ajudei?? REP + e ficamos quites... <ahttp://www.tibiaking.com/forum/uploads/emoticons/default_happyy.png' alt=';D'>

Atenciosamente,

Daniel.

Abraços!

Link para o post
Compartilhar em outros sites

Tenta agr:

function onStepIn(cid, item, position, fromPosition)

local tileConfig = {
kickPos = fromPosition, kickEffect = CONST_ME_POFF,
kickMsg = "You need to be a vip player to access this area.",
enterMsg = "Welcome to vip area!",
enterEffect = CONST_ME_MAGIC_RED,
}

if isPlayer(cid) == true then
if vip.hasVip(cid) == FALSE then
doTeleportThing(cid, tileConfig.kickPos)
doSendMagicEffect(tileConfig.kickPos, tileConfig.kickEffect)
doPlayerSendCancel(cid, tileConfig.kickMsg)
else vip.hasVip(cid) == TRUE then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, tileConfig.enterMsg)
doSendMagicEffect(position, tileConfig.enterEffect)
end
end
return true
end

Obs.: Eu ñ to testando amigo, pois estou meio ocupado. :S

Se der algum erro na distro, pf comunique.

Ainda continua qualquer um podendo passar. Este erro no distro

http://postimg.org/image/hg3xhl2z7/

Link para o post
Compartilhar em outros sites

Testado e funcional:

function onStepIn(cid, item, position, fromPosition)

local tileConfig = {
kickPos = fromPosition, kickEffect = CONST_ME_POFF,
kickMsg = "You need to be a vip player to access this area.",
enterMsg = "Welcome to vip area!",
enterEffect = CONST_ME_MAGIC_RED,
}

if isPlayer(cid) == true then
if vip.hasVip(cid) == TRUE then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, tileConfig.enterMsg)
doSendMagicEffect(position, tileConfig.enterEffect)

else
doTeleportThing(cid, tileConfig.kickPos)
doSendMagicEffect(tileConfig.kickPos, tileConfig.kickEffect)
doPlayerSendCancel(cid, tileConfig.kickMsg)
end
end
return true
end

Obs.: Testei com um player que ñ tem vip, pois ñ tenho system vip, e deu certo.

Editado por danihcv (veja o histórico de edições)

Te ajudei?? REP + e ficamos quites... <ahttp://www.tibiaking.com/forum/uploads/emoticons/default_happyy.png' alt=';D'>

Atenciosamente,

Daniel.

Abraços!

Link para o post
Compartilhar em outros sites

Testado e funcional:

function onStepIn(cid, item, position, fromPosition)

local tileConfig = {
kickPos = fromPosition, kickEffect = CONST_ME_POFF,
kickMsg = "You need to be a vip player to access this area.",
enterMsg = "Welcome to vip area!",
enterEffect = CONST_ME_MAGIC_RED,
}

if isPlayer(cid) == true then
if vip.hasVip(cid) == TRUE then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, tileConfig.enterMsg)
doSendMagicEffect(position, tileConfig.enterEffect)

else
doTeleportThing(cid, tileConfig.kickPos)
doSendMagicEffect(tileConfig.kickPos, tileConfig.kickEffect)
doPlayerSendCancel(cid, tileConfig.kickMsg)
end
end
return true
end

Obs.: Testei com um player que ñ tem vip, pois ñ tenho system vip, e deu certo.

Aqui continua qualquer um passando, e agora estou com um outro erro, quando compro 30 dias no site aparece isto aqui 

Vip Status: VIP Account, 16461.0476736 days left
Link para o post
Compartilhar em outros sites
local tileConfig = {
kickPos = fromPosition, kickEffect = CONST_ME_POFF,
kickMsg = "You need to be a vip player to access this area.",
enterMsg = "Welcome to vip area!",
enterEffect = CONST_ME_MAGIC_RED,
}

function onStepIn(cid, item, position, fromPosition)

if isPlayer(cid) == true then
if vip.getDays(days) > 0 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, tileConfig.enterMsg)
doSendMagicEffect(position, tileConfig.enterEffect)

else
doTeleportThing(cid, tileConfig.kickPos)
doSendMagicEffect(tileConfig.kickPos, tileConfig.kickEffect)
doPlayerSendCancel(cid, tileConfig.kickMsg)
end
end
return true
end

/\ Pro problema do tile.

 

 

Sobre o site, vou dar uma olhada.

Te ajudei?? REP + e ficamos quites... <ahttp://www.tibiaking.com/forum/uploads/emoticons/default_happyy.png' alt=';D'>

Atenciosamente,

Daniel.

Abraços!

Link para o post
Compartilhar em outros sites
local tileConfig = {
kickPos = fromPosition, kickEffect = CONST_ME_POFF,
kickMsg = "You need to be a vip player to access this area.",
enterMsg = "Welcome to vip area!",
enterEffect = CONST_ME_MAGIC_RED,
}

function onStepIn(cid, item, position, fromPosition)

if isPlayer(cid) == true then
if vip.getDays(days) > 0 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, tileConfig.enterMsg)
doSendMagicEffect(position, tileConfig.enterEffect)

else
doTeleportThing(cid, tileConfig.kickPos)
doSendMagicEffect(tileConfig.kickPos, tileConfig.kickEffect)
doPlayerSendCancel(cid, tileConfig.kickMsg)
end
end
return true
end

/\ Pro problema do tile.

 

 

Sobre o site, vou dar uma olhada.

 

Cara basta ir no seu site la tem 1 tag que da dias de vip inicial no meu ot é 1

Meus Trabalhos
 
Tudo em Desenvolvimento mais att em breve
Estou parado
 
Tudo Removido
Link para o post
Compartilhar em outros sites

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo