diff --git a/L2J_Mobius_Essence_4.0_DwellingOfSpirits/dist/game/config/General.ini b/L2J_Mobius_Essence_4.0_DwellingOfSpirits/dist/game/config/General.ini index 23b3eecf18..c9df7fcf50 100644 --- a/L2J_Mobius_Essence_4.0_DwellingOfSpirits/dist/game/config/General.ini +++ b/L2J_Mobius_Essence_4.0_DwellingOfSpirits/dist/game/config/General.ini @@ -685,4 +685,17 @@ AltDevShowQuestsLoadInLogs = False # Show scripts while loading them. # Default: False -AltDevShowScriptsLoadInLogs = False \ No newline at end of file +AltDevShowScriptsLoadInLogs = False + + +# --------------------------------------------------------------------------- +# Share Location Settings +# --------------------------------------------------------------------------- + +Share loction Lcoin cost. +# Default: 50 +ShareLocationLcoinCost= 1000 + +# Teleport share location Lcoin cost. +# Default: 400 +TeleportShareLocationLcoinCost= 400 diff --git a/L2J_Mobius_Essence_4.0_DwellingOfSpirits/java/org/l2jmobius/Config.java b/L2J_Mobius_Essence_4.0_DwellingOfSpirits/java/org/l2jmobius/Config.java index 713979b599..cd83750a6f 100644 --- a/L2J_Mobius_Essence_4.0_DwellingOfSpirits/java/org/l2jmobius/Config.java +++ b/L2J_Mobius_Essence_4.0_DwellingOfSpirits/java/org/l2jmobius/Config.java @@ -609,6 +609,8 @@ public class Config public static boolean ENABLE_AUTO_POTION; public static boolean ENABLE_AUTO_BUFF; public static boolean ENABLE_AUTO_ITEM; + public static int SHARING_LOCATION_COST; + public static int TELEPORT_SHARE_LOCATION_COST; // -------------------------------------------------- // FloodProtector Settings @@ -2117,6 +2119,10 @@ public class Config ENABLE_AUTO_BUFF = General.getBoolean("EnableAutoBuff", true); ENABLE_AUTO_ITEM = General.getBoolean("EnableAutoItem", true); + // Share Location + SHARING_LOCATION_COST = General.getInt("ShareLocationLcoinCost", 1); + TELEPORT_SHARE_LOCATION_COST = General.getInt("ShareLocationLcoinCost", 1); + // Load FloodProtector config file final PropertiesParser FloodProtectors = new PropertiesParser(FLOOD_PROTECTOR_CONFIG_FILE); loadFloodProtectorConfigs(FloodProtectors); diff --git a/L2J_Mobius_Essence_4.0_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/ExIncomingPackets.java b/L2J_Mobius_Essence_4.0_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/ExIncomingPackets.java index 8141082940..059775ff09 100644 --- a/L2J_Mobius_Essence_4.0_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/ExIncomingPackets.java +++ b/L2J_Mobius_Essence_4.0_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/ExIncomingPackets.java @@ -122,6 +122,8 @@ import org.l2jmobius.gameserver.network.clientpackets.shuttle.RequestShuttleGetO import org.l2jmobius.gameserver.network.clientpackets.shuttle.RequestShuttleGetOn; import org.l2jmobius.gameserver.network.clientpackets.stats.ExResetStatusBonus; import org.l2jmobius.gameserver.network.clientpackets.stats.ExSetStatusBonus; +import org.l2jmobius.gameserver.network.clientpackets.teleports.ExRequestSharedLocationTeleportUi; +import org.l2jmobius.gameserver.network.clientpackets.teleports.ExRequestSharingLocationUi; import org.l2jmobius.gameserver.network.clientpackets.teleports.ExRequestTeleport; import org.l2jmobius.gameserver.network.clientpackets.teleports.ExRequestTeleportFavoriteList; import org.l2jmobius.gameserver.network.clientpackets.teleports.ExRequestTeleportFavoritesAddDel; @@ -554,9 +556,9 @@ public enum ExIncomingPackets implements IIncomingPackets EX_SAVE_ITEM_ANNOUNCE_SETTING(0x19F, null, ConnectionState.IN_GAME), EX_OLYMPIAD_UI(0x1A0, null, ConnectionState.IN_GAME), // 270 - EX_SHARED_POSITION_SHARING_UI(0x1A1, null, ConnectionState.IN_GAME), - EX_SHARED_POSITION_TELEPORT_UI(0x1A2, null, ConnectionState.IN_GAME), - EX_SHARED_POSITION_TELEPORT(0x1A3, null, ConnectionState.IN_GAME), + EX_SHARED_POSITION_SHARING_UI(0x1A1, ExRequestSharingLocationUi::new, ConnectionState.IN_GAME), + EX_SHARED_POSITION_TELEPORT_UI(0x1A2, ExRequestSharedLocationTeleportUi::new, ConnectionState.IN_GAME), + EX_SHARED_POSITION_TELEPORT(0x1A3, ExRequestSharedLocationTeleportUi::new, ConnectionState.IN_GAME), EX_AUTH_RECONNECT(0x1A4, null, ConnectionState.IN_GAME), EX_PET_EQUIP_ITEM(0x1A5, null, ConnectionState.IN_GAME), EX_PET_UNEQUIP_ITEM(0x1A6, null, ConnectionState.IN_GAME), diff --git a/L2J_Mobius_Essence_4.0_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/teleports/ExRequestSharedLocationTeleportUi.java b/L2J_Mobius_Essence_4.0_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/teleports/ExRequestSharedLocationTeleportUi.java new file mode 100644 index 0000000000..65decb18d3 --- /dev/null +++ b/L2J_Mobius_Essence_4.0_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/teleports/ExRequestSharedLocationTeleportUi.java @@ -0,0 +1,47 @@ +/* + * 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 . + */ +package org.l2jmobius.gameserver.network.clientpackets.teleports; + +import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; +import org.l2jmobius.gameserver.network.GameClient; +import org.l2jmobius.gameserver.network.clientpackets.IClientIncomingPacket; +import org.l2jmobius.gameserver.network.serverpackets.teleports.ExShowSharedLocationTeleportUi; + +/** + * @author GustavoFonseca + */ +public class ExRequestSharedLocationTeleportUi implements IClientIncomingPacket +{ + @Override + public boolean read(GameClient client, PacketReader packet) + { + return true; + } + + @Override + public void run(GameClient client) + { + final PlayerInstance player = client.getPlayer(); + if (player == null) + { + return; + } + + client.sendPacket(new ExShowSharedLocationTeleportUi()); + } +} diff --git a/L2J_Mobius_Essence_4.0_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/teleports/ExRequestSharingLocationUi.java b/L2J_Mobius_Essence_4.0_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/teleports/ExRequestSharingLocationUi.java new file mode 100644 index 0000000000..10cbaa87a0 --- /dev/null +++ b/L2J_Mobius_Essence_4.0_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/teleports/ExRequestSharingLocationUi.java @@ -0,0 +1,47 @@ +/* + * 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 . + */ +package org.l2jmobius.gameserver.network.clientpackets.teleports; + +import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; +import org.l2jmobius.gameserver.network.GameClient; +import org.l2jmobius.gameserver.network.clientpackets.IClientIncomingPacket; +import org.l2jmobius.gameserver.network.serverpackets.teleports.ExShowSharingLocationUi; + +/** + * @author GustavoFonseca + */ +public class ExRequestSharingLocationUi implements IClientIncomingPacket +{ + @Override + public boolean read(GameClient client, PacketReader packet) + { + return true; + } + + @Override + public void run(GameClient client) + { + final PlayerInstance player = client.getPlayer(); + if (player == null) + { + return; + } + + client.sendPacket(new ExShowSharingLocationUi()); + } +} diff --git a/L2J_Mobius_Essence_4.0_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/serverpackets/teleports/ExShowSharedLocationTeleportUi.java b/L2J_Mobius_Essence_4.0_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/serverpackets/teleports/ExShowSharedLocationTeleportUi.java new file mode 100644 index 0000000000..38367eda0b --- /dev/null +++ b/L2J_Mobius_Essence_4.0_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/serverpackets/teleports/ExShowSharedLocationTeleportUi.java @@ -0,0 +1,40 @@ +/* + * 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 . + */ +package org.l2jmobius.gameserver.network.serverpackets.teleports; + +import org.l2jmobius.commons.network.PacketWriter; +import org.l2jmobius.gameserver.network.OutgoingPackets; +import org.l2jmobius.gameserver.network.serverpackets.IClientOutgoingPacket; + +/** + * @author Gustavo Fonseca + */ +public class ExShowSharedLocationTeleportUi implements IClientOutgoingPacket +{ + public static final ExShowSharedLocationTeleportUi STATIC_PACKET = new ExShowSharedLocationTeleportUi(); + + public ExShowSharedLocationTeleportUi() + { + } + + @Override + public boolean write(PacketWriter packet) + { + OutgoingPackets.EX_SHARED_POSITION_TELEPORT_UI.writeId(packet); + return true; + } +} \ No newline at end of file diff --git a/L2J_Mobius_Essence_4.0_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/serverpackets/teleports/ExShowSharingLocationUi.java b/L2J_Mobius_Essence_4.0_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/serverpackets/teleports/ExShowSharingLocationUi.java new file mode 100644 index 0000000000..ace3c3deeb --- /dev/null +++ b/L2J_Mobius_Essence_4.0_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/serverpackets/teleports/ExShowSharingLocationUi.java @@ -0,0 +1,43 @@ +/* + * 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 . + */ +package org.l2jmobius.gameserver.network.serverpackets.teleports; + +import org.l2jmobius.Config; +import org.l2jmobius.commons.network.PacketWriter; +import org.l2jmobius.gameserver.network.OutgoingPackets; +import org.l2jmobius.gameserver.network.serverpackets.IClientOutgoingPacket; + +/** + * @author Gustavo Fonseca + */ +public class ExShowSharingLocationUi implements IClientOutgoingPacket +{ + public static final ExShowSharingLocationUi STATIC_PACKET = new ExShowSharingLocationUi(); + + public ExShowSharingLocationUi() + { + } + + @Override + public boolean write(PacketWriter packet) + { + + OutgoingPackets.EX_SHARED_POSITION_SHARING_UI.writeId(packet); + packet.writeQ(Config.SHARING_LOCATION_COST); + return true; + } +} \ No newline at end of file diff --git a/L2J_Mobius_Essence_5.0_Sylph/dist/game/config/General.ini b/L2J_Mobius_Essence_5.0_Sylph/dist/game/config/General.ini index 23b3eecf18..c9df7fcf50 100644 --- a/L2J_Mobius_Essence_5.0_Sylph/dist/game/config/General.ini +++ b/L2J_Mobius_Essence_5.0_Sylph/dist/game/config/General.ini @@ -685,4 +685,17 @@ AltDevShowQuestsLoadInLogs = False # Show scripts while loading them. # Default: False -AltDevShowScriptsLoadInLogs = False \ No newline at end of file +AltDevShowScriptsLoadInLogs = False + + +# --------------------------------------------------------------------------- +# Share Location Settings +# --------------------------------------------------------------------------- + +Share loction Lcoin cost. +# Default: 50 +ShareLocationLcoinCost= 1000 + +# Teleport share location Lcoin cost. +# Default: 400 +TeleportShareLocationLcoinCost= 400 diff --git a/L2J_Mobius_Essence_5.0_Sylph/java/org/l2jmobius/Config.java b/L2J_Mobius_Essence_5.0_Sylph/java/org/l2jmobius/Config.java index 43828a12ca..bd4c003aa0 100644 --- a/L2J_Mobius_Essence_5.0_Sylph/java/org/l2jmobius/Config.java +++ b/L2J_Mobius_Essence_5.0_Sylph/java/org/l2jmobius/Config.java @@ -609,6 +609,8 @@ public class Config public static boolean ENABLE_AUTO_POTION; public static boolean ENABLE_AUTO_BUFF; public static boolean ENABLE_AUTO_ITEM; + public static int SHARING_LOCATION_COST; + public static int TELEPORT_SHARE_LOCATION_COST; // -------------------------------------------------- // FloodProtector Settings @@ -2117,6 +2119,10 @@ public class Config ENABLE_AUTO_BUFF = General.getBoolean("EnableAutoBuff", true); ENABLE_AUTO_ITEM = General.getBoolean("EnableAutoItem", true); + // Share Location + SHARING_LOCATION_COST = General.getInt("ShareLocationLcoinCost", 1); + TELEPORT_SHARE_LOCATION_COST = General.getInt("ShareLocationLcoinCost", 1); + // Load FloodProtector config file final PropertiesParser FloodProtectors = new PropertiesParser(FLOOD_PROTECTOR_CONFIG_FILE); loadFloodProtectorConfigs(FloodProtectors); diff --git a/L2J_Mobius_Essence_5.0_Sylph/java/org/l2jmobius/gameserver/network/ExIncomingPackets.java b/L2J_Mobius_Essence_5.0_Sylph/java/org/l2jmobius/gameserver/network/ExIncomingPackets.java index 52c3d580b8..6bef1408ef 100644 --- a/L2J_Mobius_Essence_5.0_Sylph/java/org/l2jmobius/gameserver/network/ExIncomingPackets.java +++ b/L2J_Mobius_Essence_5.0_Sylph/java/org/l2jmobius/gameserver/network/ExIncomingPackets.java @@ -122,6 +122,8 @@ import org.l2jmobius.gameserver.network.clientpackets.shuttle.RequestShuttleGetO import org.l2jmobius.gameserver.network.clientpackets.shuttle.RequestShuttleGetOn; import org.l2jmobius.gameserver.network.clientpackets.stats.ExResetStatusBonus; import org.l2jmobius.gameserver.network.clientpackets.stats.ExSetStatusBonus; +import org.l2jmobius.gameserver.network.clientpackets.teleports.ExRequestSharedLocationTeleportUi; +import org.l2jmobius.gameserver.network.clientpackets.teleports.ExRequestSharingLocationUi; import org.l2jmobius.gameserver.network.clientpackets.teleports.ExRequestTeleport; import org.l2jmobius.gameserver.network.clientpackets.teleports.ExRequestTeleportFavoriteList; import org.l2jmobius.gameserver.network.clientpackets.teleports.ExRequestTeleportFavoritesAddDel; @@ -554,9 +556,9 @@ public enum ExIncomingPackets implements IIncomingPackets EX_SAVE_ITEM_ANNOUNCE_SETTING(0x19F, null, ConnectionState.IN_GAME), EX_OLYMPIAD_UI(0x1A0, null, ConnectionState.IN_GAME), // 270 - EX_SHARED_POSITION_SHARING_UI(0x1A1, null, ConnectionState.IN_GAME), - EX_SHARED_POSITION_TELEPORT_UI(0x1A2, null, ConnectionState.IN_GAME), - EX_SHARED_POSITION_TELEPORT(0x1A3, null, ConnectionState.IN_GAME), + EX_SHARED_POSITION_SHARING_UI(0x1A1, ExRequestSharingLocationUi::new, ConnectionState.IN_GAME), + EX_SHARED_POSITION_TELEPORT_UI(0x1A2, ExRequestSharedLocationTeleportUi::new, ConnectionState.IN_GAME), + EX_SHARED_POSITION_TELEPORT(0x1A3, ExRequestSharedLocationTeleportUi::new, ConnectionState.IN_GAME), EX_AUTH_RECONNECT(0x1A4, null, ConnectionState.IN_GAME), EX_PET_EQUIP_ITEM(0x1A5, null, ConnectionState.IN_GAME), EX_PET_UNEQUIP_ITEM(0x1A6, null, ConnectionState.IN_GAME), diff --git a/L2J_Mobius_Essence_5.0_Sylph/java/org/l2jmobius/gameserver/network/clientpackets/teleports/ExRequestSharedLocationTeleportUi.java b/L2J_Mobius_Essence_5.0_Sylph/java/org/l2jmobius/gameserver/network/clientpackets/teleports/ExRequestSharedLocationTeleportUi.java new file mode 100644 index 0000000000..65decb18d3 --- /dev/null +++ b/L2J_Mobius_Essence_5.0_Sylph/java/org/l2jmobius/gameserver/network/clientpackets/teleports/ExRequestSharedLocationTeleportUi.java @@ -0,0 +1,47 @@ +/* + * 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 . + */ +package org.l2jmobius.gameserver.network.clientpackets.teleports; + +import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; +import org.l2jmobius.gameserver.network.GameClient; +import org.l2jmobius.gameserver.network.clientpackets.IClientIncomingPacket; +import org.l2jmobius.gameserver.network.serverpackets.teleports.ExShowSharedLocationTeleportUi; + +/** + * @author GustavoFonseca + */ +public class ExRequestSharedLocationTeleportUi implements IClientIncomingPacket +{ + @Override + public boolean read(GameClient client, PacketReader packet) + { + return true; + } + + @Override + public void run(GameClient client) + { + final PlayerInstance player = client.getPlayer(); + if (player == null) + { + return; + } + + client.sendPacket(new ExShowSharedLocationTeleportUi()); + } +} diff --git a/L2J_Mobius_Essence_5.0_Sylph/java/org/l2jmobius/gameserver/network/clientpackets/teleports/ExRequestSharingLocationUi.java b/L2J_Mobius_Essence_5.0_Sylph/java/org/l2jmobius/gameserver/network/clientpackets/teleports/ExRequestSharingLocationUi.java new file mode 100644 index 0000000000..10cbaa87a0 --- /dev/null +++ b/L2J_Mobius_Essence_5.0_Sylph/java/org/l2jmobius/gameserver/network/clientpackets/teleports/ExRequestSharingLocationUi.java @@ -0,0 +1,47 @@ +/* + * 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 . + */ +package org.l2jmobius.gameserver.network.clientpackets.teleports; + +import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; +import org.l2jmobius.gameserver.network.GameClient; +import org.l2jmobius.gameserver.network.clientpackets.IClientIncomingPacket; +import org.l2jmobius.gameserver.network.serverpackets.teleports.ExShowSharingLocationUi; + +/** + * @author GustavoFonseca + */ +public class ExRequestSharingLocationUi implements IClientIncomingPacket +{ + @Override + public boolean read(GameClient client, PacketReader packet) + { + return true; + } + + @Override + public void run(GameClient client) + { + final PlayerInstance player = client.getPlayer(); + if (player == null) + { + return; + } + + client.sendPacket(new ExShowSharingLocationUi()); + } +} diff --git a/L2J_Mobius_Essence_5.0_Sylph/java/org/l2jmobius/gameserver/network/serverpackets/teleports/ExShowSharedLocationTeleportUi.java b/L2J_Mobius_Essence_5.0_Sylph/java/org/l2jmobius/gameserver/network/serverpackets/teleports/ExShowSharedLocationTeleportUi.java new file mode 100644 index 0000000000..38367eda0b --- /dev/null +++ b/L2J_Mobius_Essence_5.0_Sylph/java/org/l2jmobius/gameserver/network/serverpackets/teleports/ExShowSharedLocationTeleportUi.java @@ -0,0 +1,40 @@ +/* + * 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 . + */ +package org.l2jmobius.gameserver.network.serverpackets.teleports; + +import org.l2jmobius.commons.network.PacketWriter; +import org.l2jmobius.gameserver.network.OutgoingPackets; +import org.l2jmobius.gameserver.network.serverpackets.IClientOutgoingPacket; + +/** + * @author Gustavo Fonseca + */ +public class ExShowSharedLocationTeleportUi implements IClientOutgoingPacket +{ + public static final ExShowSharedLocationTeleportUi STATIC_PACKET = new ExShowSharedLocationTeleportUi(); + + public ExShowSharedLocationTeleportUi() + { + } + + @Override + public boolean write(PacketWriter packet) + { + OutgoingPackets.EX_SHARED_POSITION_TELEPORT_UI.writeId(packet); + return true; + } +} \ No newline at end of file diff --git a/L2J_Mobius_Essence_5.0_Sylph/java/org/l2jmobius/gameserver/network/serverpackets/teleports/ExShowSharingLocationUi.java b/L2J_Mobius_Essence_5.0_Sylph/java/org/l2jmobius/gameserver/network/serverpackets/teleports/ExShowSharingLocationUi.java new file mode 100644 index 0000000000..ace3c3deeb --- /dev/null +++ b/L2J_Mobius_Essence_5.0_Sylph/java/org/l2jmobius/gameserver/network/serverpackets/teleports/ExShowSharingLocationUi.java @@ -0,0 +1,43 @@ +/* + * 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 . + */ +package org.l2jmobius.gameserver.network.serverpackets.teleports; + +import org.l2jmobius.Config; +import org.l2jmobius.commons.network.PacketWriter; +import org.l2jmobius.gameserver.network.OutgoingPackets; +import org.l2jmobius.gameserver.network.serverpackets.IClientOutgoingPacket; + +/** + * @author Gustavo Fonseca + */ +public class ExShowSharingLocationUi implements IClientOutgoingPacket +{ + public static final ExShowSharingLocationUi STATIC_PACKET = new ExShowSharingLocationUi(); + + public ExShowSharingLocationUi() + { + } + + @Override + public boolean write(PacketWriter packet) + { + + OutgoingPackets.EX_SHARED_POSITION_SHARING_UI.writeId(packet); + packet.writeQ(Config.SHARING_LOCATION_COST); + return true; + } +} \ No newline at end of file