Notice Color

03/16/2019 17:29 hancook1st#1
i'm trying to make a new byte in this opcode
PHP Code:
            Packet packet = new Packet(0x3026);
            
packet.WriteUInt8((byte)7);
            
packet.WriteAscii(Message);
            
this.ServerSecurity.Send(packet);
            
Send(false); 

Here [(byte)7] give pink color notice
how can make for example [(byte)20] green color
I have followed an explanation of florian0
[Only registered and activated users can see links. Click Here To Register...]
but I could not do it.
can anyone help me about it ??
03/17/2019 16:04 chipno0p#2
The color notice you can edit by debug client with ollydbg or make a dll to do it for you
03/17/2019 18:47 hancook1st#3
Quote:
Originally Posted by chipno0p View Post
The color notice you can edit by debug client with ollydbg or make a dll to do it for you
Thanks for reply
I'm trying to create dll but I failed can u help me to do it ?
03/18/2019 03:09 sarkoplata#4
You can use the [Only registered and activated users can see links. Click Here To Register...] It has a built-in function WriteChat which does what you're asking for.
All you have to do is to hook the ingame packets, (0x3026 in your case) which can be easily done with SroPP as well, just check the thread.
If the type-byte is 20, process the packet yourself and don't relay it to the client. Show your own message, with your own color.
03/18/2019 05:17 hancook1st#5
Quote:
Originally Posted by sarkoplata View Post
You can use the [Only registered and activated users can see links. Click Here To Register...] It has a built-in function WriteChat which does what you're asking for.
All you have to do is to hook the ingame packets, (0x3026 in your case) which can be easily done with SroPP as well, just check the thread.
If the type-byte is 20, process the packet yourself and don't relay it to the client. Show your own message, with your own color.
Thanks man i will try it

Edit :
i created dll now
but i can't call function to change color can u help me ?

Edit :
Now Work fine but only in Whisper
i need to make it for notice
PHP Code:
SroPP::Game::WriteChat(SroPP::ChatGroup::NoticeL"Hello World !!."0xFF00D8D8); 
03/22/2019 13:40 hancook1st#6
Request #Close