mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-07-20 17:45:57 +02:00
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:
parent
caf3968e5b
commit
ddf1d2d1a3
10 changed files with 259 additions and 77 deletions
14
FFXIVClassic_Lobby_Server/dataobjects/Account.cs
Normal file
14
FFXIVClassic_Lobby_Server/dataobjects/Account.cs
Normal file
|
@ -0,0 +1,14 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FFXIVClassic_Lobby_Server.dataobjects
|
||||
{
|
||||
class Account
|
||||
{
|
||||
public UInt32 id;
|
||||
public string name;
|
||||
}
|
||||
}
|
|
@ -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('/', '_');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue