So yea, I haven't seen anyone else ether find this or release it. KiKi was the only person who's server actually had found this in KiMS that I've seen had it so I will tell all of you this.
So what is it? Pictures show so much:
So yea, I'm not sure how to add it on odin, only Titan or Vana.
Vana:
Replace your current showChat function in PlayersPacket.cpp with this one
Code:
void PlayersPacket::showChat(Player* player, vector <Player*> players, char* msg){
Packet packet;
packet.addHeader(SEND_CHAT);
packet.addInt(player->getPlayerid());
if(player->isGM())
packet.addByte(1);
else
packet.addByte(0);
packet.addShort(strlen(msg));
packet.addString(msg, strlen(msg));
packet.sendTo<Player>(player, players, 1);
}
Titan:
Replace your current showChat function in PlayersPacket.cpp with this one
Code:
void PlayersPacket::showChat(Player* player, vector <Player*> players, char* msg){
Packet packet = Packet();
packet.addHeader(0x72);
packet.addInt(player->getPlayerid());
if(player->isGM())
packet.addByte(1);
else
packet.addByte(0);
packet.addShort(strlen(msg));
packet.addString(msg, strlen(msg));
packet.sendTo(player, players, 1);
}
So yea, and there you go, you have GM colored chat.
Credits to CEF~ And Me for Copy and Paste~
So what is it? Pictures show so much:
So yea, I'm not sure how to add it on odin, only Titan or Vana.
Vana:
Replace your current showChat function in PlayersPacket.cpp with this one
Code:
void PlayersPacket::showChat(Player* player, vector <Player*> players, char* msg){
Packet packet;
packet.addHeader(SEND_CHAT);
packet.addInt(player->getPlayerid());
if(player->isGM())
packet.addByte(1);
else
packet.addByte(0);
packet.addShort(strlen(msg));
packet.addString(msg, strlen(msg));
packet.sendTo<Player>(player, players, 1);
}
Titan:
Replace your current showChat function in PlayersPacket.cpp with this one
Code:
void PlayersPacket::showChat(Player* player, vector <Player*> players, char* msg){
Packet packet = Packet();
packet.addHeader(0x72);
packet.addInt(player->getPlayerid());
if(player->isGM())
packet.addByte(1);
else
packet.addByte(0);
packet.addShort(strlen(msg));
packet.addString(msg, strlen(msg));
packet.sendTo(player, players, 1);
}
So yea, and there you go, you have GM colored chat.
Credits to CEF~ And Me for Copy and Paste~