How get color of text in journal?

Ask for help

Moderators: Murderator+, Murderator

Post Reply
mord
Posts: 6
Joined: 2010-07-14 22:16:02

How get color of text in journal?

Post by mord »

Hello, please tell me how i can get color of text in journal.
Mirage
Posts: 2802
Joined: 2009-05-28 09:58:28
Location: Иваново
Contact:

Re: How get color of text in journal?

Post by Mirage »

color = uo.GetColor(uo.JournalSerial(uo.InJournal("")-1)) ;последняя фраза

color = uo.GetColor(uo.JournalSerial(uo.InJournal("какаято фраза")))
mord
Posts: 6
Joined: 2010-07-14 22:16:02

Re: How get color of text in journal?

Post by mord »

Thank you.
mord
Posts: 6
Joined: 2010-07-14 22:16:02

Re: How get color of text in journal?

Post by mord »

It returns color of object which generated the text instead of color of text :cry:
Mirage
Posts: 2802
Joined: 2009-05-28 09:58:28
Location: Иваново
Contact:

Re: How get color of text in journal?

Post 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:
mord
Posts: 6
Joined: 2010-07-14 22:16:02

Re: How get color of text in journal?

Post by mord »

Uo.JournalColor() is exactly i looked for. Thank You :)
Post Reply