broadCast Packet

Junior Spellweaver
Joined
Apr 18, 2006
Messages
121
Reaction score
1
broadCast Packet

Code:
Server to Client - Length:116  PacketID:0x3ec
74 00 ec 03 ff ff ff 00 c4 09 00 00 04 ec 00 00  ; t...............
00 00 00 00 00 00 00 00 04 07 4f 62 73 63 65 6e  ; ..........Obscen
65 08 41 4c 4c 55 53 45 52 53 00 45 23 33 36 23  ; e.ALLUSERS.E#36#
33 36 53 3e 3e 62 6f 77 20 20 73 75 70 65 72 20  ; 36S>>bow..super.
32 20 73 64 67 20 6c 76 6c 20 31 32 30 20 2b 34  ; 2.sdg.lvl.120.+4
20 6f 66 66 65 72 20 42 3e 3e 63 6c 75 62 20 73  ; .offer.B>>club.s
75 70 65 72 20 32 20 73 6f 63 20 6c 76 6c 20 31  ; uper.2.soc.lvl.1
35 00 00 00                                      ; 5...



any one here know how can i make it like that


Code:
        {
            byte[] PacketData = new byte[0x10];
            PacketData[0] = 0x10;
            PacketData[1] = 0x00;
            PacketData[2] = 0x56;
            PacketData[3] = 0x04;
            PacketData[4] = (byte)((uint)Map & 0xff);
            PacketData[5] = (byte)(((uint)Map >> 8) & 0xff);
            PacketData[6] = 0x00;
            PacketData[7] = 0x00;
            PacketData[8] = (byte)((uint)Map & 0xff);
            PacketData[9] = (byte)(((uint)Map >> 8) & 0xff);
            PacketData[10] = 0x00;
            PacketData[11] = 0x00;
            PacketData[12] = 0x00;
            PacketData[13] = 0x00;
            PacketData[14] = 0x00;
            PacketData[15] = 0x00;
            return PacketData;
        }
 
OLOL finally someone moves into broadcast. Do any servers even have it working other than mine? and fyi, it's just a normal chat packet with a "broadcast" id.
 
Ive not bothered with it yet, its on the

"not essential" pile atm and thus significantly lower on my list of priorities

and to the threadstarter:

no.
 
finally no one tell me how can i get the packet work
i can get any packet but how can i get it work
 
Well if you ever looked at how chat system works, then you just check the type id from the chat packet and if it is broadcast id(2010), prolly is if you do it so, then you send it to all players, if you have trouble with sending it to every client, then i can't help.
 
how you know the ID
and how can i know The Button ID if I have this Button packet

THx
 
I took the id from co future source, its in ConquesrPacket.cs, there are all of the chat ids.
 
Back