Move green text to channel
#15
Add first edits to: modules/game_textmessage/textmessage.lua
Add the second edit to your bot config.
Add the second edit to your bot config.
-- add these to the MessageSettings array
lootGreen = { color = TextColors.green, consoleTab='Loot'},
textGreen = { color = TextColors.green, consoleTab='Green Text', consoleOption='showInfoMessagesInConsole' },
-- replace the MessageTypes array, MessageModes .Loot and .Look to this
[MessageModes.Look] = MessageSettings.textGreen,
[MessageModes.Loot] = MessageSettings.lootGreen,
--to fix party loot not showing in channel
-- find:
-- if msgtype == MessageSettings.none then return end
--Add this above
if string.find(text, "Loot of") then msgtype = MessageTypes[29] end
local tab = modules.game_console.addChannel(tr('Loot'), 98)
local tab = modules.game_console.addChannel(tr('Green Text'), 99)
01 Jan 2020