• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Possible to change one words colour in a console message?

Zt0ffe

New Member
Joined
Sep 26, 2008
Messages
341
Reaction score
4
Location
Sweden
Hello!

I wanted to somehow highlight ONE word of a text sent in the consol window.

When some one order something in the shop on the site:

Code:
doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, 'You received >> '.. add_item_name ..' << from OTS shop.')

I wanted the add_item_name to be a different color. Is it possible?
 
Try this different types

Lua:
MESSAGE_STATUS_CONSOLE_RED
MESSAGE_EVENT_ORANGE
MESSAGE_STATUS_CONSOLE_ORANGE
MESSAGE_STATUS_WARNING
MESSAGE_EVENT_ADVANCE 
MESSAGE_EVENT_DEFAULT
MESSAGE_STATUS_DEFAULT
MESSAGE_INFO_DESCR
MESSAGE_STATUS_SMALL
MESSAGE_STATUS_CONSOLE_BLUE
 
Yeah, that would be indeed a nice idea, and it can be done for sure, at least the same way that you can highlight words in npc messages:

bxtteujdnpc_talk.jpg


The problem is that I don't know if doPlayerSendTextMessage() function allows that behavior, but I guess you could always make it through editing sources.
 
Back
Top