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:
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.
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.