• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

(Sources C++) Monster loot message.

Heyron

Active Member
Joined
Mar 23, 2017
Messages
103
Solutions
1
Reaction score
43
Location
Brazil
I do not understand programming. So I would like to know what to remove in monsters.cpp so that the loot message appears only in the "Server Log" chat, not on the screen.

In Dev-C ++ I found the code responsible for the loot messages, below:
C++:
std::stringstream ss;
    ss << "Loot of " << nameDescription << ": " << corpse->getContentDescription() << ".";
    if(owner->getParty() && message > LOOTMSG_PLAYER)
        owner->getParty()->broadcastMessage((MessageClasses)g_config.getNumber(ConfigManager::LOOT_MESSAGE_TYPE), ss.str());
    else if(message == LOOTMSG_PLAYER || message == LOOTMSG_BOTH)
        owner->sendTextMessage((MessageClasses)g_config.getNumber(ConfigManager::LOOT_MESSAGE_TYPE), ss.str());

But that's where the problem lies. I do not know which line of the following code I should remove.
Remember that I do not want to completely remove the loot message, but rather to have it only printed in the "Server Log" chat.

Link of the pastebin: monsters.cpp.
Thanks for the help.
 
Back
Top