[Release] Colored global,notices source code via DevKit
Discussion on [Release] Colored global,notices source code via DevKit within the SRO PServer Guides & Releases forum part of the SRO Private Server category.
if (strMessageCopy[0] == '&' && strMessageCopy[1] == 'O') { //Light Orange
color = D3DCOLOR(0xffffa500);
strMessageCopy.erase(0, 2);
}
else if (strMessageCopy[0] == '&' && strMessageCopy[1] == 'S') { //Sky blue
color = D3DCOLOR(0xff87CEEB);
strMessageCopy.erase(0, 2);
}
Special thanks to florian0
ithink this a colored global is just for command just like in the code S
when you type S in the Global chat the Color will be Sky Light like
S Test Color
thats what ithink idont know if that true or not
i have no idea about matching itemID via the client only,
Quote:
Originally Posted by omar125
ithink this a colored global is just for command just like in the code S
when you type S in the Global chat the Color will be Sky Light like
S Test Color
thats what ithink idont know if that true or not
yea thats true , same for notices, otherwise you need a filter for such features.
yeah but its need to use the filter for the packets
Quote:
Originally Posted by #KB
i have no idea about matching itemID via the client only,
In the code that everyone posts here, it is done like this, it looks which ItemId is used, and depending on that, a different packet is sent to the server.
Sending different packets to distinguish which global is used, leads you to use a filter and intercept the packets. Instead of that I send an edited message, which for example has the ascii value 20 added to the last position for a red global.
Then when the message is received, you simply check if it is a global message, if so, you look at the last character of the message and set the color of the message.
[Release] Merging HB's Code into the devkit 11/20/2020 - SRO PServer Guides & Releases - 7 Replies Whatsup everyone around here? this is my first release, i am merging @HB's client notification handler into the devkit , so you should be able to create new types of server notification aka 0x300C as HB mentioned.
You can find CPSMisson.cpp, .h Here
Code in .cpp
#define UNIQUE_SPAWN 0x0C05
#define UNIQUE_DIE 0x0C06
#define MOB_CH_TIGERWOMAN 1954
[Release] Blackrogue how to send ingame notices 03/14/2017 - SRO PServer Guides & Releases - 2 Replies Heroo
Maybe you have noticed if you are a filter coder that sending notices and so on is different on Blackrogue files, this is how you do it without getting disconnected/client crashing.
C# Filter side
public void SendNotice(string Message)
{
Packet packet = new Packet(0x3026);
packet.WriteUInt8((byte)7);