Jump to content
  • 0
Sign in to follow this  
SCRASH0

AJUDA MOD SYSTEM VIP

Question

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.

 


 

L2JDREAM PROJECT TEAM

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Cara e simples você tá escrevendo nome errado,

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

Correto seria assim.


newassinaturai.jpg

Share this post


Link to post
Share on other 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.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  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.

Loading...
Sign in to follow this  



     



×
×
  • Create New...