Помогите найти:)

Мо3олЬ

Знаменитый
Пользователь
Сообщения
4
Розыгрыши
0
Репутация
0
Реакции
1
Баллы
1 235
Помогите найти сообщение где в ядре оно, чтобы исправить отображения количество часов (сборка L2j) (на рисунке отмечено красным).
Буду очень благодарен :)
 
спс огромное

Фикс вивода сообщения, может кому нада:)
--- a/java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java
+++ b/java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java
@@ -9450,7 +9451,7 @@
{
if (_taskWarnUserTakeBreak == null)
{
- _taskWarnUserTakeBreak = ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new WarnUserTakeBreakTask(this), 7200000, 7200000);
+ _taskWarnUserTakeBreak = ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new WarnUserTakeBreakTask(this), 3600000, 3600000, TimeUnit.MILLISECONDS);
}
}

--- a/java/com/l2jserver/gameserver/model/actor/tasks/player/WarnUserTakeBreakTask.java
+++ b/java/com/l2jserver/gameserver/model/actor/tasks/player/WarnUserTakeBreakTask.java
@@ -18,8 +18,11 @@
*/
package com.l2jserver.gameserver.model.actor.tasks.player;

+import java.util.concurrent.TimeUnit;
+
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.network.SystemMessageId;
+import com.l2jserver.gameserver.network.serverpackets.SystemMessage;

/**
* Task dedicated to warn user to take a break.
@@ -41,7 +44,8 @@
{
if (_player.isOnline())
{
- _player.sendPacket(SystemMessageId.PLAYING_FOR_LONG_TIME);
  • final long hours = TimeUnit.MILLISECONDS.toHours(_player.getUptime());
  • _player.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.YOU_HAVE_BEEN_PLAYING_FOR_AN_EXTENDED_PERIOD_OF_TIME_S1_PLEASE_CONSIDER_TAKING_A_BREAK).addLong(hours));
}
else
{

--- a/java/com/l2jserver/gameserver/network/SystemMessageId.java
+++ b/java/com/l2jserver/gameserver/network/SystemMessageId.java
@@ -4401,7 +4401,7 @@
* ID: 764<br>
* Message: You have been playing for an extended period of time. Please consider taking a break.
*/
- public static final SystemMessageId PLAYING_FOR_LONG_TIME = new SystemMessageId(764);
+ public static final SystemMessageId YOU_HAVE_BEEN_PLAYING_FOR_AN_EXTENDED_PERIOD_OF_TIME_S1_PLEASE_CONSIDER_TAKING_A_BREAK = new SystemMessageId(764);

/**
* ID: 769<br>

 
Последнее редактирование модератором:
Назад
Сверху Снизу