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

[TFS 1.5] REMOVE MESSAGE LOOT

Shoorkill

Member
Joined
Dec 17, 2018
Messages
126
Reaction score
21
How do I make the loot message that drops from monsters only appear in the servlog, and not on the central screen?
 
Solution
data/events/scripts/monster.lua (If it is not there go to data/scripts/eventcallback/monster/onDrooploot.lua)

function Monster:eek:nDropLoot(corpse)
by default it will be using MESSAGE_INFO_DESCR

in the part of
Code:
player:sendTextMessage(MESSAGE_INFO_DESCR, text)
to MESSAGE_INFO_DESCR change it to MESSAGE_EVENT_DEFAULT
------------------------------------------------------------
To give you an idea of each one.

Lua:
MESSAGE_STATUS_CONSOLE_RED = 18, /*Red message in the console*/
MESSAGE_EVENT_ORANGE = 19, /*Orange message in the console*/
MESSAGE_STATUS_CONSOLE_ORANGE = 20,  /*Orange message in the console*/
MESSAGE_STATUS_WARNING = 21, /*Red message in game window and in the console*/...
data/events/scripts/monster.lua (If it is not there go to data/scripts/eventcallback/monster/onDrooploot.lua)

function Monster:eek:nDropLoot(corpse)
by default it will be using MESSAGE_INFO_DESCR

in the part of
Code:
player:sendTextMessage(MESSAGE_INFO_DESCR, text)
to MESSAGE_INFO_DESCR change it to MESSAGE_EVENT_DEFAULT
------------------------------------------------------------
To give you an idea of each one.

Lua:
MESSAGE_STATUS_CONSOLE_RED = 18, /*Red message in the console*/
MESSAGE_EVENT_ORANGE = 19, /*Orange message in the console*/
MESSAGE_STATUS_CONSOLE_ORANGE = 20,  /*Orange message in the console*/
MESSAGE_STATUS_WARNING = 21, /*Red message in game window and in the console*/
MESSAGE_EVENT_ADVANCE = 22, /*White message in game window and in the console*/
MESSAGE_EVENT_DEFAULT = 23, /*White message at the bottom of the game window and in the console*/
MESSAGE_STATUS_DEFAULT = 24, /*White message at the bottom of the game window and in the console*/
MESSAGE_INFO_DESCR = 25, /*Green message in game window and in the console*/
MESSAGE_STATUS_SMALL = 26, /*White message at the bottom of the game window"*/
MESSAGE_STATUS_CONSOLE_BLUE = 27, /*FIXME Blue message in the console*/
 
Solution
Back
Top