|
@@ -14,29 +14,49 @@
|
|
|
*/
|
|
|
package com.l2jserver.gameserver.network.serverpackets;
|
|
|
|
|
|
-
|
|
|
/**
|
|
|
+ * Special event info packet.
|
|
|
* @author Kerberos
|
|
|
* @author mrTJO
|
|
|
- * Packet Format: dddddddSS
|
|
|
+ * Format: (ch)dddddddSS
|
|
|
*/
|
|
|
public class ExBrBroadcastEventState extends L2GameServerPacket
|
|
|
{
|
|
|
private int _eventId;
|
|
|
private int _eventState;
|
|
|
+ private int _param0;
|
|
|
+ private int _param1;
|
|
|
+ private int _param2;
|
|
|
+ private int _param3;
|
|
|
+ private int _param4;
|
|
|
+ private String _param5;
|
|
|
+ private String _param6;
|
|
|
|
|
|
public static final int APRIL_FOOLS = 20090401;
|
|
|
- public static final int EVAS_INFERNO = 20090801;
|
|
|
- public static final int HALLOWEEN_EVENT = 20091031;
|
|
|
- public static final int RAISING_RUDOLPH = 20091225;
|
|
|
- public static final int LOVERS_JUBILEE = 20100214;
|
|
|
-
|
|
|
+ public static final int EVAS_INFERNO = 20090801; // event state (0 - hide, 1 - show), day (1-14), percent (0-100)
|
|
|
+ public static final int HALLOWEEN_EVENT = 20091031; // event state (0 - hide, 1 - show)
|
|
|
+ public static final int RAISING_RUDOLPH = 20091225; // event state (0 - hide, 1 - show)
|
|
|
+ public static final int LOVERS_JUBILEE = 20100214; // event state (0 - hide, 1 - show)
|
|
|
+
|
|
|
public ExBrBroadcastEventState(int eventId, int eventState)
|
|
|
{
|
|
|
_eventId = eventId;
|
|
|
_eventState = eventState;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
+ public ExBrBroadcastEventState(int eventId, int eventState, int param0, int param1, int param2, int param3, int param4, String param5, String param6)
|
|
|
+ {
|
|
|
+ _eventId = eventId;
|
|
|
+ _eventState = eventState;
|
|
|
+ _param0 = param0;
|
|
|
+ _param1 = param1;
|
|
|
+ _param2 = param2;
|
|
|
+ _param3 = param3;
|
|
|
+ _param4 = param4;
|
|
|
+ _param5 = param5;
|
|
|
+ _param6 = param6;
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
protected final void writeImpl()
|
|
|
{
|
|
@@ -44,18 +64,15 @@ public class ExBrBroadcastEventState extends L2GameServerPacket
|
|
|
writeH(0xbd);
|
|
|
writeD(_eventId);
|
|
|
writeD(_eventState);
|
|
|
- // Parameters
|
|
|
- writeD(0x00);
|
|
|
- writeD(0x00);
|
|
|
- writeD(0x00);
|
|
|
- writeD(0x00);
|
|
|
- writeD(0x00);
|
|
|
- writeD(0x00);
|
|
|
- writeD(0x00);
|
|
|
- writeS(null);
|
|
|
- writeS(null);
|
|
|
+ writeD(_param0);
|
|
|
+ writeD(_param1);
|
|
|
+ writeD(_param2);
|
|
|
+ writeD(_param3);
|
|
|
+ writeD(_param4);
|
|
|
+ writeS(_param5);
|
|
|
+ writeS(_param6);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/* (non-Javadoc)
|
|
|
* @see com.l2jserver.gameserver.serverpackets.ServerBasePacket#getType()
|
|
|
*/
|