Page 1 of 1

Chat colors

Posted: Sun Feb 19, 2017 5:14 pm
by velocity

Syntax: Select all

import colors
from messages import SayText

SayText('{}Hello'.format(colors.WHITE)).send()


Simple code and it works, but how do I avoid FFF000F in console?

Re: Chat colors

Posted: Sun Feb 19, 2017 6:45 pm
by Kill
velocity wrote:

Syntax: Select all

import colors
from messages import SayText

SayText('{}Hello'.format(colors.WHITE)).send()


Simple code and it works, but how do I avoid FFF000F in console?



Try using sayText2.

Re: Chat colors

Posted: Sun Feb 19, 2017 7:03 pm
by velocity
Not really a solution, by not writing anything in console at all

Re: Chat colors

Posted: Sun Feb 19, 2017 7:58 pm
by Kill
velocity wrote:Not really a solution, by not writing anything in console at all


But does it write in chat in colors?

Re: Chat colors

Posted: Sun Feb 19, 2017 8:22 pm
by velocity
Sure

Re: Chat colors

Posted: Mon Feb 20, 2017 6:47 pm
by Ayuto
You can send the colored message using SayText2 and then send the uncolored message via core.echo_console().

Re: Chat colors

Posted: Mon Feb 20, 2017 11:06 pm
by velocity
:(