mirror of
https://github.com/sebastian-heinz/mhf-server.git
synced 2025-04-04 05:48:29 +08:00
43 lines
24 KiB
C#
43 lines
24 KiB
C#
![]() |
using Arrowgene.Services.Buffers;
|
|||
|
using Mhf.Server.Common;
|
|||
|
using Mhf.Server.Packet;
|
|||
|
|
|||
|
namespace Mhf.Server.PacketResponses
|
|||
|
{
|
|||
|
public class MsgHeadResponse : PacketResponse
|
|||
|
{
|
|||
|
public MsgHeadResponse() : base((ushort) PacketId.MSG_HEAD)
|
|||
|
{
|
|||
|
}
|
|||
|
|
|||
|
protected override IBuffer ToBuffer()
|
|||
|
{
|
|||
|
string fileChecksumHost = "l0.mhf-g.jp";
|
|||
|
string fileHost = "u0.mhf-g.jp";
|
|||
|
string lobbyConnection = "127.0.0.1:53310";
|
|||
|
|
|||
|
IBuffer res = BufferProvider.Provide();
|
|||
|
res.SetPositionStart();
|
|||
|
res.WriteByte(1); //unk_hostname_count
|
|||
|
res.WriteByte(2); //entrance_server_count
|
|||
|
res.WriteByte(1); //character_count
|
|||
|
res.WriteByte(1); //character_count
|
|||
|
res.WriteBytes(new byte[]
|
|||
|
{
|
|||
|
0x13, 0x50, 0xDE, 0xED, 0x44, 0x6C, 0x58, 0x46, 0x7A, 0x77, 0x73, 0x75, 0x42, 0x30, 0x41, 0x45, 0x34,
|
|||
|
0x75, 0x77, 0x41, 0x5D, 0xCF, 0x28, 0x85
|
|||
|
});
|
|||
|
res.WriteByte((byte) (fileHost.Length + 1)); //str len + 00
|
|||
|
res.WriteCString(fileHost);
|
|||
|
res.WriteByte((byte) (fileChecksumHost.Length + 1)); //str len + 00
|
|||
|
res.WriteCString(fileChecksumHost);
|
|||
|
res.WriteByte((byte) (lobbyConnection.Length + 1)); //str len + 00
|
|||
|
res.WriteCString(lobbyConnection);
|
|||
|
string d =
|
|||
|
"2A14BEE7000100075DCC8E68000000017370656E676500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000002643C424F44593E3C43454E5445523E3C53495A455F333E3C435F343E8CC397B48EED82AA82A893BE81493C42523E3C424F44593E817591E6333989F189CC95508EEB897190ED8145905E90E081768A4A8DC33C42523E3C424F44593E3C42523E3C424F44593E3C4C4546543E3C435F333E3C53495A455F323E817990ED89CC82CC8FCD8A4A8DC38AFA8AD4817A3C435F373E3C42523E3C424F44593E31318C8E313393FA289085292081602031318C8E323093FA289085298381839383658369839383588A4A8E6E82DC82C53C42523E3C424F44593E3C42523E3C424F44593E3C42523E3C424F44593E3C435F343E81A18CC397B48EED82AA82A893BE81493C435F373E3C42523E3C424F44593E3C53495A455F323E8CC397B48EED82CC838283938358835E815B82F08EEB97C282B582C48A6C93BE82C582AB82E98C7D8C82837C83438393836782F0919D97CA81423C42523E3C424F44593E3C42523E3C424F44593E3C435F343E81A1834E8347835883678F89834E838A8341837B815B8369835882F0919D97CA81493C435F373E3C42523E3C424F44593E90ED89CC82CC8FCD82C58A6C93BE82C582AB82E9834E8347835883678F89834E838A8341837B815B8369835882AA3C42523E3C424F44593E92CA8FED82E682E882E03C435F353E353030837C8343839383678341836283768149203C435F373E3C42523E3C424F44593E3C42523E3C424F44593E91BD82AD82CC8EED97DE82CC8C7D8C8290ED834E83478358836782F0834E838A834182B581413C42523E3C424F44593E8F89834E838A8341837B815B8369835882F082BD82AD82B382F18A6C93BE82B582E682A48149002A14BEE70000000E2A64736D6300080C00003D000000818100000000000029000000816A0000000000002800000081690000000000002100000081490000000000002F000000815E0000000000002B000000817B00000000000026000000819500000000000082500000310000000000000082DA0000837B0000CE00DE0082D9DE00837ADE0082D9814A837A814ACE00814A0000000082D7000083780000CD00DE0082D6DE008377DE0082D6814ACD00814A8377814A0000000082C5000083660000C300DE0082C4DE008365DE0082C4814A8365814AC300814A81A7814A81A7DE0089B3DE0089B3814A0000000082D1000083720000CB00DE0082D0DE008371DE0082D0814A8371814ACB00814A0000000082C7000083680000C400DE0082C6DE008367DE0082C6814A8367814AC400814A84B0DE0084B0814A84A5DE0084A5814A0000000082CE0000836F0000CA00DE0082CDDE00836EDE0094AADE0082CD814A836E814ACA00814A94AA814A0000000082C2DE00836400008363DE0082C2814A8363814AC200DE00C200814A82C3000082C1DE008362DE00AF00DE0082C1814A8362814AAF00814A0000000082D4000083750000CC00DE0083940000B300DE0082A4814A82A4DE008345DE00A900DE0082A3DE0082D3DE008374DE00CC00814A0000000082C0000083610000C100DE0082BFDE008360DE0082BF814A8360814AC100814A90E7814A90E7DE000000000082BE0000835F0000C000DE0082BDDE00835EDE00975BDE0082BD814A835E814AC000814A975B814A0000000082BC0000835D0000BF00DE0082BBDE00835CDE0082BB814A835C814ABF00814A8393DE008393814ADD00814ADD00DE00838ADE00D800DE00D800814A838A814A0000000082BA0000BE00DE0082B9DE00835ADE0082B9814A835A814ABE00814A835B00000000000082B8000083590000BD00DE0082B7DE008358DE0082B7814A8358814ABD00814A0000000082B6000083570000BC00DE0082B5DE008356DE0082B5814A8356814ABC00814A0000000082B4000083550000BB00DE0082B3DE008354DE0082B3814A8354814ABB00814A0000000082B2000083530000BA00DE0082B1DE008352DE0082B1814A8352814ABA00814A0000000082B0000083510000B900DE0082AFDE008350DE0082AF814A8350814AB900814A8396DE008396814A0000000082AE0000834F0000B800DE0082ADDE00834EDE0082AD814A834E814AB800814A0000000082AC0000834D0000B700DE0082ABDE00834CDE0082AB814A834C814AB700814A0000000082AA0000834B0000B600DE008395DE00834ADE0082A9DE0097CDDE008395814A834A814A82A9814A97CD814AB600814A0000000082F0000083920000A60000000000000082ED0000838F0000DC000000838E00000000000082EB0000838D0000DB00000081A000008CFB00000000000082EA0000838C0000DA0000000000000082E90000838B0000D90000000000000082E80000838A0000D80000000000000082E7000083890000D70000000000000082E6000083880000D6000000AE00000082E50000838700000000000082E4000083860000D5000000AD00000082E30000838500000000000082E2000083840000D4000000AC00000082E10000838300000000000082E0000083820000D30000000000000082DF000083810000D20000004D0045000000000082DE000083800000D10000000000000082DD0000837E0000D00000000000000082DC0000837D0000CF0000000000000082D90000837A0000CE0000000000000082D6000083770000CD0000000000000082D3000083740000CC0000000000000082D0000083710000CB0000000000000082CD0000836E
|
|||
|
res.WriteBytes(Util.FromHexString(d));
|
|||
|
return res;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|