[Classic] Remove birthday message from EnterWorld.

This commit is contained in:
MobiusDev
2015-05-02 18:35:10 +00:00
parent 1caed5558c
commit 58ad4afd8c

View File

@@ -610,17 +610,20 @@ public class EnterWorld extends L2GameClientPacket
L2ClassMasterInstance.showQuestionMark(activeChar); L2ClassMasterInstance.showQuestionMark(activeChar);
int birthday = activeChar.checkBirthDay(); if (!Config.SERVER_CLASSIC_SUPPORT)
if (birthday == 0)
{ {
activeChar.sendPacket(SystemMessageId.HAPPY_BIRTHDAY_ALEGRIA_HAS_SENT_YOU_A_BIRTHDAY_GIFT); int birthday = activeChar.checkBirthDay();
// activeChar.sendPacket(new ExBirthdayPopup()); Removed in H5? if (birthday == 0)
} {
else if (birthday != -1) activeChar.sendPacket(SystemMessageId.HAPPY_BIRTHDAY_ALEGRIA_HAS_SENT_YOU_A_BIRTHDAY_GIFT);
{ // activeChar.sendPacket(new ExBirthdayPopup()); Removed in H5?
sm = SystemMessage.getSystemMessage(SystemMessageId.THERE_ARE_S1_DAYS_REMAINING_UNTIL_YOUR_BIRTHDAY_ON_YOUR_BIRTHDAY_YOU_WILL_RECEIVE_A_GIFT_THAT_ALEGRIA_HAS_CAREFULLY_PREPARED); }
sm.addString(Integer.toString(birthday)); else if (birthday != -1)
activeChar.sendPacket(sm); {
sm = SystemMessage.getSystemMessage(SystemMessageId.THERE_ARE_S1_DAYS_REMAINING_UNTIL_YOUR_BIRTHDAY_ON_YOUR_BIRTHDAY_YOU_WILL_RECEIVE_A_GIFT_THAT_ALEGRIA_HAS_CAREFULLY_PREPARED);
sm.addString(Integer.toString(birthday));
activeChar.sendPacket(sm);
}
} }
if (!activeChar.getPremiumItemList().isEmpty()) if (!activeChar.getPremiumItemList().isEmpty())