|
@@ -27,6 +27,7 @@ import com.l2jserver.gameserver.network.SystemMessageId;
|
|
/**
|
|
/**
|
|
* ExShowScreenMessage server packet implementation.
|
|
* ExShowScreenMessage server packet implementation.
|
|
* @author Kerberos
|
|
* @author Kerberos
|
|
|
|
+ * @author Zoey76
|
|
*/
|
|
*/
|
|
public class ExShowScreenMessage extends L2GameServerPacket {
|
|
public class ExShowScreenMessage extends L2GameServerPacket {
|
|
private final int _type;
|
|
private final int _type;
|
|
@@ -51,6 +52,9 @@ public class ExShowScreenMessage extends L2GameServerPacket {
|
|
public static final byte MIDDLE_RIGHT = 0x06;
|
|
public static final byte MIDDLE_RIGHT = 0x06;
|
|
public static final byte BOTTOM_CENTER = 0x07;
|
|
public static final byte BOTTOM_CENTER = 0x07;
|
|
public static final byte BOTTOM_RIGHT = 0x08;
|
|
public static final byte BOTTOM_RIGHT = 0x08;
|
|
|
|
+ // Sizes
|
|
|
|
+ public static final byte NORMAL_SIZE = 0x00;
|
|
|
|
+ public static final byte SMALL_SIZE = 0x01;
|
|
|
|
|
|
/**
|
|
/**
|
|
* Display a String on the screen for a given time.
|
|
* Display a String on the screen for a given time.
|
|
@@ -138,7 +142,7 @@ public class ExShowScreenMessage extends L2GameServerPacket {
|
|
* @param npcString
|
|
* @param npcString
|
|
* @param params the String parameters
|
|
* @param params the String parameters
|
|
*/
|
|
*/
|
|
- public ExShowScreenMessage(int type, int messageId, int position, int unk1, int size, int unk2, int unk3, boolean showEffect, int time, boolean fade, String text, NpcStringId npcString, String params) {
|
|
|
|
|
|
+ public ExShowScreenMessage(int type, int messageId, int position, int unk1, int size, int unk2, int unk3, boolean showEffect, int time, boolean fade, String text, NpcStringId npcString, String... params) {
|
|
_type = type;
|
|
_type = type;
|
|
_sysMessageId = messageId;
|
|
_sysMessageId = messageId;
|
|
_unk1 = unk1;
|
|
_unk1 = unk1;
|
|
@@ -151,6 +155,10 @@ public class ExShowScreenMessage extends L2GameServerPacket {
|
|
_size = size;
|
|
_size = size;
|
|
_effect = showEffect;
|
|
_effect = showEffect;
|
|
_npcString = npcString.getId();
|
|
_npcString = npcString.getId();
|
|
|
|
+
|
|
|
|
+ if (params != null) {
|
|
|
|
+ addStringParameter(params);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|