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

KaAmiL43

New Member
Joined
Aug 2, 2008
Messages
30
Reaction score
2
Hello. How I can gain this window (function):
aaaqne.png

In TFS? Like window: doPlayerPopupFYI(cid, message)
 
source edit :p

This is actually a "New Channel" window, the client has been edited to remove unnecessary text, and the server sends the towns to the player in the selection instead of channels. :p
 
yeye, chat.cpp parses channels.xml for available channels.

you need to find how channel list is called, and then make a new "function" to call it, but with different result.
 
I think I found something here: Forgotten Server - source
Right:
PHP:
void ProtocolGame::sendChannelsDialog()
{
        NetworkMessage_ptr msg = getOutputBuffer();
        if(msg)
        {
                TRACK_MESSAGE(msg);
                msg->AddByte(0xAB);
                ChannelList list = g_chat.getChannelList(player);
                msg->AddByte(list.size());
                for(ChannelList::iterator it = list.begin(); it != list.end(); ++it)
                {
                        if(ChatChannel* channel = (*it))
                        {
                                msg->AddU16(channel->getId());
                                msg->AddString(channel->getName());
                        }
                }
        }
}
Can help me someone?
 
Back
Top