Ir para conteúdo
  • Cadastre-se
  • 0

AJUDA MOD SYSTEM VIP


SCRASH0

Pergunta

PESSOAL ESTOU COM PROBLEMAS PARA ADICIONAR O MOD VIP.

COLOCO TUDO CORRETO DE ACORDO COMO PEDE O MOD.

MAS DA ERRO NO ENTERWORLD.

 

 

private void onEnterVip(L2PcInstance activeChar) <-------- ERRO AQUI [onEnterVip- actveChar]
{
long curDay = Calendar.getInstance().getTimeInMillis();
long endDay = activeChar.getVipEndTime();
if(curDay > endDay)
{
activeChar.setVip(false);
activeChar.setVipEndTime(0);
activeChar.sendMessage("[Vip System]: Removed your Vip stats... period ends ");
}
else
{
Date dt = new Date(endDay);
_daysleft = (endDay - curDay) / 86400000;
if(_daysleft > 30)
activeChar.sendMessage("[Vip System]: Vip period ends in " + df.format(dt) + ". enjoy the Game");
else if(_daysleft > 0)
activeChar.sendMessage("[Vip System]: Left " + (int)_daysleft + " days for Vip period ends");
else if(_daysleft < 1)
{
long hour = (endDay - curDay) / 3600000;
activeChar.sendMessage("[Vip System]: Left " + (int)hour + " hours to Vip period ends");
}
}
}
if(Config.ALLOW_VIP_NCOLOR && activeChar.isVip())
activeChar.getAppearance().setNameColor(Config.VIP_NCOLOR);
if(Config.ALLOW_VIP_TCOLOR && activeChar.isVip())
activeChar.getAppearance().setTitleColor(Config.VIP_TCOLOR);
if(activeChar.isVip())
onEnterVip(activeChar); <----- ERRO AQUI [onEnterVip]
activeChar.updateNameTitleColor();
alguem pode me ajudar porfavor.

 

Link para o comentário
Compartilhar em outros sites

5 respostass a esta questão

Posts recomendados


  • 0

Cara e simples você tá escrevendo nome errado,

private void onEnterVip(L2PcInstance activeChar) <-------- ERRO AQUI [onEnterVip- activeChar]

Correto seria assim.

newassinaturai.jpg

Link para o comentário
Compartilhar em outros sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Visitante
Responder esta pergunta...

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

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Processando...




×
×
  • Criar Novo...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.