Thread: Incorrect tab for chat

Results 1 to 6 of 6
  1. #1 Incorrect tab for chat 
    Registered Member
    Join Date
    Nov 2014
    Posts
    273
    Thanks given
    26
    Thanks received
    8
    Discord
    View profile
    Rep Power
    72
    Hi, I'm am trying to understand what part of code within the clanchat handles where the text goes when you start talking in clan chat. My chat text goes into the All tab and Game tab only.
    Reply With Quote  
     

  2. #2  
    Extreme Donator


    Join Date
    Oct 2010
    Posts
    2,858
    Thanks given
    1,206
    Thanks received
    1,614
    Rep Power
    5000
    void pushMessage has a "type" param that the client then uses in drawChatArea() to draw certain messages in certain tabs.
    [Today 01:29 AM] RSTrials: Nice 0.97 Win/Loss Ratio luke. That's pretty bad.
    [Today 01:30 AM] Luke132: Ok u fucking moron i forgot i could influence misc.random
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Nov 2014
    Posts
    273
    Thanks given
    26
    Thanks received
    8
    Discord
    View profile
    Rep Power
    72
    Quote Originally Posted by Professor Oak View Post
    void pushMessage has a "type" param that the client then uses in drawChatArea() to draw certain messages in certain tabs.
    Do you know which method it is? I'm using Pi base.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Nov 2014
    Posts
    273
    Thanks given
    26
    Thanks received
    8
    Discord
    View profile
    Rep Power
    72
    Quote Originally Posted by Professor Oak View Post
    void pushMessage has a "type" param that the client then uses in drawChatArea() to draw certain messages in certain tabs.
    Is this in client or server side?
    Reply With Quote  
     

  5. #5  
    Community Veteran


    arch337's Avatar
    Join Date
    Sep 2008
    Posts
    2,833
    Thanks given
    187
    Thanks received
    306
    Discord
    View profile
    Rep Power
    770
    Quote Originally Posted by scoping king View Post
    Is this in client or server side?
    Client sided.


    "A fail act is something you do regular, but a dumb act is something you can learn from"
    Spoiler for Problem?:
    Reply With Quote  
     

  6. #6  
    Extreme Donator


    Join Date
    Oct 2010
    Posts
    2,858
    Thanks given
    1,206
    Thanks received
    1,614
    Rep Power
    5000
    Quote Originally Posted by scoping king View Post
    Is this in client or server side?
    Sorry, just saw the title says 474. It's probably a bit different but in standard 317 it sends a regular game message from the server like this:

    Code:
        public void sendMessage(String message) {
            GamePacketBuilder bldr = new GamePacketBuilder(253, Type.VARIABLE);
            bldr.putRS2String(message);
            getPlayer().write(bldr.toPacket());
        }
    And then the client reads it...
    Code:
                case 253:
                    String message = inByteBuffer.getString();
                    pushMessage(message, 0, "");
                    pktType = -1;
                    return true;
    As you can see, it calls pushMessage with the chatType 0. This represents game messages and will cause all messages with this type to go in the game tab. Clan messages have their own type and work the same way.
    [Today 01:29 AM] RSTrials: Nice 0.97 Win/Loss Ratio luke. That's pretty bad.
    [Today 01:30 AM] Luke132: Ok u fucking moron i forgot i could influence misc.random
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. [REQ]New rs tabs for non-renamed
    By Kduffy45 in forum Requests
    Replies: 2
    Last Post: 08-21-2009, 04:40 AM
  2. equipment tab for Galkons Client Base
    By DSscape™ in forum Requests
    Replies: 0
    Last Post: 07-31-2009, 06:12 AM
  3. Logging Date and Time (Useful for Chat, PM's etc.)
    By Simbioitic in forum Snippets
    Replies: 6
    Last Post: 04-28-2009, 02:12 PM
  4. Talking Case (for chat logs)
    By Crash in forum Help
    Replies: 2
    Last Post: 03-20-2009, 01:23 PM
  5. Emote Tab for emulous
    By Mrthunder23 in forum Help
    Replies: 1
    Last Post: 03-13-2009, 06:31 AM
Tags for this Thread

View Tag Cloud

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •