Thread: Clan chat joining chat packet

Results 1 to 9 of 9
  1. #1 Clan chat joining chat packet 
    Encouragin
    Guest
    Description: Even momosherilly was liek, How to get the encrypted join chat stream method. 1 minute ago. I found out its just converting a long to string.

    Difficulty: 1/10

    Assumed Knowledge: Basic Java

    Tested Server: Espeon the Rebirth 508

    Files/Classes Modified: Own class

    Procedure

    Step 1:

    Client structure:

    Code:
    	    if (l != 0L) {
    		Class21.aPacketStream_466.createFrame(98, 42);
    		if (i != -256)
    		    method1650(-102, 125, 108);
    		Class21.aPacketStream_466.writeLong(true, l);
    		Class97.anInt1715++;
    	    }
    Server structure:

    Code:
    readQWord() <- which we convert to a string.
    Handle packet structure:

    Code:
    package org.encouragin.espeon.packethandler;
    
    import org.encouragin.espeon.util.Misc;
    import org.encouragin.espeon.model.player.Client;
    import org.encouragin.espeon.net.packets.Handler;
    
    public class ClanChat implements Handler {
    
    	public void handlePacket(Client client, int packetId, int packetSize) {
    		try {
    			if (client != null) {
    				if (client.getPacket() != null) {
    					switch (packetId) {
    					
    					case 42:
    						String name = Misc.longToString(
    								client.getPacket().readQWord()
    						);
    						System.out.println("Name discovered: " + name);
    						break;
    					}
    				}
    			}
    		} catch (Exception e) {
    			e.printStackTrace();
    		}
    	}
    
    }
    For people who do not have the converting method of long to string.

    Code:
        public static String longToString(long l) {
            if (l <= 0L || l >= 0x5b5b57f8a98a5dd1L) {
                return "invalid_name";
            }
            if (l % 37L == 0L) {
                return "invalid_name";
            }
            int i = 0;
            char ac[] = new char[12];
            while (l != 0L) {
                long l1 = l;
                l /= 37L;
                ac[11 - i++] = validChars[(int)(l1 - l * 37L)];
            }
            return new String(ac, 12 - i, i);
        }
    Credits:
    Encouragin
    Jagex
     

  2. #2  
    im a mouthfull of awesome

    Arcane's Avatar
    Join Date
    Oct 2007
    Age
    29
    Posts
    241
    Thanks given
    33
    Thanks received
    64
    Rep Power
    2732
    good job again lol
     

  3. #3  
    Encouragin
    Guest
    Quote Originally Posted by ½... View Post
    Good job your on a roll! lolz
    you got a 1/2 dick.
     

  4. #4  
    Donator

    Sir Lethal's Avatar
    Join Date
    Mar 2008
    Posts
    2,286
    Thanks given
    9
    Thanks received
    74
    Rep Power
    426
    Good job Encouragin.
     

  5. #5  
    Registered Member

    Join Date
    Jan 2008
    Posts
    2,340
    Thanks given
    20
    Thanks received
    575
    Rep Power
    1202
    Nevor fear, the convert0r is hear.

    The class for Palis 508:

    Code:
    package ploxage.scape.io.packets;
    
    import ploxage.scape.Engine;
    import ploxage.scape.players.Player;
    import ploxage.scape.util.Misc;
    import ploxage.scape.Server;
    
    public class ClanChat implements Packet {
    
        public void handlePacket(Player p, int packetId, int packetSize) {
            if (p == null || p.stream == null) {
                return;
            }
            switch(packetId) {
    
    	case 42:
    		String username = Misc.longToString(p.stream.readQWord());
    		Misc.println("Name discovered: " + username);
    	break;
    
            default:
            break;
            }
        }
    }
     

  6. #6  
    ( ͡° ͜ʖ ͡°)
    Edgeville's Avatar
    Join Date
    Nov 2007
    Posts
    2,453
    Thanks given
    80
    Thanks received
    428
    Rep Power
    2589
    Great job, Once again

    Attached image
     

  7. #7  
    Registered Member

    Join Date
    Sep 2008
    Posts
    2,156
    Thanks given
    3
    Thanks received
    2
    Rep Power
    182
    wow.... just wow.... lol
     

  8. #8  
    Registered Member
    Abyssal head's Avatar
    Join Date
    May 2008
    Age
    32
    Posts
    1,255
    Thanks given
    14
    Thanks received
    22
    Rep Power
    238
    sweet

     

  9. #9  
    We be steady Mobbin'

    Stefan's Avatar
    Join Date
    Sep 2008
    Age
    29
    Posts
    2,380
    Thanks given
    38
    Thanks received
    23
    Rep Power
    1988
    this is hella sweet mate gj!!!
    People still use this site?
     


Thread Information
Users Browsing this Thread

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


User Tag List

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