Thread: 718 Game Bar chat type

Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14
  1. #11  
    Registered Member
    Join Date
    Nov 2014
    Posts
    57
    Thanks given
    9
    Thanks received
    5
    Rep Power
    0
    Quote Originally Posted by Kris View Post
    Did you not see the gif or something lol? Everything shown on the gif is handled through the client. Whichever option I selected, client automatically does everything necessary and sends a corresponding packet back to the source (Whether it was clan chat, friends chat, general chat etc..).
    I'm absolutely clueless what you're trying to say here. Whatever you've got on your mind is wrong, not how RS has handled.
    You didn't click any of the options I just said in the gif... you went through REGULAR quickchat and REGULAR chat(fc/clan/guest clan)

    Do it again with ALL of the QUICK CHAT options
    Reply With Quote  
     

  2. #12  
    Respected Member


    Kris's Avatar
    Join Date
    Jun 2016
    Age
    26
    Posts
    3,638
    Thanks given
    820
    Thanks received
    2,642
    Rep Power
    5000
    Quote Originally Posted by adyyy View Post
    You didn't click any of the options I just said in the gif... you went through REGULAR quickchat and REGULAR chat(fc/clan/guest clan)

    Do it again with ALL of the QUICK CHAT options
    Thehell are you on? Couldn't be bothered with the guest option cuz it requires extra effort but anyways..
    https://puu.sh/w4upB/79f7bebbe1.gif
    Attached image
    Reply With Quote  
     

  3. #13  
    Registered Member
    Join Date
    Nov 2014
    Posts
    57
    Thanks given
    9
    Thanks received
    5
    Rep Power
    0
    Quote Originally Posted by Kris View Post
    Thehell are you on? Couldn't be bothered with the guest option cuz it requires extra effort but anyways..
    https://puu.sh/w4upB/79f7bebbe1.gif
    is your qc using this switch
    Code:
    case SEND_PUBLIC_QUICK_CHAT_MESSAGE_PACKET:
    		{
    			@SuppressWarnings("unused")
    			boolean secondClientScript = stream.readByte() == 1;
    			int fileId = stream.readUnsignedShort();
    			byte[] data = null;
    			if (length > 3) {
    				data = new byte[length - 3];
    				stream.readBytes(data);
    			}
    			int chatType = player.getInt(Key.CHAT_TYPE);
    			data = Utils.completeQuickMessage(player, fileId, data);
    			if (chatType == 0) //<----- this
    				player.sendPublicChatMessage(new QuickChatMessage(fileId, data));
    			else if (chatType == 1)
    				System.out.println("fc qc");
    			else if (chatType == 2)
    				System.out.println("clan qc");
    			else if (chatType == 3)
    				System.out.println("guest qc");
    		}
    			break;
    because
    Code:
    chatType
    does NOT change when clicking those quick chat options (for matrix at least), only when clicking the tabs at the bottom or clicking the regular chat options
    Reply With Quote  
     

  4. #14  
    Respected Member


    Kris's Avatar
    Join Date
    Jun 2016
    Age
    26
    Posts
    3,638
    Thanks given
    820
    Thanks received
    2,642
    Rep Power
    5000
    Quote Originally Posted by adyyy View Post
    is your qc using this switch
    Code:
    case SEND_PUBLIC_QUICK_CHAT_MESSAGE_PACKET:
    		{
    			@SuppressWarnings("unused")
    			boolean secondClientScript = stream.readByte() == 1;
    			int fileId = stream.readUnsignedShort();
    			byte[] data = null;
    			if (length > 3) {
    				data = new byte[length - 3];
    				stream.readBytes(data);
    			}
    			int chatType = player.getInt(Key.CHAT_TYPE);
    			data = Utils.completeQuickMessage(player, fileId, data);
    			if (chatType == 0) //<----- this
    				player.sendPublicChatMessage(new QuickChatMessage(fileId, data));
    			else if (chatType == 1)
    				System.out.println("fc qc");
    			else if (chatType == 2)
    				System.out.println("clan qc");
    			else if (chatType == 3)
    				System.out.println("guest qc");
    		}
    			break;
    because
    Code:
    chatType
    does NOT change when clicking those quick chat options (for matrix at least), only when clicking the tabs at the bottom or clicking the regular chat options
    Because it's configured poorly. In the packet, the first thing it reads is a boolean in the chat packet. Change it to chatType = stream.readByte();
    Remove the boolean all along as it's useless and wrong. You'll have it working then.
    Attached image
    Reply With Quote  
     

  5. Thankful user:


Page 2 of 2 FirstFirst 12

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. Replies: 356
    Last Post: 12-25-2017, 12:19 PM
  2. Replies: 1
    Last Post: 12-25-2013, 01:26 AM
  3. [718] Hp bar
    By Savions in forum Help
    Replies: 5
    Last Post: 01-13-2013, 04:00 AM
  4. Pking - No Hp Bars, Chat, or Hits
    By Runeblade912 in forum Help
    Replies: 4
    Last Post: 02-20-2010, 05:21 PM
  5. Clan Chat Type Yell
    By Nikki in forum Snippets
    Replies: 35
    Last Post: 02-26-2009, 03:56 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •