SendToAllIngame() public static method

public static SendToAllIngame ( byte tmpBuffer ) : void
tmpBuffer byte
return void
Ejemplo n.º 1
0
        public static void SendExternNotice(string msg)
        {
            byte[] bmsg = Encoding.Unicode.GetBytes(msg);

            PacketWriter writer = new PacketWriter();

            writer.SetOpcode(SERVER_OPCODES.GAME_SERVER_CHAT);
            writer.AppendByte(7);
            writer.AppendWord((ushort)(bmsg.Length / 2));
            writer.AppendByteArray(bmsg, bmsg.Length);
            ServerSocket.SendToAllIngame(writer.getWorkspace());
        }
Ejemplo n.º 2
0
        private static void OnChatNotice(PacketReader reader_)
        {
            ushort msglen = reader_.ReadWord();

            byte[] bmsg = reader_.ReadByteArray(msglen * 2);

            PacketWriter writer = new PacketWriter();

            writer.SetOpcode(SERVER_OPCODES.GAME_SERVER_CHAT);
            writer.AppendByte(7);
            writer.AppendWord(msglen);
            writer.AppendByteArray(bmsg, bmsg.Length);
            ServerSocket.SendToAllIngame(writer.getWorkspace());
        }