Addition of ExEnterWorld packet.
This commit is contained in:
@@ -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();
|
||||
|
||||
|
@@ -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;
|
||||
}
|
||||
}
|
@@ -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();
|
||||
|
||||
|
@@ -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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user