Page 1 of 1

How get color of text in journal?

Posted: 2010-07-14 22:31:30
by mord
Hello, please tell me how i can get color of text in journal.

Re: How get color of text in journal?

Posted: 2010-07-15 13:21:34
by Mirage
color = uo.GetColor(uo.JournalSerial(uo.InJournal("")-1)) ;последняя фраза

color = uo.GetColor(uo.JournalSerial(uo.InJournal("какаято фраза")))

Re: How get color of text in journal?

Posted: 2010-07-15 16:58:21
by mord
Thank you.

Re: How get color of text in journal?

Posted: 2010-07-15 21:38:57
by mord
It returns color of object which generated the text instead of color of text :cry:

Re: How get color of text in journal?

Posted: 2010-07-15 23:18:48
by Mirage

Code: Select all

sub zzzzzzzz()
var i
uo.textclear()
for i=10 to 0 step -1
uo.textprint(uo.JournalSerial(i)+"| "+uo.JournalColor(i)+"| "+uo.Journal(i))
next
uo.textopen()
end sub
:mrgreen:

Re: How get color of text in journal?

Posted: 2010-07-16 02:07:29
by mord
Uo.JournalColor() is exactly i looked for. Thank You :)