Addition of ExEnterWorld packet.

This commit is contained in:
MobiusDevelopment
2020-07-05 14:00:15 +00:00
parent 7be02a8eee
commit 3c1626c79a
4 changed files with 90 additions and 0 deletions

View File

@@ -69,6 +69,7 @@ import org.l2jmobius.gameserver.network.serverpackets.ExAdenaInvenCount;
import org.l2jmobius.gameserver.network.serverpackets.ExAutoSoulShot;
import org.l2jmobius.gameserver.network.serverpackets.ExBasicActionList;
import org.l2jmobius.gameserver.network.serverpackets.ExBeautyItemList;
import org.l2jmobius.gameserver.network.serverpackets.ExEnterWorld;
import org.l2jmobius.gameserver.network.serverpackets.ExGetBookMarkInfoPacket;
import org.l2jmobius.gameserver.network.serverpackets.ExNoticePostArrived;
import org.l2jmobius.gameserver.network.serverpackets.ExNotifyPremiumItem;
@@ -312,6 +313,9 @@ public class EnterWorld implements IClientIncomingPacket
player.sendPacket(new ExVitalityEffectInfo(player));
}
// Send time.
player.sendPacket(new ExEnterWorld());
// Send Macro List
player.getMacros().sendAllMacros();

View File

@@ -0,0 +1,41 @@
/*
* 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 ExEnterWorld implements IClientOutgoingPacket
{
public ExEnterWorld()
{
}
@Override
public boolean write(PacketWriter packet)
{
OutgoingPackets.EX_ENTER_WORLD.writeId(packet);
packet.writeD((int) (System.currentTimeMillis() / 1000));
packet.writeD(0x00);
packet.writeD(0x00);
packet.writeD(0x00);
return true;
}
}

View File

@@ -68,6 +68,7 @@ import org.l2jmobius.gameserver.network.serverpackets.ExAdenaInvenCount;
import org.l2jmobius.gameserver.network.serverpackets.ExAutoSoulShot;
import org.l2jmobius.gameserver.network.serverpackets.ExBasicActionList;
import org.l2jmobius.gameserver.network.serverpackets.ExBeautyItemList;
import org.l2jmobius.gameserver.network.serverpackets.ExEnterWorld;
import org.l2jmobius.gameserver.network.serverpackets.ExGetBookMarkInfoPacket;
import org.l2jmobius.gameserver.network.serverpackets.ExNoticePostArrived;
import org.l2jmobius.gameserver.network.serverpackets.ExNotifyPremiumItem;
@@ -311,6 +312,9 @@ public class EnterWorld implements IClientIncomingPacket
player.sendPacket(new ExVitalityEffectInfo(player));
}
// Send time.
player.sendPacket(new ExEnterWorld());
// Send Macro List
player.getMacros().sendAllMacros();

View File

@@ -0,0 +1,41 @@
/*
* 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 ExEnterWorld implements IClientOutgoingPacket
{
public ExEnterWorld()
{
}
@Override
public boolean write(PacketWriter packet)
{
OutgoingPackets.EX_ENTER_WORLD.writeId(packet);
packet.writeD((int) (System.currentTimeMillis() / 1000));
packet.writeD(0x00);
packet.writeD(0x00);
packet.writeD(0x00);
return true;
}
}