Implement the actor initial position packet and set state packet.

This commit is contained in:
Filip Maj 2015-10-06 23:08:40 -04:00
parent af2262c4b1
commit 327dfc656b
5 changed files with 40 additions and 10 deletions

View file

@ -19,9 +19,11 @@ namespace FFXIVClassic_Map_Server.packets.send.actor
public static SubPacket buildPacket(uint playerActorID, uint targetID, uint state)
{
byte[] data = new byte[PACKET_SIZE - 0x20];
ulong combined = 0;
return new SubPacket(OPCODE, playerActorID, targetID, data);
combined |= state;
return new SubPacket(OPCODE, playerActorID, targetID, BitConverter.GetBytes(combined));
}
}
}