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

Lua Loot Message

Serralinha

OT OWNER
Joined
Mar 7, 2010
Messages
46
Reaction score
1
why my loot message is orange and apears in Local Chat?
I Want to change to Green Message in Server Log
 
Code:
if (owner) {
            std::eek:stringstream ss;
            ss << "Loot of " << nameDescription << ": " << corpse->getContentDescription();

            if (owner->getParty()) {
                owner->getParty()->broadcastPartyLoot(ss.str());
            } else {
                owner->sendTextMessage(MESSAGE_STATUS_CONSOLE_ORANGE, ss.str());
            }
        }
 
Code:
if (owner) {
            std::eek:stringstream ss;
            ss << "Loot of " << nameDescription << ": " << corpse->getContentDescription();

            if (owner->getParty()) {
                owner->getParty()->broadcastPartyLoot(ss.str());
            } else {
                owner->sendTextMessage(MESSAGE_STATUS_CONSOLE_ORANGE, ss.str());
            }
        }
change this
Code:
owner->sendTextMessage(MESSAGE_STATUS_CONSOLE_ORANGE, ss.str());
for this:
Code:
owner->sendTextMessage(MESSAGE_LOOT, ss.str());
compile, and tell me the results.
 
Back
Top