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