• 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!

Loot msg color on the screan

Rycina

New Member
Joined
Nov 7, 2024
Messages
16
Reaction score
2
Hello! :)
I use distribution:

I started creating a server some time ago, but I'm having a few difficulties.

Could someone help me how to make the loot appear on the screen and make it white, not the strong green one? :D

I also use OTCv8

Thanks :)
 
for console
Code:
\modules\game_console\console.lua
You can edit every color in config.

for "on screen"
Code:
\modules\game_textmessage\textmessage.lua

this line
Code:
[MessageModes.Loot] = MessageSettings.centerGreen

default colors declared can be found here:
Code:
\modules\gamelib\const.lua
 
for console
Code:
\modules\game_console\console.lua
You can edit every color in config.

for "on screen"
Code:
\modules\game_textmessage\textmessage.lua

this line
Code:
[MessageModes.Loot] = MessageSettings.centerGreen

default colors declared can be found here:
Code:
\modules\gamelib\const.lua
WoW! This is a much more elaborate answer than I could have asked for, you are the best! :D

Do you know if I would like loot from mobs to be displayed on the "loot" channel, is it possible on OTCv8 that, for example, the text is white but different items are displayed in different colors? E.g. Tower Shield in blue, Demon Helmet in yellow, etc. I don't know if it's possible (and if it is possible), whether it can be done collectively by adding some attribute to the items that causes them to be displayed in specific colors on the loot channel
 
Last edited:
you need to get the prices from somewhere, array in lua, info in otml, assets, .dat etc...

try with array lua:

if you're wondering why pr is closed, it's because, in redemption they get the information from assets
View attachment 88209
I just saw these changes from mehah/otc what you posted. I made these changes myself and gave the ID of my items from the server but there were no changes in the colors of the game
 
for console
Code:
\modules\game_console\console.lua
You can edit every color in config.

for "on screen"
Code:
\modules\game_textmessage\textmessage.lua

this line
Code:
[MessageModes.Loot] = MessageSettings.centerGreen

default colors declared can be found here:
Code:
\modules\gamelib\const.lua
Well, I think that if I wanted to change the loot message on the screen to white, I should change it:

[MessageModes.Loot] = MessageSettings.centerGreen"
on
[MessageModes.Loot] = MessageSettings.centerWhite,

if my const.lua is:
TextColors = {
red = '#f55e5e', --'#c83200'
orange = '#f36500', --'#c87832'
yellow = '#ffff00', --'#e6c832'
green = '#00EB00', --'#3fbe32'
lightblue = '#5ff7f7',
blue = '#9f9dfd',
--blue1 = '#6e50dc',
--blue2 = '#3264c8',
--blue3 = '#0096c8',
white = '#ffffff', --'#bebebe'
}
 
you need to get the prices from somewhere, array in lua, info in otml, assets, .dat etc...

try with array lua:

if you're wondering why pr is closed, it's because, in redemption they get the information from assets
View attachment 88209
I changed these 2 things as in commit, but after entering the ID from my server, the entire loot is still displayed in green, including gp and cheese

Is this my problem or am I doing something wrong?
 

Attachments

Back
Top