mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-02 19:42:05 -04:00
Cleaned up the 0x02 packet. It fires in response to the 0x2 packet sent by the client it seems.
This commit is contained in:
parent
a30311d12a
commit
4d57aa72a6
@ -130,6 +130,7 @@
|
|||||||
<Compile Include="packets\receive\supportdesk\FaqListRequestPacket.cs" />
|
<Compile Include="packets\receive\supportdesk\FaqListRequestPacket.cs" />
|
||||||
<Compile Include="packets\receive\supportdesk\GMSupportTicketPacket.cs" />
|
<Compile Include="packets\receive\supportdesk\GMSupportTicketPacket.cs" />
|
||||||
<Compile Include="packets\receive\supportdesk\GMTicketIssuesRequestPacket.cs" />
|
<Compile Include="packets\receive\supportdesk\GMTicketIssuesRequestPacket.cs" />
|
||||||
|
<Compile Include="packets\receive\_0x02ReceivePacket.cs" />
|
||||||
<Compile Include="packets\receive\_0x07Packet.cs" />
|
<Compile Include="packets\receive\_0x07Packet.cs" />
|
||||||
<Compile Include="packets\send\actor\ActorDoEmotePacket.cs" />
|
<Compile Include="packets\send\actor\ActorDoEmotePacket.cs" />
|
||||||
<Compile Include="packets\send\actor\ActorInstantiatePacket.cs" />
|
<Compile Include="packets\send\actor\ActorInstantiatePacket.cs" />
|
||||||
|
@ -178,7 +178,8 @@ namespace FFXIVClassic_Lobby_Server
|
|||||||
case 0x0002:
|
case 0x0002:
|
||||||
|
|
||||||
subpacket.debugPrintSubPacket();
|
subpacket.debugPrintSubPacket();
|
||||||
client.queuePacket(SendMessagePacket.buildPacket(player.actorID, player.actorID, SendMessagePacket.MESSAGE_TYPE_GENERAL_INFO, "", "-------- Login Message --------\nWelcome to the 1.0 Dev Server"), true, false);
|
client.queuePacket(_0x2Packet.buildPacket(player.actorID), true, false);
|
||||||
|
|
||||||
Server.GetWorldManager().DoLogin(player.getActor());
|
Server.GetWorldManager().DoLogin(player.getActor());
|
||||||
|
|
||||||
|
|
||||||
|
@ -457,9 +457,7 @@ namespace FFXIVClassic_Map_Server
|
|||||||
player.zone = zone;
|
player.zone = zone;
|
||||||
zone.addActorToZone(player);
|
zone.addActorToZone(player);
|
||||||
|
|
||||||
//Send packets
|
//Send packets
|
||||||
player.playerSession.queuePacket(DeleteAllActorsPacket.buildPacket(player.actorId), true, false);
|
|
||||||
player.playerSession.queuePacket(_0x2Packet.buildPacket(player.actorId), true, false);
|
|
||||||
player.sendZoneInPackets(this, 0x1);
|
player.sendZoneInPackets(this, 0x1);
|
||||||
player.playerSession.clearInstance();
|
player.playerSession.clearInstance();
|
||||||
player.sendInstanceUpdate();
|
player.sendInstanceUpdate();
|
||||||
|
@ -482,7 +482,6 @@ namespace FFXIVClassic_Map_Server.Actors
|
|||||||
public void sendZoneInPackets(WorldManager world, ushort spawnType)
|
public void sendZoneInPackets(WorldManager world, ushort spawnType)
|
||||||
{
|
{
|
||||||
queuePacket(SetMapPacket.buildPacket(actorId, zone.regionId, zone.actorId));
|
queuePacket(SetMapPacket.buildPacket(actorId, zone.regionId, zone.actorId));
|
||||||
// queuePacket(_0x2Packet.buildPacket(actorId));
|
|
||||||
queuePacket(SetMusicPacket.buildPacket(actorId, zone.bgmDay, 0x01));
|
queuePacket(SetMusicPacket.buildPacket(actorId, zone.bgmDay, 0x01));
|
||||||
queuePacket(SetWeatherPacket.buildPacket(actorId, SetWeatherPacket.WEATHER_CLEAR));
|
queuePacket(SetWeatherPacket.buildPacket(actorId, SetWeatherPacket.WEATHER_CLEAR));
|
||||||
|
|
||||||
|
@ -0,0 +1,34 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace FFXIVClassic_Map_Server.packets.receive
|
||||||
|
{
|
||||||
|
class _0x02ReceivePacket
|
||||||
|
{
|
||||||
|
bool invalidPacket = false;
|
||||||
|
uint unknown;
|
||||||
|
|
||||||
|
public _0x02ReceivePacket(byte[] data)
|
||||||
|
{
|
||||||
|
using (MemoryStream mem = new MemoryStream(data))
|
||||||
|
{
|
||||||
|
using (BinaryReader binReader = new BinaryReader(mem))
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
binReader.BaseStream.Seek(0x14, SeekOrigin.Begin);
|
||||||
|
unknown = binReader.ReadUInt32();
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
invalidPacket = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user