Removed Faction packets.
This commit is contained in:
parent
b8bc5aa640
commit
75ef46739b
@ -60,7 +60,6 @@ import com.l2jmobius.gameserver.network.clientpackets.crystalization.RequestCrys
|
|||||||
import com.l2jmobius.gameserver.network.clientpackets.dailymission.RequestOneDayRewardReceive;
|
import com.l2jmobius.gameserver.network.clientpackets.dailymission.RequestOneDayRewardReceive;
|
||||||
import com.l2jmobius.gameserver.network.clientpackets.dailymission.RequestTodoList;
|
import com.l2jmobius.gameserver.network.clientpackets.dailymission.RequestTodoList;
|
||||||
import com.l2jmobius.gameserver.network.clientpackets.ensoul.RequestItemEnsoul;
|
import com.l2jmobius.gameserver.network.clientpackets.ensoul.RequestItemEnsoul;
|
||||||
import com.l2jmobius.gameserver.network.clientpackets.faction.RequestUserFactionInfo;
|
|
||||||
import com.l2jmobius.gameserver.network.clientpackets.friend.RequestFriendDetailInfo;
|
import com.l2jmobius.gameserver.network.clientpackets.friend.RequestFriendDetailInfo;
|
||||||
import com.l2jmobius.gameserver.network.clientpackets.luckygame.RequestLuckyGamePlay;
|
import com.l2jmobius.gameserver.network.clientpackets.luckygame.RequestLuckyGamePlay;
|
||||||
import com.l2jmobius.gameserver.network.clientpackets.luckygame.RequestLuckyGameStartInfo;
|
import com.l2jmobius.gameserver.network.clientpackets.luckygame.RequestLuckyGameStartInfo;
|
||||||
@ -360,7 +359,7 @@ public enum ExIncomingPackets implements IIncomingPackets<L2GameClient>
|
|||||||
EX_CHANGE_CLASS_ARENA(0x115, null, ConnectionState.IN_GAME),
|
EX_CHANGE_CLASS_ARENA(0x115, null, ConnectionState.IN_GAME),
|
||||||
EX_CONFIRM_CLASS_ARENA(0x116, null, ConnectionState.IN_GAME),
|
EX_CONFIRM_CLASS_ARENA(0x116, null, ConnectionState.IN_GAME),
|
||||||
// TODO: Check Helios updates
|
// TODO: Check Helios updates
|
||||||
REQUEST_USER_FACTION_INFO(0x119, RequestUserFactionInfo::new, ConnectionState.IN_GAME),
|
REQUEST_USER_FACTION_INFO(0x119, null, ConnectionState.IN_GAME),
|
||||||
EX_EXIT_ARENA(0x11A, null, ConnectionState.IN_GAME),
|
EX_EXIT_ARENA(0x11A, null, ConnectionState.IN_GAME),
|
||||||
REQUEST_EVENT_BALTHUS_TOKEN(0x11B, null, ConnectionState.IN_GAME),
|
REQUEST_EVENT_BALTHUS_TOKEN(0x11B, null, ConnectionState.IN_GAME),
|
||||||
REQUEST_PARTY_MATCHING_HISTORY(0x11C, null, ConnectionState.IN_GAME),
|
REQUEST_PARTY_MATCHING_HISTORY(0x11C, null, ConnectionState.IN_GAME),
|
||||||
|
@ -1,47 +0,0 @@
|
|||||||
/*
|
|
||||||
* This file is part of the L2J Mobius project.
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation, either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
package com.l2jmobius.gameserver.network.clientpackets.faction;
|
|
||||||
|
|
||||||
import com.l2jmobius.commons.network.PacketReader;
|
|
||||||
import com.l2jmobius.gameserver.network.L2GameClient;
|
|
||||||
import com.l2jmobius.gameserver.network.clientpackets.IClientIncomingPacket;
|
|
||||||
import com.l2jmobius.gameserver.network.serverpackets.faction.ExFactionInfo;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Mathael
|
|
||||||
*/
|
|
||||||
public class RequestUserFactionInfo implements IClientIncomingPacket
|
|
||||||
{
|
|
||||||
|
|
||||||
private int _playerId;
|
|
||||||
private boolean _openDialog;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean read(L2GameClient client, PacketReader packet)
|
|
||||||
{
|
|
||||||
_playerId = packet.readD();
|
|
||||||
_openDialog = packet.readC() != 0;
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void run(L2GameClient client)
|
|
||||||
{
|
|
||||||
client.getActiveChar().sendPacket(new ExFactionInfo(_playerId, _openDialog));
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,56 +0,0 @@
|
|||||||
/*
|
|
||||||
* This file is part of the L2J Mobius project.
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation, either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
package com.l2jmobius.gameserver.network.serverpackets.faction;
|
|
||||||
|
|
||||||
import com.l2jmobius.commons.network.PacketWriter;
|
|
||||||
import com.l2jmobius.gameserver.network.OutgoingPackets;
|
|
||||||
import com.l2jmobius.gameserver.network.serverpackets.IClientOutgoingPacket;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Mathael
|
|
||||||
*/
|
|
||||||
public class ExFactionInfo implements IClientOutgoingPacket
|
|
||||||
{
|
|
||||||
|
|
||||||
private final int _playerId;
|
|
||||||
private final boolean _openDialog;
|
|
||||||
|
|
||||||
public ExFactionInfo(int playerId, boolean openDialog)
|
|
||||||
{
|
|
||||||
_playerId = playerId;
|
|
||||||
_openDialog = openDialog;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean write(PacketWriter packet)
|
|
||||||
{
|
|
||||||
OutgoingPackets.EX_FACTION_INFO.writeId(packet);
|
|
||||||
|
|
||||||
packet.writeD(_playerId);
|
|
||||||
packet.writeC(_openDialog ? 1 : 0);
|
|
||||||
packet.writeD(6);
|
|
||||||
|
|
||||||
for (int i = 0; i < 6; i++)
|
|
||||||
{
|
|
||||||
packet.writeC(i);
|
|
||||||
packet.writeH(0);
|
|
||||||
packet.writeE(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user