Generic getType method for packets.

This commit is contained in:
MobiusDev 2018-02-16 14:46:55 +00:00
parent 7adffcbc46
commit 5b82379435
274 changed files with 15 additions and 2135 deletions

View File

@ -29,8 +29,6 @@ import com.l2jmobius.gameserver.network.serverpackets.ActionFailed;
public final class Action extends L2GameClientPacket
{
private static final String __C__1F_ACTION = "[C] 1F Action";
private int _objectId;
@SuppressWarnings("unused")
private int _originX;
@ -165,10 +163,4 @@ public final class Action extends L2GameClientPacket
{
return false;
}
@Override
public String getType()
{
return __C__1F_ACTION;
}
}

View File

@ -30,8 +30,6 @@ import com.l2jmobius.gameserver.network.serverpackets.TradeOwnAdd;
*/
public final class AddTradeItem extends L2GameClientPacket
{
private static final String _C__1B_ADDTRADEITEM = "[C] 1B AddTradeItem";
private int _tradeId;
private int _objectId;
private long _count;
@ -99,10 +97,4 @@ public final class AddTradeItem extends L2GameClientPacket
trade.getPartner().sendPacket(new TradeOtherAdd(item));
}
}
@Override
public String getType()
{
return _C__1B_ADDTRADEITEM;
}
}

View File

@ -24,8 +24,6 @@ import com.l2jmobius.gameserver.network.SystemMessageId;
public final class AllyDismiss extends L2GameClientPacket
{
private static final String _C__8F_ALLYDISMISS = "[C] 8F AllyDismiss";
private String _clanName;
@Override
@ -91,10 +89,4 @@ public final class AllyDismiss extends L2GameClientPacket
player.sendPacket(SystemMessageId.YOU_HAVE_SUCCEEDED_IN_EXPELLING_THE_CLAN);
}
@Override
public String getType()
{
return _C__8F_ALLYDISMISS;
}
}

View File

@ -23,8 +23,6 @@ import com.l2jmobius.gameserver.network.SystemMessageId;
public final class AllyLeave extends L2GameClientPacket
{
private static final String _C__8E_ALLYLEAVE = "[C] 8E AllyLeave";
@Override
protected void readImpl()
{
@ -69,10 +67,4 @@ public final class AllyLeave extends L2GameClientPacket
player.sendPacket(SystemMessageId.YOU_HAVE_WITHDRAWN_FROM_THE_ALLIANCE);
}
@Override
public String getType()
{
return _C__8E_ALLYLEAVE;
}
}

View File

@ -29,8 +29,6 @@ import com.l2jmobius.gameserver.util.Util;
*/
public class AnswerCoupleAction extends L2GameClientPacket
{
private static final String _C__D0_7A_ANSWERCOUPLEACTION = "[C] D0:7A AnswerCoupleAction";
private int _charObjId;
private int _actionId;
private int _answer;
@ -86,10 +84,4 @@ public class AnswerCoupleAction extends L2GameClientPacket
}
target.setMultiSocialAction(0, 0);
}
@Override
public String getType()
{
return _C__D0_7A_ANSWERCOUPLEACTION;
}
}

View File

@ -33,7 +33,6 @@ import com.l2jmobius.gameserver.network.serverpackets.SystemMessage;
*/
public final class AnswerJoinPartyRoom extends L2GameClientPacket
{
private static final String _C__D0_30_ANSWERJOINPARTYROOM = "[C] D0:30 AnswerJoinPartyRoom";
private int _answer; // 1 or 0
@Override
@ -115,10 +114,4 @@ public final class AnswerJoinPartyRoom extends L2GameClientPacket
player.setActiveRequester(null);
partner.onTransactionResponse();
}
@Override
public String getType()
{
return _C__D0_30_ANSWERJOINPARTYROOM;
}
}

View File

@ -24,8 +24,6 @@ import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
*/
public class AnswerPartyLootModification extends L2GameClientPacket
{
private static final String _C__D0_79_ANSWERPARTYLOOTMODIFICATION = "[C] D0:79 AnswerPartyLootModification";
public int _answer;
@Override
@ -48,10 +46,4 @@ public class AnswerPartyLootModification extends L2GameClientPacket
party.answerLootChangeRequest(activeChar, _answer == 1);
}
}
@Override
public String getType()
{
return _C__D0_79_ANSWERPARTYLOOTMODIFICATION;
}
}

View File

@ -29,8 +29,6 @@ import com.l2jmobius.gameserver.network.serverpackets.TradeDone;
*/
public final class AnswerTradeRequest extends L2GameClientPacket
{
private static final String _C__55_ANSWERTRADEREQUEST = "[C] 55 AnswerTradeRequest";
private int _response;
@Override
@ -88,10 +86,4 @@ public final class AnswerTradeRequest extends L2GameClientPacket
player.setActiveRequester(null);
partner.onTransactionResponse();
}
@Override
public String getType()
{
return _C__55_ANSWERTRADEREQUEST;
}
}

View File

@ -31,8 +31,6 @@ import com.l2jmobius.gameserver.network.serverpackets.UserInfo;
*/
public final class Appearing extends L2GameClientPacket
{
private static final String _C__3A_APPEARING = "[C] 3A Appearing";
@Override
protected void readImpl()
{
@ -56,12 +54,6 @@ public final class Appearing extends L2GameClientPacket
sendPacket(new ExBrExtraUserInfo(activeChar));
}
@Override
public String getType()
{
return _C__3A_APPEARING;
}
@Override
protected boolean triggersOnActionRequest()
{

View File

@ -32,8 +32,6 @@ import com.l2jmobius.gameserver.network.serverpackets.ActionFailed;
*/
public final class Attack extends L2GameClientPacket
{
private static final String _C__01_ATTACK = "[C] 01 Attack";
// cddddc
private int _objectId;
@SuppressWarnings("unused")
@ -139,10 +137,4 @@ public final class Attack extends L2GameClientPacket
}
}
}
@Override
public String getType()
{
return _C__01_ATTACK;
}
}

View File

@ -29,8 +29,6 @@ import com.l2jmobius.gameserver.network.serverpackets.ActionFailed;
public final class AttackRequest extends L2GameClientPacket
{
private static final String _C__32_ATTACKREQUEST = "[C] 32 AttackRequest";
// cddddc
private int _objectId;
@SuppressWarnings("unused")
@ -129,10 +127,4 @@ public final class AttackRequest extends L2GameClientPacket
}
}
}
@Override
public String getType()
{
return _C__32_ATTACKREQUEST;
}
}

View File

@ -27,8 +27,6 @@ import com.l2jmobius.gameserver.network.serverpackets.L2GameServerPacket;
*/
public final class AuthLogin extends L2GameClientPacket
{
private static final String _C__2B_AUTHLOGIN = "[C] 2B AuthLogin";
// loginName + keys must match what the loginserver used.
private String _loginName;
/*
@ -75,10 +73,4 @@ public final class AuthLogin extends L2GameClientPacket
}
}
}
@Override
public String getType()
{
return _C__2B_AUTHLOGIN;
}
}

View File

@ -23,8 +23,6 @@ import com.l2jmobius.gameserver.network.serverpackets.ExBrLoadEventTopRankers;
*/
public class BrEventRankerList extends L2GameClientPacket
{
private static final String _C__D0_7B_BREVENTRANKERLIST = "[C] D0:7B BrEventRankerList";
private int _eventId;
private int _day;
@SuppressWarnings("unused")
@ -47,10 +45,4 @@ public class BrEventRankerList extends L2GameClientPacket
final int myScore = 0;
getClient().sendPacket(new ExBrLoadEventTopRankers(_eventId, _day, count, bestScore, myScore));
}
@Override
public String getType()
{
return _C__D0_7B_BREVENTRANKERLIST;
}
}

View File

@ -26,8 +26,6 @@ import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
*/
public class BypassUserCmd extends L2GameClientPacket
{
private static final String _C__B3_BYPASSUSERCMD = "[C] B3 BypassUserCmd";
private int _command;
@Override
@ -59,10 +57,4 @@ public class BypassUserCmd extends L2GameClientPacket
handler.useUserCommand(_command, getClient().getActiveChar());
}
}
@Override
public String getType()
{
return _C__B3_BYPASSUSERCMD;
}
}

View File

@ -26,8 +26,6 @@ import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
*/
public final class CannotMoveAnymore extends L2GameClientPacket
{
private static final String _C__47_STOPMOVE = "[C] 47 CannotMoveAnymore";
private int _x;
private int _y;
private int _z;
@ -73,10 +71,4 @@ public final class CannotMoveAnymore extends L2GameClientPacket
// getClient().getActiveChar().sendPacket(sr);
// getClient().getActiveChar().broadcastPacket(sr);
}
@Override
public String getType()
{
return _C__47_STOPMOVE;
}
}

View File

@ -25,8 +25,6 @@ import com.l2jmobius.gameserver.network.serverpackets.StopMoveInVehicle;
*/
public final class CannotMoveAnymoreInVehicle extends L2GameClientPacket
{
private static final String _C__76_CANNOTMOVEANYMOREINVEHICLE = "[C] 76 CannotMoveAnymoreInVehicle";
private int _x;
private int _y;
private int _z;
@ -62,10 +60,4 @@ public final class CannotMoveAnymoreInVehicle extends L2GameClientPacket
}
}
}
@Override
public String getType()
{
return _C__76_CANNOTMOVEANYMOREINVEHICLE;
}
}

View File

@ -57,7 +57,6 @@ import com.l2jmobius.gameserver.util.Util;
@SuppressWarnings("unused")
public final class CharacterCreate extends L2GameClientPacket
{
private static final String _C__0C_CHARACTERCREATE = "[C] 0C CharacterCreate";
protected static final Logger _logAccounting = Logger.getLogger("accounting");
// cSdddddddddddd
@ -311,10 +310,4 @@ public final class CharacterCreate extends L2GameClientPacket
q.newQuestState(player).setState(State.STARTED);
}
}
@Override
public String getType()
{
return _C__0C_CHARACTERCREATE;
}
}

View File

@ -32,8 +32,6 @@ import com.l2jmobius.gameserver.network.serverpackets.CharSelectionInfo;
*/
public final class CharacterDelete extends L2GameClientPacket
{
private static final String _C__0C_CHARACTERDELETE = "[C] 0D CharacterDelete";
// cd
private int _charSlot;
@ -89,10 +87,4 @@ public final class CharacterDelete extends L2GameClientPacket
sendPacket(cl);
getClient().setCharSelection(cl.getCharInfo());
}
@Override
public String getType()
{
return _C__0C_CHARACTERDELETE;
}
}

View File

@ -27,8 +27,6 @@ import com.l2jmobius.gameserver.network.serverpackets.CharSelectionInfo;
*/
public final class CharacterRestore extends L2GameClientPacket
{
private static final String _C__7B_CHARACTERRESTORE = "[C] 7B CharacterRestore";
// cd
private int _charSlot;
@ -53,10 +51,4 @@ public final class CharacterRestore extends L2GameClientPacket
final CharSelectInfoPackage charInfo = getClient().getCharSelection(_charSlot);
EventDispatcher.getInstance().notifyEvent(new OnPlayerRestore(charInfo.getObjectId(), charInfo.getName(), getClient()));
}
@Override
public String getType()
{
return _C__7B_CHARACTERRESTORE;
}
}

View File

@ -47,7 +47,6 @@ import com.l2jmobius.gameserver.network.serverpackets.ServerClose;
*/
public class CharacterSelect extends L2GameClientPacket
{
private static final String _C__12_CHARACTERSELECT = "[C] 12 CharacterSelect";
protected static final Logger _logAccounting = Logger.getLogger("accounting");
// cd
@ -166,10 +165,4 @@ public class CharacterSelect extends L2GameClientPacket
_logAccounting.log(record);
}
}
@Override
public String getType()
{
return _C__12_CHARACTERSELECT;
}
}

View File

@ -35,7 +35,6 @@ import com.l2jmobius.gameserver.util.GMAudit;
*/
public final class DlgAnswer extends L2GameClientPacket
{
private static final String _C__C6_DLGANSWER = "[C] C6 DlgAnswer";
private int _messageId;
private int _answer;
private int _requesterId;
@ -121,10 +120,4 @@ public final class DlgAnswer extends L2GameClientPacket
}
}
}
@Override
public String getType()
{
return _C__C6_DLGANSWER;
}
}

View File

@ -32,10 +32,4 @@ public final class DummyPacket extends L2GameClientPacket
{
}
@Override
public String getType()
{
return "DummyPacket";
}
}

View File

@ -23,8 +23,6 @@ import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
*/
public final class EndScenePlayer extends L2GameClientPacket
{
private static final String _C__D0_5B_ENDSCENEPLAYER = "[C] D0:5B EndScenePlayer";
private int _movieId;
@Override
@ -56,10 +54,4 @@ public final class EndScenePlayer extends L2GameClientPacket
activeChar.spawnMe(activeChar.getX(), activeChar.getY(), activeChar.getZ());
activeChar.setIsTeleporting(false, false);
}
@Override
public String getType()
{
return _C__D0_5B_ENDSCENEPLAYER;
}
}

View File

@ -98,8 +98,6 @@ import com.l2jmobius.gameserver.network.serverpackets.ValidateLocation;
*/
public class EnterWorld extends L2GameClientPacket
{
private static final String _C__11_ENTERWORLD = "[C] 11 EnterWorld";
private final int[][] tracert = new int[5][4];
@Override
@ -681,12 +679,6 @@ public class EnterWorld extends L2GameClientPacket
}
}
@Override
public String getType()
{
return _C__11_ENTERWORLD;
}
@Override
protected boolean triggersOnActionRequest()
{

View File

@ -22,8 +22,6 @@ package com.l2jmobius.gameserver.network.clientpackets;
*/
public class ExGetOnAirShip extends L2GameClientPacket
{
private static final String _C__D0_36_EXGETONAIRSHIP = "[C] D0:36 ExGetOnAirShip";
private int _x;
private int _y;
private int _z;
@ -46,10 +44,4 @@ public class ExGetOnAirShip extends L2GameClientPacket
_log.info("[T1:ExGetOnAirShip] z: " + _z);
_log.info("[T1:ExGetOnAirShip] ship ID: " + _shipId);
}
@Override
public String getType()
{
return _C__D0_36_EXGETONAIRSHIP;
}
}

View File

@ -25,8 +25,6 @@ import com.l2jmobius.gameserver.network.serverpackets.StopRotation;
*/
public final class FinishRotating extends L2GameClientPacket
{
private static final String _C__5C_FINISHROTATING = "[C] 5C FinishRotating";
private int _degree;
@SuppressWarnings("unused")
private int _unknown;
@ -60,10 +58,4 @@ public final class FinishRotating extends L2GameClientPacket
activeChar.broadcastPacket(sr);
}
}
@Override
public String getType()
{
return _C__5C_FINISHROTATING;
}
}

View File

@ -29,8 +29,6 @@ import com.l2jmobius.gameserver.network.L2GameClient;
*/
public class GameGuardReply extends L2GameClientPacket
{
private static final String _C__CB_GAMEGUARDREPLY = "[C] CB GameGuardReply";
private static final byte[] VALID =
{
(byte) 0x88,
@ -84,12 +82,6 @@ public class GameGuardReply extends L2GameClientPacket
}
}
@Override
public String getType()
{
return _C__CB_GAMEGUARDREPLY;
}
@Override
protected boolean triggersOnActionRequest()
{

View File

@ -17,7 +17,6 @@
package com.l2jmobius.gameserver.network.clientpackets;
import java.nio.BufferUnderflowException;
import java.util.logging.Level;
import java.util.logging.Logger;
import com.l2jmobius.commons.mmocore.ReceivablePacket;
@ -46,7 +45,7 @@ public abstract class L2GameClientPacket extends ReceivablePacket<L2GameClient>
}
catch (Exception e)
{
_log.log(Level.SEVERE, "Client: " + getClient() + " - Failed reading: " + getType() + " ; " + e.getMessage(), e);
_log.severe("Client: " + getClient() + " - Failed reading: " + getType() + " ; " + e.getMessage());
if (e instanceof BufferUnderflowException)
{
@ -79,7 +78,7 @@ public abstract class L2GameClientPacket extends ReceivablePacket<L2GameClient>
}
catch (Throwable t)
{
_log.log(Level.SEVERE, "Client: " + getClient() + " - Failed running: " + getType() + " ; " + t.getMessage(), t);
_log.severe("Client: " + getClient() + " - Failed reading: " + getType() + " ; " + t.getMessage() + " " + t);
// in case of EnterWorld error kick player from game
if (this instanceof EnterWorld)
{
@ -108,11 +107,6 @@ public abstract class L2GameClientPacket extends ReceivablePacket<L2GameClient>
sendPacket(SystemMessage.getSystemMessage(id));
}
/**
* @return A String with this packet name for debugging purposes
*/
public abstract String getType();
/**
* Overridden with true value on some packets that should disable spawn protection (RequestItemList and UseItem only)
* @return
@ -137,4 +131,9 @@ public abstract class L2GameClientPacket extends ReceivablePacket<L2GameClient>
getClient().sendPacket(ActionFailed.STATIC_PACKET);
}
}
public String getType()
{
return "[C] " + getClass().getSimpleName();
}
}

View File

@ -35,7 +35,6 @@ import com.l2jmobius.gameserver.taskmanager.AttackStanceTaskManager;
*/
public final class Logout extends L2GameClientPacket
{
private static final String _C__00_LOGOUT = "[C] 00 Logout";
protected static final Logger _logAccounting = Logger.getLogger("accounting");
@Override
@ -116,10 +115,4 @@ public final class Logout extends L2GameClientPacket
player.logout();
}
@Override
public String getType()
{
return _C__00_LOGOUT;
}
}

View File

@ -32,8 +32,6 @@ import com.l2jmobius.gameserver.util.Util;
public class MoveBackwardToLocation extends L2GameClientPacket
{
private static final String _C__0F_MOVEBACKWARDTOLOC = "[C] 0F MoveBackwardToLoc";
private int _targetX;
private int _targetY;
private int _targetZ;
@ -131,10 +129,4 @@ public class MoveBackwardToLocation extends L2GameClientPacket
}
activeChar.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, new Location(_targetX, _targetY, _targetZ));
}
@Override
public String getType()
{
return _C__0F_MOVEBACKWARDTOLOC;
}
}

View File

@ -27,8 +27,6 @@ import com.l2jmobius.gameserver.network.SystemMessageId;
public class MoveToLocationAirShip extends L2GameClientPacket
{
private static final String _C__D0_38_MOVETOLOCATIONAIRSHIP = "[C] D0:38 MoveToLocationAirShip";
public static final int MIN_Z = -895;
public static final int MAX_Z = 6105;
public static final int STEP = 300;
@ -146,10 +144,4 @@ public class MoveToLocationAirShip extends L2GameClientPacket
}
}
}
@Override
public String getType()
{
return _C__D0_38_MOVETOLOCATIONAIRSHIP;
}
}

View File

@ -30,8 +30,6 @@ import com.l2jmobius.gameserver.network.serverpackets.StopMoveInVehicle;
*/
public class MoveToLocationInAirShip extends L2GameClientPacket
{
private static final String _C__D0_20_MOVETOLOCATIONINAIRSHIP = "[C] D0:20 MoveToLocationInAirShip";
private int _shipId;
private int _targetX;
private int _targetY;
@ -95,10 +93,4 @@ public class MoveToLocationInAirShip extends L2GameClientPacket
activeChar.setInVehiclePosition(new Location(_targetX, _targetY, _targetZ));
activeChar.broadcastPacket(new ExMoveToLocationInAirShip(activeChar));
}
@Override
public String getType()
{
return _C__D0_20_MOVETOLOCATIONINAIRSHIP;
}
}

View File

@ -22,8 +22,6 @@ package com.l2jmobius.gameserver.network.clientpackets;
*/
public class MoveWithDelta extends L2GameClientPacket
{
private static final String _C__52_MOVEWITHDELTA = "[C] 52 MoveWithDelta";
@SuppressWarnings("unused")
private int _dx;
@SuppressWarnings("unused")
@ -44,10 +42,4 @@ public class MoveWithDelta extends L2GameClientPacket
{
// TODO this
}
@Override
public String getType()
{
return _C__52_MOVEWITHDELTA;
}
}

View File

@ -42,8 +42,6 @@ import com.l2jmobius.gameserver.network.serverpackets.SystemMessage;
*/
public class MultiSellChoose extends L2GameClientPacket
{
private static final String _C__B0_MULTISELLCHOOSE = "[C] B0 MultiSellChoose";
private int _listId;
private int _entryId;
private long _amount;
@ -466,10 +464,4 @@ public class MultiSellChoose extends L2GameClientPacket
}
}
}
@Override
public String getType()
{
return _C__B0_MULTISELLCHOOSE;
}
}

View File

@ -25,8 +25,6 @@ import com.l2jmobius.gameserver.network.serverpackets.NewCharacterSuccess;
*/
public final class NewCharacter extends L2GameClientPacket
{
private static final String _C__13_NEWCHARACTER = "[C] 13 NewCharacter";
@Override
protected void readImpl()
{
@ -50,10 +48,4 @@ public final class NewCharacter extends L2GameClientPacket
ct.addChar(PlayerTemplateData.getInstance().getTemplate(ClassId.femaleSoldier)); // Female Kamael Soldier
sendPacket(ct);
}
@Override
public String getType()
{
return _C__13_NEWCHARACTER;
}
}

View File

@ -24,8 +24,6 @@ import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
*/
public final class ObserverReturn extends L2GameClientPacket
{
private static final String __C__C1_OBSERVERRETURN = "[C] C1 ObserverReturn";
@Override
protected void readImpl()
{
@ -45,10 +43,4 @@ public final class ObserverReturn extends L2GameClientPacket
// activeChar.teleToLocation(activeChar.getObsX(), activeChar.getObsY(), activeChar.getObsZ());
}
}
@Override
public String getType()
{
return __C__C1_OBSERVERRETURN;
}
}

View File

@ -30,7 +30,6 @@ import com.l2jmobius.gameserver.network.serverpackets.L2GameServerPacket;
*/
public final class ProtocolVersion extends L2GameClientPacket
{
private static final String _C__0E_PROTOCOLVERSION = "[C] 0E ProtocolVersion";
private static final Logger _logAccounting = Logger.getLogger("accounting");
private int _version;
@ -70,10 +69,4 @@ public final class ProtocolVersion extends L2GameClientPacket
getClient().setProtocolOk(true);
}
}
@Override
public String getType()
{
return _C__0E_PROTOCOLVERSION;
}
}

View File

@ -56,7 +56,6 @@ import com.l2jmobius.gameserver.util.Util;
*/
public final class RequestAcquireSkill extends L2GameClientPacket
{
private static final String _C__7C_REQUESTACQUIRESKILL = "[C] 7C RequestAcquireSkill";
private static final String[] QUEST_VAR_NAMES =
{
"EmergentAbility65-",
@ -574,10 +573,4 @@ public final class RequestAcquireSkill extends L2GameClientPacket
final QuestState st = player.getQuestState("Q00136_MoreThanMeetsTheEye");
return (st != null) && st.isCompleted();
}
@Override
public String getType()
{
return _C__7C_REQUESTACQUIRESKILL;
}
}

View File

@ -33,8 +33,6 @@ import com.l2jmobius.gameserver.network.serverpackets.AcquireSkillInfo;
*/
public final class RequestAcquireSkillInfo extends L2GameClientPacket
{
private static final String _C__73_REQUESTACQUIRESKILLINFO = "[C] 73 RequestAcquireSkillInfo";
private int _id;
private int _level;
private AcquireSkillType _skillType;
@ -140,10 +138,4 @@ public final class RequestAcquireSkillInfo extends L2GameClientPacket
}
}
}
@Override
public String getType()
{
return _C__73_REQUESTACQUIRESKILLINFO;
}
}

View File

@ -62,8 +62,6 @@ import com.l2jmobius.util.Rnd;
*/
public final class RequestActionUse extends L2GameClientPacket
{
private static final String _C__56_REQUESTACTIONUSE = "[C] 56 RequestActionUse";
private static final int SIN_EATER_ID = 12564;
private static final int SWITCH_STANCE_ID = 6054;
private static final NpcStringId[] NPC_STRINGS =
@ -1522,12 +1520,6 @@ public final class RequestActionUse extends L2GameClientPacket
partner.sendPacket(new ExAskCoupleAction(requester.getObjectId(), id));
}
@Override
public String getType()
{
return _C__56_REQUESTACTIONUSE;
}
@Override
protected boolean triggersOnActionRequest()
{

View File

@ -24,8 +24,6 @@ import com.l2jmobius.gameserver.network.serverpackets.ExShowAgitInfo;
*/
public class RequestAllAgitInfo extends L2GameClientPacket
{
private static final String _C__D0_3E_REQUESTALLAGITINFO = "[C] D0:3E RequestAllAgitInfo";
@Override
protected void readImpl()
{
@ -41,10 +39,4 @@ public class RequestAllAgitInfo extends L2GameClientPacket
client.sendPacket(new ExShowAgitInfo());
}
}
@Override
public String getType()
{
return _C__D0_3E_REQUESTALLAGITINFO;
}
}

View File

@ -24,8 +24,6 @@ import com.l2jmobius.gameserver.network.serverpackets.ExShowCastleInfo;
*/
public class RequestAllCastleInfo extends L2GameClientPacket
{
private static final String _C__D0_3C_REQUESTALLCASTLEINFO = "[C] D0:3C RequestAllCastleInfo";
@Override
protected void readImpl()
{
@ -47,10 +45,4 @@ public class RequestAllCastleInfo extends L2GameClientPacket
{
return false;
}
@Override
public String getType()
{
return _C__D0_3C_REQUESTALLCASTLEINFO;
}
}

View File

@ -24,8 +24,6 @@ import com.l2jmobius.gameserver.network.serverpackets.ExShowFortressInfo;
*/
public class RequestAllFortressInfo extends L2GameClientPacket
{
private static final String _C__D0_3D_REQUESTALLFORTRESSINFO = "[C] D0:3D RequestAllFortressInfo";
@Override
protected void readImpl()
{
@ -47,10 +45,4 @@ public class RequestAllFortressInfo extends L2GameClientPacket
{
return false;
}
@Override
public String getType()
{
return _C__D0_3D_REQUESTALLFORTRESSINFO;
}
}

View File

@ -24,8 +24,6 @@ import com.l2jmobius.gameserver.network.serverpackets.AllyCrest;
*/
public final class RequestAllyCrest extends L2GameClientPacket
{
private static final String _C__92_REQUESTALLYCREST = "[C] 92 RequestAllyCrest";
private int _crestId;
@Override
@ -40,12 +38,6 @@ public final class RequestAllyCrest extends L2GameClientPacket
sendPacket(new AllyCrest(_crestId));
}
@Override
public String getType()
{
return _C__92_REQUESTALLYCREST;
}
@Override
protected boolean triggersOnActionRequest()
{

View File

@ -28,8 +28,6 @@ import com.l2jmobius.gameserver.network.serverpackets.SystemMessage;
*/
public final class RequestAllyInfo extends L2GameClientPacket
{
private static final String _C__2E_REQUESTALLYINFO = "[C] 2E RequestAllyInfo";
@Override
public void readImpl()
{
@ -107,10 +105,4 @@ public final class RequestAllyInfo extends L2GameClientPacket
activeChar.sendPacket(SystemMessageId.YOU_ARE_NOT_CURRENTLY_ALLIED_WITH_ANY_CLANS);
}
}
@Override
public String getType()
{
return _C__2E_REQUESTALLYINFO;
}
}

View File

@ -28,8 +28,6 @@ import com.l2jmobius.gameserver.network.serverpackets.SystemMessage;
public final class RequestAnswerFriendInvite extends L2GameClientPacket
{
private static final String _C__78_REQUESTANSWERFRIENDINVITE = "[C] 78 RequestAnswerFriendInvite";
private int _response;
@Override
@ -105,10 +103,4 @@ public final class RequestAnswerFriendInvite extends L2GameClientPacket
player.setActiveRequester(null);
requestor.onTransactionResponse();
}
@Override
public String getType()
{
return _C__78_REQUESTANSWERFRIENDINVITE;
}
}

View File

@ -22,8 +22,6 @@ import com.l2jmobius.gameserver.network.SystemMessageId;
public final class RequestAnswerJoinAlly extends L2GameClientPacket
{
private static final String _C__8D_REQUESTANSWERJOINALLY = "[C] 8D RequestAnswerJoinAlly";
private int _response;
@Override
@ -77,10 +75,4 @@ public final class RequestAnswerJoinAlly extends L2GameClientPacket
activeChar.getRequest().onRequestResponse();
}
@Override
public String getType()
{
return _C__8D_REQUESTANSWERJOINALLY;
}
}

View File

@ -27,8 +27,6 @@ import com.l2jmobius.gameserver.network.serverpackets.SystemMessage;
public final class RequestAnswerJoinParty extends L2GameClientPacket
{
private static final String _C__43_REQUESTANSWERPARTY = "[C] 43 RequestAnswerJoinParty";
private int _response;
@Override
@ -142,10 +140,4 @@ public final class RequestAnswerJoinParty extends L2GameClientPacket
player.setActiveRequester(null);
requestor.onTransactionResponse();
}
@Override
public String getType()
{
return _C__43_REQUESTANSWERPARTY;
}
}

View File

@ -33,8 +33,6 @@ import com.l2jmobius.gameserver.network.serverpackets.SystemMessage;
*/
public final class RequestAnswerJoinPledge extends L2GameClientPacket
{
private static final String _C__27_REQUESTANSWERJOINPLEDGE = "[C] 27 RequestAnswerJoinPledge";
private int _answer;
@Override
@ -122,10 +120,4 @@ public final class RequestAnswerJoinPledge extends L2GameClientPacket
activeChar.getRequest().onRequestResponse();
}
@Override
public String getType()
{
return _C__27_REQUESTANSWERJOINPLEDGE;
}
}

View File

@ -64,10 +64,4 @@ public class RequestAskJoinPartyRoom extends L2GameClientPacket
player.sendPacket(SystemMessageId.THAT_PLAYER_IS_NOT_ONLINE);
}
}
@Override
public String getType()
{
return "[C] D0:14 RequestAskJoinPartyRoom";
}
}

View File

@ -29,8 +29,6 @@ import com.l2jmobius.gameserver.network.serverpackets.SystemMessage;
*/
public final class RequestAutoSoulShot extends L2GameClientPacket
{
private static final String _C__D0_0D_REQUESTAUTOSOULSHOT = "[C] D0:0D RequestAutoSoulShot";
// format cd
private int _itemId;
private int _type; // 1 = on : 0 = off;
@ -152,12 +150,6 @@ public final class RequestAutoSoulShot extends L2GameClientPacket
}
}
@Override
public String getType()
{
return _C__D0_0D_REQUESTAUTOSOULSHOT;
}
@Override
protected boolean triggersOnActionRequest()
{

View File

@ -24,7 +24,6 @@ import com.l2jmobius.gameserver.handler.CommunityBoardHandler;
*/
public final class RequestBBSwrite extends L2GameClientPacket
{
private static final String _C__24_REQUESTBBSWRITE = "[C] 24 RequestBBSwrite";
private String _url;
private String _arg1;
private String _arg2;
@ -48,10 +47,4 @@ public final class RequestBBSwrite extends L2GameClientPacket
{
CommunityBoardHandler.getInstance().handleWriteCommand(getActiveChar(), _url, _arg1, _arg2, _arg3, _arg4, _arg5);
}
@Override
public final String getType()
{
return _C__24_REQUESTBBSWRITE;
}
}

View File

@ -27,8 +27,6 @@ import com.l2jmobius.gameserver.model.itemcontainer.Inventory;
*/
public final class RequestBidItemAuction extends L2GameClientPacket
{
private static final String _C__D0_39_REQUESTBIDITEMAUCTION = "[C] D0:39 RequestBidItemAuction";
private int _instanceId;
private long _bid;
@ -70,10 +68,4 @@ public final class RequestBidItemAuction extends L2GameClientPacket
}
}
}
@Override
public final String getType()
{
return _C__D0_39_REQUESTBIDITEMAUCTION;
}
}

View File

@ -23,8 +23,6 @@ import com.l2jmobius.gameserver.network.SystemMessageId;
public final class RequestBlock extends L2GameClientPacket
{
private static final String _C__A9_REQUESTBLOCK = "[C] A9 RequestBlock";
private static final int BLOCK = 0;
private static final int UNBLOCK = 1;
private static final int BLOCKLIST = 2;
@ -112,10 +110,4 @@ public final class RequestBlock extends L2GameClientPacket
}
}
}
@Override
public String getType()
{
return _C__A9_REQUESTBLOCK;
}
}

View File

@ -24,8 +24,6 @@ import com.l2jmobius.gameserver.network.serverpackets.ExGetBookMarkInfoPacket;
*/
public final class RequestBookMarkSlotInfo extends L2GameClientPacket
{
private static final String _C__D0_51_00_REQUESTBOOKMARKSLOTINFO = "[C] D0:51:00 RequestBookMarkSlotInfo";
@Override
protected void readImpl()
{
@ -38,10 +36,4 @@ public final class RequestBookMarkSlotInfo extends L2GameClientPacket
final L2PcInstance player = getClient().getActiveChar();
player.sendPacket(new ExGetBookMarkInfoPacket(player));
}
@Override
public String getType()
{
return _C__D0_51_00_REQUESTBOOKMARKSLOTINFO;
}
}

View File

@ -40,8 +40,6 @@ import com.l2jmobius.gameserver.util.Util;
public final class RequestBuyItem extends L2GameClientPacket
{
private static final String _C__40_REQUESTBUYITEM = "[C] 40 RequestBuyItem";
private static final int BATCH_LENGTH = 12;
private static final int CUSTOM_CB_SELL_LIST = 423;
@ -277,10 +275,4 @@ public final class RequestBuyItem extends L2GameClientPacket
player.sendPacket(su);
player.sendPacket(new ExBuySellList(player, true));
}
@Override
public String getType()
{
return _C__40_REQUESTBUYITEM;
}
}

View File

@ -199,10 +199,4 @@ public class RequestBuySeed extends L2GameClientPacket
}
}
}
@Override
public String getType()
{
return "[C] C5 RequestBuySeed";
}
}

View File

@ -21,8 +21,6 @@ import com.l2jmobius.gameserver.network.serverpackets.ItemList;
public class RequestBuySellUIClose extends L2GameClientPacket
{
private static final String _C__D0_76_REQUESTBUYSELLUICLOSE = "[C] D0:76 RequestBuySellUIClose";
@Override
protected void readImpl()
{
@ -40,10 +38,4 @@ public class RequestBuySellUIClose extends L2GameClientPacket
activeChar.sendPacket(new ItemList(activeChar, true));
}
@Override
public String getType()
{
return _C__D0_76_REQUESTBUYSELLUICLOSE;
}
}

View File

@ -52,7 +52,6 @@ import com.l2jmobius.gameserver.util.Util;
*/
public final class RequestBypassToServer extends L2GameClientPacket
{
private static final String _C__23_REQUESTBYPASSTOSERVER = "[C] 23 RequestBypassToServer";
// FIXME: This is for compatibility, will be changed when bypass functionality got an overhaul by NosBit
private static final String[] _possibleNonHtmlCommands =
{
@ -341,10 +340,4 @@ public final class RequestBypassToServer extends L2GameClientPacket
temp.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, activeChar.getLocation());
}
}
@Override
public String getType()
{
return _C__23_REQUESTBYPASSTOSERVER;
}
}

View File

@ -39,8 +39,6 @@ import com.l2jmobius.gameserver.util.Util;
*/
public final class RequestCancelPostAttachment extends L2GameClientPacket
{
private static final String _C__D0_6F_REQUESTCANCELPOSTATTACHMENT = "[C] D0:6F RequestCancelPostAttachment";
private int _msgId;
@Override
@ -227,12 +225,6 @@ public final class RequestCancelPostAttachment extends L2GameClientPacket
activeChar.sendPacket(SystemMessageId.MAIL_SUCCESSFULLY_CANCELLED);
}
@Override
public String getType()
{
return _C__D0_6F_REQUESTCANCELPOSTATTACHMENT;
}
@Override
protected boolean triggersOnActionRequest()
{

View File

@ -21,8 +21,6 @@ package com.l2jmobius.gameserver.network.clientpackets;
*/
public final class RequestChangeBookMarkSlot extends L2GameClientPacket
{
private static final String _C__D0_51_05_REQUESCHANGEBOOKMARKSLOT = "[C] D0:51:05 RequestChangeBookMarkSlot";
@Override
protected void readImpl()
{
@ -34,10 +32,4 @@ public final class RequestChangeBookMarkSlot extends L2GameClientPacket
{
}
@Override
public String getType()
{
return _C__D0_51_05_REQUESCHANGEBOOKMARKSLOT;
}
}

View File

@ -24,8 +24,6 @@ import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
*/
public class RequestChangeNicknameColor extends L2GameClientPacket
{
private static final String _C__D0_4F_REQUESTCHANGENICKNAMECOLOR = "[C] D0:4F RequestChangeNicknameColor";
private static final int COLORS[] =
{
0x9393FF, // Pink
@ -37,8 +35,7 @@ public class RequestChangeNicknameColor extends L2GameClientPacket
0xA0A601, // Peacock Green
0x7898AF, // Yellow Ochre
0x486295, // Chocolate
0x999999
// Silver
0x999999, // Silver
};
private int _colorNum, _itemObjectId;
@ -79,10 +76,4 @@ public class RequestChangeNicknameColor extends L2GameClientPacket
activeChar.broadcastUserInfo();
}
}
@Override
public String getType()
{
return _C__D0_4F_REQUESTCHANGENICKNAMECOLOR;
}
}

View File

@ -24,8 +24,6 @@ import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
*/
public final class RequestChangePartyLeader extends L2GameClientPacket
{
private static final String _C__D0_0C_REQUESTCHANGEPARTYLEADER = "[C] D0:0C RequestChangePartyLeader";
private String _name;
@Override
@ -49,10 +47,4 @@ public final class RequestChangePartyLeader extends L2GameClientPacket
party.changePartyLeader(_name);
}
}
@Override
public String getType()
{
return _C__D0_0C_REQUESTCHANGEPARTYLEADER;
}
}

View File

@ -27,8 +27,6 @@ import com.l2jmobius.gameserver.network.SystemMessageId;
*/
public final class RequestChangePetName extends L2GameClientPacket
{
private static final String _C__93_REQUESTCHANGEPETNAME = "[C] 93 RequestChangePetName";
private String _name;
@Override
@ -86,10 +84,4 @@ public final class RequestChangePetName extends L2GameClientPacket
pet.setName(_name);
pet.updateAndBroadcastStatus(1);
}
@Override
public String getType()
{
return _C__93_REQUESTCHANGEPETNAME;
}
}

View File

@ -29,7 +29,6 @@ import com.l2jmobius.gameserver.util.Util;
*/
public final class RequestConfirmCancelItem extends L2GameClientPacket
{
private static final String _C__D0_42_REQUESTCONFIRMCANCELITEM = "[C] D0:42 RequestConfirmCancelItem";
private int _objectId;
@Override
@ -138,10 +137,4 @@ public final class RequestConfirmCancelItem extends L2GameClientPacket
activeChar.sendPacket(new ExPutItemResultForVariationCancel(item, price));
}
@Override
public String getType()
{
return _C__D0_42_REQUESTCONFIRMCANCELITEM;
}
}

View File

@ -27,7 +27,6 @@ import com.l2jmobius.gameserver.network.serverpackets.ExPutCommissionResultForVa
*/
public final class RequestConfirmGemStone extends AbstractRefinePacket
{
private static final String _C__D0_28_REQUESTCONFIRMGEMSTONE = "[C] D0:28 RequestConfirmGemStone";
private int _targetItemObjId;
private int _refinerItemObjId;
private int _gemstoneItemObjId;
@ -88,10 +87,4 @@ public final class RequestConfirmGemStone extends AbstractRefinePacket
activeChar.sendPacket(new ExPutCommissionResultForVariationMake(_gemstoneItemObjId, _gemStoneCount, gemStoneItem.getId()));
}
@Override
public String getType()
{
return _C__D0_28_REQUESTCONFIRMGEMSTONE;
}
}

View File

@ -28,8 +28,6 @@ import com.l2jmobius.gameserver.network.serverpackets.ExPutIntensiveResultForVar
*/
public class RequestConfirmRefinerItem extends AbstractRefinePacket
{
private static final String _C__D0_27_REQUESTCONFIRMREFINERITEM = "[C] D0:27 RequestConfirmRefinerItem";
private int _targetItemObjId;
private int _refinerItemObjId;
@ -75,11 +73,4 @@ public class RequestConfirmRefinerItem extends AbstractRefinePacket
activeChar.sendPacket(new ExPutIntensiveResultForVariationMake(_refinerItemObjId, refinerItemId, gemStoneId, gemStoneCount));
}
@Override
public String getType()
{
return _C__D0_27_REQUESTCONFIRMREFINERITEM;
}
}

View File

@ -29,8 +29,6 @@ import com.l2jmobius.gameserver.network.serverpackets.SiegeDefenderList;
*/
public final class RequestConfirmSiegeWaitingList extends L2GameClientPacket
{
private static final String _C__AE_RequestConfirmSiegeWaitingList = "[C] AE RequestConfirmSiegeWaitingList";
private int _approved;
private int _castleId;
private int _clanId;
@ -100,12 +98,5 @@ public final class RequestConfirmSiegeWaitingList extends L2GameClientPacket
// Update the defender list
activeChar.sendPacket(new SiegeDefenderList(castle));
}
@Override
public String getType()
{
return _C__AE_RequestConfirmSiegeWaitingList;
}
}

View File

@ -27,7 +27,6 @@ import com.l2jmobius.gameserver.network.serverpackets.ExPutItemResultForVariatio
*/
public final class RequestConfirmTargetItem extends AbstractRefinePacket
{
private static final String _C__D0_26_REQUESTCONFIRMTARGETITEM = "[C] D0:26 RequestConfirmTargetItem";
private int _itemObjId;
@Override
@ -66,10 +65,4 @@ public final class RequestConfirmTargetItem extends AbstractRefinePacket
activeChar.sendPacket(new ExPutItemResultForVariationMake(_itemObjId, item.getId()));
}
@Override
public String getType()
{
return _C__D0_26_REQUESTCONFIRMTARGETITEM;
}
}

View File

@ -37,8 +37,6 @@ import com.l2jmobius.gameserver.util.Util;
*/
public final class RequestCrystallizeItem extends L2GameClientPacket
{
private static final String _C__2F_REQUESTDCRYSTALLIZEITEM = "[C] 2F RequestCrystallizeItem";
private int _objectId;
private long _count;
@ -231,10 +229,4 @@ public final class RequestCrystallizeItem extends L2GameClientPacket
activeChar.setInCrystallize(false);
}
@Override
public String getType()
{
return _C__2F_REQUESTDCRYSTALLIZEITEM;
}
}

View File

@ -29,8 +29,6 @@ import com.l2jmobius.gameserver.network.serverpackets.ExCursedWeaponList;
*/
public class RequestCursedWeaponList extends L2GameClientPacket
{
private static final String _C__D0_2A_REQUESTCURSEDWEAPONLIST = "[C] D0:2A RequestCursedWeaponList";
@Override
protected void readImpl()
{
@ -56,12 +54,6 @@ public class RequestCursedWeaponList extends L2GameClientPacket
activeChar.sendPacket(new ExCursedWeaponList(list));
}
@Override
public String getType()
{
return _C__D0_2A_REQUESTCURSEDWEAPONLIST;
}
@Override
protected boolean triggersOnActionRequest()
{

View File

@ -32,8 +32,6 @@ import com.l2jmobius.gameserver.network.serverpackets.ExCursedWeaponLocation.Cur
*/
public final class RequestCursedWeaponLocation extends L2GameClientPacket
{
private static final String _C__D0_2B_REQUESTCURSEDWEAPONLOCATION = "[C] D0:2B RequestCursedWeaponLocation";
@Override
protected void readImpl()
{
@ -71,12 +69,6 @@ public final class RequestCursedWeaponLocation extends L2GameClientPacket
}
}
@Override
public String getType()
{
return _C__D0_2B_REQUESTCURSEDWEAPONLOCATION;
}
@Override
protected boolean triggersOnActionRequest()
{

View File

@ -24,8 +24,6 @@ import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
*/
public final class RequestDeleteBookMarkSlot extends L2GameClientPacket
{
private static final String _C__D0_51_03_REQUESTDELETEBOOKMARKSLOT = "[C] D0:51:03 RequestDeleteBookMarkSlot";
private int id;
@Override
@ -45,10 +43,4 @@ public final class RequestDeleteBookMarkSlot extends L2GameClientPacket
activeChar.teleportBookmarkDelete(id);
}
@Override
public String getType()
{
return _C__D0_51_03_REQUESTDELETEBOOKMARKSLOT;
}
}

View File

@ -18,8 +18,6 @@ package com.l2jmobius.gameserver.network.clientpackets;
public final class RequestDeleteMacro extends L2GameClientPacket
{
private static final String _C__CE_REQUESTDELETEMACRO = "[C] CE RequestDeleteMacro";
private int _id;
@Override
@ -37,10 +35,4 @@ public final class RequestDeleteMacro extends L2GameClientPacket
}
getClient().getActiveChar().deleteMacro(_id);
}
@Override
public String getType()
{
return _C__CE_REQUESTDELETEMACRO;
}
}

View File

@ -30,8 +30,6 @@ import com.l2jmobius.gameserver.util.Util;
*/
public final class RequestDeleteReceivedPost extends L2GameClientPacket
{
private static final String _C__D0_68_REQUESTDELETERECEIVEDPOST = "[C] D0:68 RequestDeleteReceivedPost";
private static final int BATCH_LENGTH = 4; // length of the one item
int[] _msgIds = null;
@ -90,12 +88,6 @@ public final class RequestDeleteReceivedPost extends L2GameClientPacket
activeChar.sendPacket(new ExChangePostState(true, _msgIds, Message.DELETED));
}
@Override
public String getType()
{
return _C__D0_68_REQUESTDELETERECEIVEDPOST;
}
@Override
protected boolean triggersOnActionRequest()
{

View File

@ -30,8 +30,6 @@ import com.l2jmobius.gameserver.util.Util;
*/
public final class RequestDeleteSentPost extends L2GameClientPacket
{
private static final String _C__D0_6D_REQUESTDELETESENTPOST = "[C] D0:6D RequestDeleteSentPost";
private static final int BATCH_LENGTH = 4; // length of the one item
int[] _msgIds = null;
@ -90,12 +88,6 @@ public final class RequestDeleteSentPost extends L2GameClientPacket
activeChar.sendPacket(new ExChangePostState(false, _msgIds, Message.DELETED));
}
@Override
public String getType()
{
return _C__D0_6D_REQUESTDELETESENTPOST;
}
@Override
protected boolean triggersOnActionRequest()
{

View File

@ -40,8 +40,6 @@ import com.l2jmobius.gameserver.util.Util;
*/
public final class RequestDestroyItem extends L2GameClientPacket
{
private static final String _C__60_REQUESTDESTROYITEM = "[C] 60 RequestDestroyItem";
private int _objectId;
private long _count;
@ -222,10 +220,4 @@ public final class RequestDestroyItem extends L2GameClientPacket
su.addAttribute(StatusUpdate.CUR_LOAD, activeChar.getCurrentLoad());
activeChar.sendPacket(su);
}
@Override
public String getType()
{
return _C__60_REQUESTDESTROYITEM;
}
}

View File

@ -25,8 +25,6 @@ import com.l2jmobius.gameserver.network.SystemMessageId;
*/
public final class RequestDismissAlly extends L2GameClientPacket
{
private static final String _C__90_REQUESTDISMISSALLY = "[C] 90 RequestDismissAlly";
@Override
protected void readImpl()
{
@ -48,10 +46,4 @@ public final class RequestDismissAlly extends L2GameClientPacket
}
activeChar.getClan().dissolveAlly(activeChar);
}
@Override
public String getType()
{
return _C__90_REQUESTDISMISSALLY;
}
}

View File

@ -25,8 +25,6 @@ import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
*/
public class RequestDismissPartyRoom extends L2GameClientPacket
{
private static final String _C__D0_0A_REQUESTDISMISSPARTYROOM = "[C] D0:0A RequestDismissPartyRoom";
private int _roomid;
@SuppressWarnings("unused")
private int _data2;
@ -57,11 +55,4 @@ public class RequestDismissPartyRoom extends L2GameClientPacket
PartyMatchRoomList.getInstance().deleteRoom(_roomid);
}
@Override
public String getType()
{
return _C__D0_0A_REQUESTDISMISSPARTYROOM;
}
}

View File

@ -27,8 +27,6 @@ import com.l2jmobius.gameserver.model.skills.Skill;
*/
public class RequestDispel extends L2GameClientPacket
{
private static final String _C_D0_4B_REQUESTDISPEL = "[C] D0:4B RequestDispel";
private int _objectId;
private int _skillId;
private int _skillLevel;
@ -82,10 +80,4 @@ public class RequestDispel extends L2GameClientPacket
}
}
}
@Override
public String getType()
{
return _C_D0_4B_REQUESTDISPEL;
}
}

View File

@ -24,8 +24,6 @@ import com.l2jmobius.gameserver.network.serverpackets.ExShowOwnthingPos;
*/
public class RequestDominionInfo extends L2GameClientPacket
{
private static final String _C__D0_58_REQUESTDOMINIONINFO = "[C] D0:58 RequestDominionInfo";
@Override
protected void readImpl()
{
@ -44,10 +42,4 @@ public class RequestDominionInfo extends L2GameClientPacket
{
return false;
}
@Override
public String getType()
{
return _C__D0_58_REQUESTDOMINIONINFO;
}
}

View File

@ -38,8 +38,6 @@ import com.l2jmobius.gameserver.util.Util;
*/
public final class RequestDropItem extends L2GameClientPacket
{
private static final String _C__17_REQUESTDROPITEM = "[C] 17 RequestDropItem";
private int _objectId;
private long _count;
private int _x;
@ -207,12 +205,6 @@ public final class RequestDropItem extends L2GameClientPacket
}
}
@Override
public String getType()
{
return _C__17_REQUESTDROPITEM;
}
@Override
protected boolean triggersOnActionRequest()
{

View File

@ -27,7 +27,6 @@ import com.l2jmobius.gameserver.network.serverpackets.SystemMessage;
*/
public final class RequestDuelAnswerStart extends L2GameClientPacket
{
private static final String _C__D0_1C_REQUESTDUELANSWERSTART = "[C] D0:1C RequestDuelAnswerStart";
private int _partyDuel;
@SuppressWarnings("unused")
private int _unk1;
@ -118,10 +117,4 @@ public final class RequestDuelAnswerStart extends L2GameClientPacket
player.setActiveRequester(null);
requestor.onTransactionResponse();
}
@Override
public String getType()
{
return _C__D0_1C_REQUESTDUELANSWERSTART;
}
}

View File

@ -28,8 +28,6 @@ import com.l2jmobius.gameserver.network.serverpackets.SystemMessage;
*/
public final class RequestDuelStart extends L2GameClientPacket
{
private static final String _C__D0_1B_REQUESTDUELSTART = "[C] D0:1B RequestDuelStart";
private String _player;
private int _partyDuel;
@ -173,10 +171,4 @@ public final class RequestDuelStart extends L2GameClientPacket
}
}
}
@Override
public String getType()
{
return _C__D0_1B_REQUESTDUELSTART;
}
}

View File

@ -24,8 +24,6 @@ import com.l2jmobius.gameserver.instancemanager.DuelManager;
*/
public final class RequestDuelSurrender extends L2GameClientPacket
{
private static final String _C__D0_45_REQUESTDUELSURRENDER = "[C] D0:45 RequestDuelSurrender";
@Override
protected void readImpl()
{
@ -37,10 +35,4 @@ public final class RequestDuelSurrender extends L2GameClientPacket
{
DuelManager.getInstance().doSurrender(getClient().getActiveChar());
}
@Override
public String getType()
{
return _C__D0_45_REQUESTDUELSURRENDER;
}
}

View File

@ -44,8 +44,6 @@ public final class RequestEnchantItem extends L2GameClientPacket
{
protected static final Logger _logEnchant = Logger.getLogger("enchant");
private static final String _C__5F_REQUESTENCHANTITEM = "[C] 5F RequestEnchantItem";
private int _objectId;
private int _supportId;
@ -416,10 +414,4 @@ public final class RequestEnchantItem extends L2GameClientPacket
activeChar.setActiveEnchantItemId(L2PcInstance.ID_NONE);
}
}
@Override
public String getType()
{
return _C__5F_REQUESTENCHANTITEM;
}
}

View File

@ -25,8 +25,6 @@ import com.l2jmobius.gameserver.network.serverpackets.Ex2ndPasswordCheck;
*/
public class RequestEx2ndPasswordCheck extends L2GameClientPacket
{
private static final String _C__D0_AD_REQUESTEX2NDPASSWORDCHECK = "[C] D0:AD RequestEx2ndPasswordCheck";
@Override
protected void readImpl()
{
@ -44,10 +42,4 @@ public class RequestEx2ndPasswordCheck extends L2GameClientPacket
getClient().getSecondaryAuth().openDialog();
}
@Override
public String getType()
{
return _C__D0_AD_REQUESTEX2NDPASSWORDCHECK;
}
}

View File

@ -26,8 +26,6 @@ import com.l2jmobius.gameserver.security.SecondaryPasswordAuth;
*/
public class RequestEx2ndPasswordReq extends L2GameClientPacket
{
private static final String _C__D0_AF_REQUESTEX2NDPASSWORDREQ = "[C] D0:AF RequestEx2ndPasswordReq";
private int _changePass;
private String _password, _newPassword;
@ -67,10 +65,4 @@ public class RequestEx2ndPasswordReq extends L2GameClientPacket
getClient().sendPacket(new Ex2ndPasswordAck(Ex2ndPasswordAck.SUCCESS));
}
}
@Override
public String getType()
{
return _C__D0_AF_REQUESTEX2NDPASSWORDREQ;
}
}

View File

@ -24,8 +24,6 @@ import com.l2jmobius.gameserver.data.xml.impl.SecondaryAuthData;
*/
public class RequestEx2ndPasswordVerify extends L2GameClientPacket
{
private static final String _C__D0_AE_REQUESTEX2NDPASSWORDVERIFY = "[C] D0:AE RequestEx2ndPasswordVerify";
private String _password;
@Override
@ -44,10 +42,4 @@ public class RequestEx2ndPasswordVerify extends L2GameClientPacket
getClient().getSecondaryAuth().checkPassword(_password, false);
}
@Override
public String getType()
{
return _C__D0_AE_REQUESTEX2NDPASSWORDVERIFY;
}
}

View File

@ -27,7 +27,6 @@ import com.l2jmobius.gameserver.network.serverpackets.SystemMessage;
*/
public final class RequestExAcceptJoinMPCC extends L2GameClientPacket
{
private static final String _C__D0_07_REQUESTEXASKJOINMPCC = "[C] D0:07 RequestExAcceptJoinMPCC";
private int _response;
@Override
@ -74,12 +73,5 @@ public final class RequestExAcceptJoinMPCC extends L2GameClientPacket
player.setActiveRequester(null);
requestor.onTransactionResponse();
}
}
@Override
public String getType()
{
return _C__D0_07_REQUESTEXASKJOINMPCC;
}
}

View File

@ -26,7 +26,6 @@ import com.l2jmobius.gameserver.network.serverpackets.ExConfirmAddingContact;
*/
public class RequestExAddContactToContactList extends L2GameClientPacket
{
private static final String _C__D0_84_REQUESTEXADDCONTACTTOCONTACTLIST = "[C] D0:84 RequestExAddContactToContactList";
private String _name;
@Override
@ -57,10 +56,4 @@ public class RequestExAddContactToContactList extends L2GameClientPacket
final boolean charAdded = activeChar.getContactList().add(_name);
activeChar.sendPacket(new ExConfirmAddingContact(_name, charAdded));
}
@Override
public String getType()
{
return _C__D0_84_REQUESTEXADDCONTACTTOCONTACTLIST;
}
}

View File

@ -30,7 +30,6 @@ import com.l2jmobius.gameserver.network.serverpackets.SystemMessage;
*/
public final class RequestExAskJoinMPCC extends L2GameClientPacket
{
private static final String _C__D0_06_REQUESTEXASKJOINMPCC = "[C] D0:06 RequestExAskJoinMPCC";
private String _name;
@Override
@ -178,10 +177,4 @@ public final class RequestExAskJoinMPCC extends L2GameClientPacket
requestor.sendPacket(sm);
}
}
@Override
public String getType()
{
return _C__D0_06_REQUESTEXASKJOINMPCC;
}
}

View File

@ -24,8 +24,6 @@ import com.l2jmobius.gameserver.network.serverpackets.EnchantResult;
*/
public class RequestExCancelEnchantItem extends L2GameClientPacket
{
private static final String _C__D0_4E_REQUESTEXCANCELENCHANTITEM = "[C] D0:4E RequestExCancelEnchantItem";
@Override
protected void readImpl()
{
@ -42,10 +40,4 @@ public class RequestExCancelEnchantItem extends L2GameClientPacket
activeChar.setActiveEnchantItemId(L2PcInstance.ID_NONE);
}
}
@Override
public String getType()
{
return _C__D0_4E_REQUESTEXCANCELENCHANTITEM;
}
}

View File

@ -24,8 +24,6 @@ import com.l2jmobius.gameserver.network.serverpackets.ExNeedToChangeName;
*/
public class RequestExChangeName extends L2GameClientPacket
{
private static final String _C__D0_3B_REQUESTEXCHANGENAME = "[C] D0:3B RequestExChangeName";
private String _newName;
private int _type;
private int _charSlot;
@ -42,12 +40,5 @@ public class RequestExChangeName extends L2GameClientPacket
protected void runImpl()
{
_log.info("Recieved " + getType() + " name: " + _newName + " type: " + _type + " CharSlot: " + _charSlot);
}
@Override
public String getType()
{
return _C__D0_3B_REQUESTEXCHANGENAME;
}
}

View File

@ -25,8 +25,6 @@ import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
*/
public final class RequestExCubeGameChangeTeam extends L2GameClientPacket
{
private static final String _C__D0_5A_REQUESTEXCUBEGAMECHANGETEAM = "[C] D0:5A RequestExCubeGameChangeTeam";
private int _arena;
private int _team;
@ -78,10 +76,4 @@ public final class RequestExCubeGameChangeTeam extends L2GameClientPacket
}
}
}
@Override
public String getType()
{
return _C__D0_5A_REQUESTEXCUBEGAMECHANGETEAM;
}
}

View File

@ -25,8 +25,6 @@ import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
*/
public final class RequestExCubeGameReadyAnswer extends L2GameClientPacket
{
private static final String _C__D0_5C_REQUESTEXCUBEGAMEREADYANSWER = "[C] D0:5C RequestExCubeGameReadyAnswer";
private int _arena;
private int _answer;
@ -69,10 +67,4 @@ public final class RequestExCubeGameReadyAnswer extends L2GameClientPacket
}
}
}
@Override
public String getType()
{
return _C__D0_5C_REQUESTEXCUBEGAMEREADYANSWER;
}
}

View File

@ -25,7 +25,6 @@ import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
*/
public class RequestExDeleteContactFromContactList extends L2GameClientPacket
{
private static final String _C__D0_85_REQUESTEXDELETECONTACTFROMCONTACTLIST = "[C] D0:85 RequestExDeleteContactFromContactList";
private String _name;
@Override
@ -55,10 +54,4 @@ public class RequestExDeleteContactFromContactList extends L2GameClientPacket
activeChar.getContactList().remove(_name);
}
@Override
public String getType()
{
return _C__D0_85_REQUESTEXDELETECONTACTFROMCONTACTLIST;
}
}

View File

@ -32,8 +32,6 @@ import com.l2jmobius.util.Rnd;
public class RequestExEnchantItemAttribute extends L2GameClientPacket
{
private static final String _C__D0_35_REQUESTEXENCHANTITEMATTRIBUTE = "[C] D0:35 RequestExEnchantItemAttribute";
private int _objectId;
@Override
@ -296,10 +294,4 @@ public class RequestExEnchantItemAttribute extends L2GameClientPacket
}
return 0;
}
@Override
public String getType()
{
return _C__D0_35_REQUESTEXENCHANTITEMATTRIBUTE;
}
}

View File

@ -44,7 +44,6 @@ import com.l2jmobius.util.Rnd;
*/
public final class RequestExEnchantSkill extends L2GameClientPacket
{
private static final String _C__D0_0F_REQUESTEXENCHANTSKILL = "[C] D0:0F RequestExEnchantSkill";
private static final Logger _logEnchant = Logger.getLogger("enchant");
private int _skillId;
@ -201,10 +200,4 @@ public final class RequestExEnchantSkill extends L2GameClientPacket
player.sendPacket(SystemMessageId.YOU_DO_NOT_HAVE_ENOUGH_SP_TO_ENCHANT_THAT_SKILL);
}
}
@Override
public String getType()
{
return _C__D0_0F_REQUESTEXENCHANTSKILL;
}
}

View File

@ -28,8 +28,6 @@ import com.l2jmobius.gameserver.network.serverpackets.ExEnchantSkillInfo;
*/
public final class RequestExEnchantSkillInfo extends L2GameClientPacket
{
private static final String _C__D0_0E_REQUESTEXENCHANTSKILLINFO = "[C] D0:0E RequestExEnchantSkillInfo";
private int _skillId;
private int _skillLvl;
@ -79,10 +77,4 @@ public final class RequestExEnchantSkillInfo extends L2GameClientPacket
activeChar.sendPacket(new ExEnchantSkillInfo(_skillId, _skillLvl));
}
@Override
public String getType()
{
return _C__D0_0E_REQUESTEXENCHANTSKILLINFO;
}
}

Some files were not shown because too many files have changed in this diff Show More