Removed Awakening packets.

This commit is contained in:
MobiusDev 2018-03-06 08:50:25 +00:00
parent 7d00c68403
commit b8bc5aa640
3 changed files with 1 additions and 103 deletions

View File

@ -37,7 +37,6 @@ import com.l2jmobius.gameserver.network.clientpackets.attendance.RequestVipAtten
import com.l2jmobius.gameserver.network.clientpackets.attributechange.RequestChangeAttributeCancel;
import com.l2jmobius.gameserver.network.clientpackets.attributechange.RequestChangeAttributeItem;
import com.l2jmobius.gameserver.network.clientpackets.attributechange.SendChangeAttributeTargetItem;
import com.l2jmobius.gameserver.network.clientpackets.awakening.RequestCallToChangeClass;
import com.l2jmobius.gameserver.network.clientpackets.ceremonyofchaos.RequestCancelCuriousHouse;
import com.l2jmobius.gameserver.network.clientpackets.ceremonyofchaos.RequestCuriousHouseHtml;
import com.l2jmobius.gameserver.network.clientpackets.ceremonyofchaos.RequestJoinCuriousHouse;
@ -254,7 +253,7 @@ public enum ExIncomingPackets implements IIncomingPackets<L2GameClient>
REQUEST_COMMISSION_BUY_INFO(0x9E, RequestCommissionBuyInfo::new, ConnectionState.IN_GAME),
REQUEST_COMMISSION_BUY_ITEM(0x9F, RequestCommissionBuyItem::new, ConnectionState.IN_GAME),
REQUEST_COMMISSION_REGISTERED_ITEM(0xA0, RequestCommissionRegisteredItem::new, ConnectionState.IN_GAME),
REQUEST_CALL_TO_CHANGE_CLASS(0xA1, RequestCallToChangeClass::new, ConnectionState.IN_GAME),
REQUEST_CALL_TO_CHANGE_CLASS(0xA1, null, ConnectionState.IN_GAME),
REQUEST_CHANGE_TO_AWAKENED_CLASS(0xA2, RequestChangeToAwakenedClass::new, ConnectionState.IN_GAME),
REQUEST_WORLD_STATISTICS(0xA3, null, ConnectionState.IN_GAME),
REQUEST_USER_STATISTICS(0xA4, null, ConnectionState.IN_GAME),

View File

@ -1,55 +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.awakening;
import com.l2jmobius.commons.network.PacketReader;
import com.l2jmobius.gameserver.enums.CategoryType;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.model.events.EventDispatcher;
import com.l2jmobius.gameserver.model.events.impl.character.player.OnPlayerCallToChangeClass;
import com.l2jmobius.gameserver.network.L2GameClient;
import com.l2jmobius.gameserver.network.clientpackets.IClientIncomingPacket;
/**
* @author Sdw
*/
public class RequestCallToChangeClass implements IClientIncomingPacket
{
@Override
public boolean read(L2GameClient client, PacketReader packet)
{
// Nothing to read
return true;
}
@Override
public void run(L2GameClient client)
{
final L2PcInstance player = client.getActiveChar();
if (player == null)
{
return;
}
if (player.isDead() || player.isInParty() || (player.getLevel() < 85) || !player.isInCategory(CategoryType.FOURTH_CLASS_GROUP))
{
return;
}
EventDispatcher.getInstance().notifyEventAsync(new OnPlayerCallToChangeClass(player), player);
}
}

View File

@ -1,46 +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.awakening;
import com.l2jmobius.commons.network.PacketWriter;
import com.l2jmobius.gameserver.network.OutgoingPackets;
import com.l2jmobius.gameserver.network.serverpackets.IClientOutgoingPacket;
/**
* @author Sdw
*/
public class ExCallToChangeClass implements IClientOutgoingPacket
{
private final int _classId;
private final boolean _showMessage;
public ExCallToChangeClass(int classId, boolean showMessage)
{
_classId = classId;
_showMessage = showMessage;
}
@Override
public boolean write(PacketWriter packet)
{
OutgoingPackets.EX_CALL_TO_CHANGE_CLASS.writeId(packet);
packet.writeD(_classId);
packet.writeD(_showMessage ? 1 : 0);
packet.writeD(1); // Force - 0 you have to do it; 1 it's optional
return true;
}
}