[QUOTE = top1; 8895600] Eu apenas empurro o servidor do jogo para o github.
confira! [/ QUOTE]
void ChannelManager :: send_channel (pc * pc) {
pacote de pacotes;
packet.write <uint16> (0x4d);
packet.write <uint8> ((uint8) channel_list.size ()); //this is a channel list counter
para (auto ele: channel_list) {
packet.write_string (it-> nome, 20); //width is 20, rather than 10
packet.write
(
0x00, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x08, 0x10, 0x06, 0x07, 0x1A, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x01, 0x14, 0x00, 0x00, 0x64, 0x02, 0x00, 0x1A, 0x00, 0x00, 0x00, 0x00
); //unknown, I still do not know what can be
packet.write <uint16> (it-> maxplayer);
packet.write <uint16> (it-> pc_count ());
packet.write <uint8> (it-> id);
packet.write <uint8> (0);
packet.write <uint8> (1); // pode ser do tipo: byte, 1 =free, any player can enter , 64 = somente Rookie F, 10 = input somente begginer
packet.write(0x00, 0x00) ;
packet.write <uint8> (0);
packet.write<uint8>(10); ////blocks in-game functions, 10 = blocks scratch card, ticker, 90 = block ticker
packe.write(0x00, 0x00); }
pc->
}
dentro do projeto HSREINA tem algumas dicas sobre isso
If you find out more things let me know
Obrigado por compartilhar seu projeto, aguardando MSG Server e AuthServer