Thread: 647 accessmask

Results 1 to 3 of 3
  1. #1 647 accessmask 
    Registered Member
    Join Date
    Jun 2009
    Posts
    638
    Thanks given
    11
    Thanks received
    8
    Rep Power
    36
    requesting the 647 accessmask.

    here is the accessmask method from the client (note: im not sure if this is the correct accessmask method):

    Code:
    	if (Class223_Sub3_Sub5.aClass354_6342 == Class26.currentIncommingPacket) {
    	    int i_283_ = Class274.serverOutBuffer.readUnsignedShortA();
    	    if (i_283_ == 65535)
    		i_283_ = -1;
    	    int i_284_ = Class274.serverOutBuffer.readInt_V2();
    	    int i_285_ = Class274.serverOutBuffer.readInt_V2();
    	    int i_286_ = Class274.serverOutBuffer.readUnsignedLEShortA(2);
    	    Class82.method588(true);
    	    if (i_286_ == 65535)
    		i_286_ = -1;
    	    for (int i_287_ = i_283_; i_287_ <= i_286_; i_287_++) {
    		long l = ((long) i_285_ << 32) + (long) i_287_;
    		Class186_Sub2 class186_sub2 = (Class186_Sub2) Class6.aClass288_3534.method3348(l);
    		Class186_Sub2 class186_sub2_288_;
    		if (class186_sub2 == null) {
    		    if (i_287_ != -1)
    			class186_sub2_288_ = new Class186_Sub2(i_284_, -1);
    		    else
    			class186_sub2_288_ = new Class186_Sub2(i_284_, (Class149.method1258(i_285_).aClass186_Sub2_2779.anInt4423));
    		}
    		else {
    		    class186_sub2_288_ = new Class186_Sub2(i_284_, class186_sub2.anInt4423);
    		    class186_sub2.method1687();
    		}
    		Class6.aClass288_3534.method3351(class186_sub2_288_, l, -1);
    	    }
    	    Class26.currentIncommingPacket = null;
    	    return true;
    	}
     

  2. #2  
    Registered Member

    Join Date
    Oct 2009
    Posts
    149
    Thanks given
    4
    Thanks received
    20
    Rep Power
    97
    Ooh, just ran into neededing this I think... I'll get on it anyway try it out =)
     

  3. #3  
    Registered Member
    Emily's Avatar
    Join Date
    Jul 2010
    Age
    27
    Posts
    623
    Thanks given
    67
    Thanks received
    215
    Rep Power
    271
    Ehh should be something like this:

    client:
    Code:
    if (Class223_Sub3_Sub5.aClass354_6342 == Class26.currentIncommingPacket) {
    	    int range2 = Class274.serverOutBuffer.readUnsignedShortA();
    	    if (range2 == 65535)
    		range2 = -1;
    	    int interfaceSet1 = Class274.serverOutBuffer.readInt_V2();
    	    int interfaceSet2 = Class274.serverOutBuffer.readInt_V2();
    	    int range1 = Class274.serverOutBuffer.readUnsignedLEShortA(2);
    	    Class82.method588(true);
    	    if (range1 == 65535)
    		range1 = -1;
    	    for (int i_287_ = range2; i_287_ <= range1; i_287_++) {
    		long l = ((long) interfaceSet2 << 32) + (long) i_287_;
    		Class186_Sub2 class186_sub2 = (Class186_Sub2) Class6.aClass288_3534.method3348(l);
    		Class186_Sub2 class186_sub2_288_;
    		if (class186_sub2 == null) {
    		    if (i_287_ != -1)
    			class186_sub2_288_ = new Class186_Sub2(interfaceSet1, -1);
    		    else
    			class186_sub2_288_ = new Class186_Sub2(interfaceSet1, (Class149.method1258(interfaceSet2).aClass186_Sub2_2779.anInt4423));
    		}
    		else {
    		    class186_sub2_288_ = new Class186_Sub2(interfaceSet1, class186_sub2.anInt4423);
    		    class186_sub2.method1687();
    		}
    		Class6.aClass288_3534.method3351(class186_sub2_288_, l, -1);
    	    }
    	    Class26.currentIncommingPacket = null;
    	    return true;
    	}
    Server:
    Code:
     public static void sendAccessMask(Player player, int range1, int range2, int interfaceId1,
        		int childId1, int interfaceId2, int childId2) {
        	PacketBuilder pb = new PacketBuilder(57);
        	pb.writeShortA(range2)
        	.writeInt2(interfaceId1 << 16 | childId1)
        	.writeInt2(interfaceId2 << 16 | childId2)
        	.writeLEShortA(range1)
        	.write(player.getChannel());
        }
    Might have mixed up some stuff, but that is very close to it. Gl.
     


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. GE Collect option runscript/accessmask
    By 03data in forum Requests
    Replies: 6
    Last Post: 03-17-2010, 03:01 PM
  2. [554] AccessMask 80% & upgraded outputs
    By lukas265 in forum Configuration
    Replies: 15
    Last Post: 09-02-2009, 01:40 AM
  3. Working out this AccessMask/ClientScript thingy
    By Vastiko in forum RS 503+ Client & Server
    Replies: 7
    Last Post: 07-23-2009, 12:11 PM
  4. The AccessMask thingy
    By Vastiko in forum RS 503+ Client & Server
    Replies: 7
    Last Post: 07-06-2009, 01:32 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
  •