Тестировал на L2JOfficial
1. Заходим: java/com/l2jserver/gameserver/network/clientpackets Открываем EnterWorld.java
2. Ищим :
4. Открываем Config.java
5. Под строчками :
6. Добавляем :
7. Ищим следующее:
8. Добавляем :
9. Последние шаги. l2jmods.properties удалить следующее:
10. Вместо этого внести :
1. Заходим: java/com/l2jserver/gameserver/network/clientpackets Открываем EnterWorld.java
2. Ищим :
- Код:
if (Config.WELCOME_MESSAGE_ALLOW)
activeChar.sendPacket(new ExShowScreenMessage(Config.WELCOME_MESSAGE, Config.WELCOME_MESSAGE_TIME));
- Код:
try
{
if (Config.WELCOME_MESSAGE_ALLOW)
activeChar.sendPacket(new ExShowScreenMessage(Config.WELCOME_MESSAGE_1, Config.WELCOME_MESSAGE_TIME));
Thread.sleep(Config.SLEEP_TIME);
activeChar.sendPacket(new ExShowScreenMessage(Config.WELCOME_MESSAGE_2, Config.WELCOME_MESSAGE_TIME));
Thread.sleep(Config.SLEEP_TIME);
activeChar.sendPacket(new ExShowScreenMessage(Config.WELCOME_MESSAGE_3, Config.WELCOME_MESSAGE_TIME));
Thread.sleep(Config.SLEEP_TIME);
activeChar.sendPacket(new ExShowScreenMessage(Config.WELCOME_MESSAGE_4, Config.WELCOME_MESSAGE_TIME));
}
catch(Exception e)
{
System.out.println(e);
}
4. Открываем Config.java
5. Под строчками :
- Код:
public static boolean WELCOME_MESSAGE_ALLOW;
public static String WELCOME_MESSAGE;
public static int WELCOME_MESSAGE_TIME;
6. Добавляем :
- Код:
public static String WELCOME_MESSAGE_1;
public static String WELCOME_MESSAGE_2;
public static String WELCOME_MESSAGE_3;
public static String WELCOME_MESSAGE_4;
public static int SLEEP_TIME;
7. Ищим следующее:
- Код:
WELCOME_MESSAGE_ALLOW = Boolean.parseBoolean(L2JModSettings.getProperty("AllowScreenWelcomeMessage", "false"));
WELCOME_MESSAGE = L2JModSettings.getProperty("ScreenWelcomeMessage", "Welcome to L2jOfficial server!");
WELCOME_MESSAGE_TIME = Integer.parseInt(L2JModSettings.getProperty("ScreenWelcomeMessageTime", "10")) * 1000;
8. Добавляем :
- Код:
WELCOME_MESSAGE_1 = l2roxSettings.getProperty("ScreenWelcomeMessage1", "Text1");
WELCOME_MESSAGE_2 = L2JModSettings.getProperty("ScreenWelcomeMessage2", "Text2");
WELCOME_MESSAGE_3 = L2JModSettings.getProperty("ScreenWelcomeMessage3", "Text3");
WELCOME_MESSAGE_4 = L2JModSettings.getProperty("ScreenWelcomeMessage4", "Text4");
SLEEP_TIME =Integer.parseInt(L2JModSettings.getProperty("SleepTime", "10")) * 1000;
9. Последние шаги. l2jmods.properties удалить следующее:
- Код:
# ---------------------------------------------------------------------------
# Welcome message
# ---------------------------------------------------------------------------
# Allow screen welcome message?
# Default: False
AllowScreenWelcomeMessage = True
# Screen welcome message...
ScreenWelcomeMessage = Welcome to L2ROX Server! Please, Vote for Us!
# Screen welcome message time in seconds
ScreenWelcomeMessageTime = 15
10. Вместо этого внести :
- Код:
# ---------------------------------------------------
# Custom Starting Message
# ---------------------------------------------------
# This options will allow to show
# new custom message at enter world
AllowScreenWelcomeMessage = True
# Messages Time in seconds
EachMessageTime = 6
# Text Messages
ScreenWelcomeMessage1 = www.l2jce.forum2x2.ru
ScreenWelcomeMessage2 = Fully Configurable
ScreenWelcomeMessage3 = Multiple Custom Messages
ScreenWelcomeMessage4 = Author - Matim
# Sleep Time in seconds
SleepTime = 7