Hello.
So, I know that i can change the color of the "OnLook" by editing this function:
Here:
But how can I make it have two colors in the same output?
I thought of using twice the "player->sendTextMessage(MSG_INFO_DESCR, ss.str());", but it would come in two different messages.
So maybe I need something like this? I'm not sure
I'm using tfs 0.3.7 and otclient
So, I know that i can change the color of the "OnLook" by editing this function:
C++:
bool Game::playerLookAt(uint32_t playerId, const Position& pos, uint16_t spriteId, int16_t stackpos)
C++:
player->sendTextMessage(MSG_INFO_DESCR, ss.str());
I thought of using twice the "player->sendTextMessage(MSG_INFO_DESCR, ss.str());", but it would come in two different messages.
So maybe I need something like this? I'm not sure
C++:
if (ss.find("weigh")) {
// set only that line to red
}
I'm using tfs 0.3.7 and otclient