• 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.0 Channel Message Type

ATT3

Intermediate OT User
Joined
Sep 22, 2010
Messages
512
Reaction score
100
I've been trying to create channel for loots only.
The only problem I am facing at the moment: I would like to send the message to the screen too.

https://github.com/otland/forgottenserver/blob/master/src/monsters.cpp#L171
I've replaced:
owner->sendTextMessage(MESSAGE_INFO_DESCR, ss.str());
with:
owner->sendChannelMessage("", ss.str(), TALKTYPE_CHANNEL_Y, CHANNEL_LOOT);
Is it possible to send "MESSAGE_INFO_DESCR" with"sendChannelMessage"?

Probably not without creating "sendLootMessage" here?
https://github.com/otland/forgotten...144ba7c250eb46e0a56c02487e6/src/player.h#L746

I have no experience with C++, so if somebody knows how to make it happen, I would love if you could include a slight explanation.

Thanks :)
 
Back
Top