Register for your free account! | Forgot your password?

You last visited: Today at 10:32

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[5165] Chat Packets

Discussion on [5165] Chat Packets within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2010
Posts: 291
Received Thanks: 61
[5165] Chat Packets

Hello everybody!
I'm using 5165 Tanel's Source but I noticed that the chat packet Isn't correct... Somethings are missing,, such as the avatar in whisper chat window and scanning gears of the target..
Any1 has the correct packet? Thanks

Here Goes My Packet
Code:
public static COPacket ChatMessage(uint MessageID, string From, string To, string Message, ushort Type, uint Mesh)
        {
            byte[] Packet = new byte[8 + 34 + Message.Length + From.Length + To.Length];
            COPacket P = new COPacket(Packet);
            P.WriteInt16((ushort)(Packet.Length - 8));
            P.WriteInt16((ushort)0x3ec);
            P.WriteBytes(new byte[] { 0xff, 0xff, 0xff, 0x00 });
            P.WriteInt32(Type);
            P.WriteInt32(MessageID);
            P.WriteInt32(Mesh);
            P.WriteInt32(Mesh);
            P.WriteByte(4);
            P.WriteByte((byte)From.Length);
            P.WriteString(From);
            P.WriteByte((byte)To.Length);
            P.WriteString(To);
            P.Move(1);
            if (Message.Length < 255)
                P.WriteByte((byte)(Message.Length));
            else
                P.WriteByte(255);

            P.WriteString(Message, 255);
            P.Move(6);

            return P;
        }
†he Knight is offline  
Old 11/28/2010, 14:11   #2
 
|NeoX's Avatar
 
elite*gold: 0
Join Date: Nov 2010
Posts: 237
Received Thanks: 99
packet wiki.
|NeoX is offline  
Old 11/28/2010, 14:12   #3
 
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 505
Code:
            P.WriteInt32(Mesh);
            P.WriteInt32(Mesh);
Could that be it?
Basser is offline  
Old 11/28/2010, 18:06   #4
 
elite*gold: 0
Join Date: Apr 2010
Posts: 291
Received Thanks: 61
Quote:
Originally Posted by Basser View Post
Code:
            P.WriteInt32(Mesh);
            P.WriteInt32(Mesh);
Could that be it?
That's Color of the text..
†he Knight is offline  
Old 11/28/2010, 18:50   #5
 
elite*gold: 20
Join Date: Oct 2010
Posts: 451
Received Thanks: 259
Nope.
"P.WriteBytes(new byte[] { 0xff, 0xff, 0xff, 0x00 });"
is the color of the text.

Look into Impulse's source. I'm sure it's fixed in there.
FuriousFang is offline  
Old 11/28/2010, 18:55   #6
 
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 505
Fang is right, oh and I would make the color an int32 with value 0xFFFFFF instead.
Or using the 'Color' class in the .NET framework...
Basser is offline  
Old 11/28/2010, 18:55   #7
 
elite*gold: 0
Join Date: Feb 2009
Posts: 259
Received Thanks: 159
Code:
public static COPacket ChatMessage(uint MessageID, string From, string To, string Message, ushort Type, uint Mesh [COLOR="Red"], System.Drawing.Color color[/COLOR])
        {
            byte[] Packet = new byte[8 + 34 + Message.Length + From.Length + To.Length];
            COPacket P = new COPacket(Packet);
            P.WriteInt16((ushort)(Packet.Length - 8));
            P.WriteInt16((ushort)0x3ec);
            [COLOR="Red"] P.WriteInt32((uint)color.ToArgb());[/COLOR]
            P.WriteInt32(Type);
            P.WriteInt32(MessageID);
            P.WriteInt32(Mesh);
            P.WriteInt32(Mesh);
            P.WriteByte(4);
            P.WriteByte((byte)From.Length);
            P.WriteString(From);
            P.WriteByte((byte)To.Length);
            P.WriteString(To);
            P.Move(1);
            if (Message.Length < 255)
                P.WriteByte((byte)(Message.Length));
            else
                P.WriteByte(255);

            P.WriteString(Message, 255);
            P.Move(6);

            return P;
        }
Code:
        public void LocalMessage(ushort Type, System.Drawing.Color _color, string Message)
        {
            SendPacket(Packets.ChatMessage(MessageID, "SYSTEM", MyChar.Name, Message, Type, MyChar.Mesh, _color));
        }
Code:
LocalMessage(2005, System.Drawing.Color.Red , " message ");
teroareboss1 is offline  
Reply


Similar Threads Similar Threads
[Release] BoI Helper (Chat Cmd's, Speed/Chat/Zoom hack)
03/01/2011 - Battle of the Immortals - 54 Replies
Hi! First of all, i know this will completely destroy the world chat cuz of colored flasching and flying texts everywhere but anyhow i wanted to release this little tool. I like to use some Chat Commands to color my Text when advertising sales or looking for a party etc. but im too lazy to write the commands for that again and again so i wrote this little Tool that generates the codes i need with a few clicks and puts it into the clipboard =) Features: Color: Give your Text a...
P-Server CHAT und GM CHAT /b /n Problem HILFE
11/07/2009 - Metin2 Private Server - 5 Replies
Hallo leute, Also, seit dem ich Updates auf meinem PC insterlliert habe und den PC neugestartet habe, hat mein Server irgendein Problem bekommen. Wenn ich mich einlogge kann ich noch Items erstellen kämpfen usw.. außer in irgendeiner Form Chatten. So zB. wenn ich versuche was zu schreiben kommt der Satz halt nicht über dem Kopf oder im Chat und dann ist alles weg also kann keine Items erstellen und nur Attacken einsetzten MObs kann ich nicht töten, also so als ob das Internet dann weg wäre....
Chat & Guild Chat Farbe ändern
10/29/2007 - RO Exploits, Hacks, Bots & Guides - 14 Replies
Chat & Guild Chat Farbe ändern Also es habe ja schon viele gefragt wie man dies macht, ich habe nun die Antwort ! es ist eigentlich ganz simpel, öffnet mit einem Hex-Editor eure ragexe.exe/sakexe.exe Für Chat Farbe: (es reicht den 1. eintrag den er findet zu ersetzen)



All times are GMT +2. The time now is 10:32.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.