Added account and select character packet creators. Fixed wrong field being read for session id. Most of the server is now NOT hardcoded and customizable from the DB. Only hardcoded packet left is the initial handshake.

This commit is contained in:
Filip Maj 2015-09-13 18:21:28 -04:00
parent caf3968e5b
commit ddf1d2d1a3
10 changed files with 259 additions and 77 deletions

View file

@ -141,6 +141,14 @@ namespace FFXIVClassic_Lobby_Server.dataobjects
{
byte[] data;
mainHand = 79707136;
offHand = 32509954;
headGear = 43008;
bodyGear = 43008;
legsGear = 43008;
handsGear = 43008;
feetGear = 43008;
using (MemoryStream stream = new MemoryStream())
{
using (BinaryWriter writer = new BinaryWriter(stream))
@ -240,8 +248,6 @@ namespace FFXIVClassic_Lobby_Server.dataobjects
}
data = stream.GetBuffer();
File.WriteAllBytes("./packets/out.bin",data);
}
return Convert.ToBase64String(data).Replace('+', '-').Replace('/', '_');