Quote:
Originally Posted by sigel123456789
i was trying to change the title color but it does change it for me only
|
Haha that's how it's works!
You'll be changing your "graphics" but only for your client.
You need the server communication otherwise it will looks like you're hacking your client.
You'll have to know a little bit about C++ & C# (C##?)
to make it work as it should be by building some kind protocol using a filter.
But.. What's a protocol? The way a program interacts with another one.
1. Client ask to the server (Sending a custom MsgStreamBuffer/packet for it)
2. Server (Filter) reads the packet info (don't let it pass to gameserver)
3. Server check all is correct and will reply sending a custom packet to people involved; you and all players
with the same region ID to be short.
4. Client will receive that custom packet/MsgStreamBuffer and will proceed to change the title attributes from entity id specified
If you plan to make the protocol you'll be ending creating this methods for making things easier:
Client.SendTitleColorRequest(
byte ColorIndex) : Send a packet with the color position that you wants to use
Server.ReadTitleColorRequest(
Packet p) : Check client request about titles and reply to the user if there is an error or success while you send an update to all players around
Server.CreateUpdateTitleColorPacket(
uint PlayerID,
Color TitleColor) : Create and returns a packet to be sent to the client to update the player title color
Server.SendUpdateToPeopleAtRegion(
int Regions[],
Packet p): Sends a packet to the people on the specified regions
Client.ReadTitleColorUpdate(
MsgStreamBuffer p) : Reads the packet and updates the title color from Player ID specified
Note: I'm trying to be short, limiting to Color only.
You should build a title protocol instead colors only, but I'm just giving you the main idea.