Addition of new teleport list bypass for gatekeepers.

This commit is contained in:
MobiusDevelopment
2019-10-07 14:59:11 +00:00
parent a942671449
commit 11102d9a8d
88 changed files with 140 additions and 936 deletions

View File

@@ -34,6 +34,7 @@ import org.l2jmobius.gameserver.model.holders.TeleporterQuestRecommendationHolde
import org.l2jmobius.gameserver.model.quest.QuestState;
import org.l2jmobius.gameserver.model.skills.CommonSkill;
import org.l2jmobius.gameserver.model.teleporter.TeleportHolder;
import org.l2jmobius.gameserver.network.serverpackets.ExShowTeleportUi;
import org.l2jmobius.gameserver.network.serverpackets.NpcHtmlMessage;
import org.l2jmobius.gameserver.util.Util;
@@ -125,6 +126,11 @@ public class TeleporterInstance extends Npc
holder.showTeleportList(player, this);
break;
}
case "showTeleportList":
{
player.sendPacket(ExShowTeleportUi.STATIC_PACKET);
break;
}
case "teleport":
{
// Check for required count of params.

View File

@@ -800,6 +800,7 @@ public enum OutgoingPackets
EX_COIN_COUNT(0xFE, 0x209), // 228
EX_SEND_COSTUME_LIST(0xFE, 0x20F), // 228
EX_COSTUME_SHORTCUT_LIST(0xFE, 0x215), // 228
EX_SHOW_TELEPORT_UI(0xFE, 0x219), // 228
EX_AUTOPLAY_SETTING(0xFE, 0x221), // 228
EX_UNK_225(0xFE, 0x225), // 228
EX_MERCENARY_CASTLEWAR_CASTLE_SIEGE_HUD_INFO(0xFE, 0x235); // 228

View File

@@ -0,0 +1,39 @@
/*
* 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 org.l2jmobius.gameserver.network.serverpackets;
import org.l2jmobius.commons.network.PacketWriter;
import org.l2jmobius.gameserver.network.OutgoingPackets;
/**
* @author Mobius
*/
public class ExShowTeleportUi implements IClientOutgoingPacket
{
public static final ExShowTeleportUi STATIC_PACKET = new ExShowTeleportUi();
public ExShowTeleportUi()
{
}
@Override
public boolean write(PacketWriter packet)
{
OutgoingPackets.EX_SHOW_TELEPORT_UI.writeId(packet);
return true;
}
}