Thread: What in the ....?

Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1 What in the ....? 
    Registered Member

    Join Date
    Oct 2007
    Posts
    2,413
    Thanks given
    254
    Thanks received
    479
    Rep Power
    2785
    Okay I been looking through the packets trying to find some new ones. :woot:
    And I came to see this one,

    Code:
    			if (pktType == 24) {
    				anInt1054 = inStream.method428();
    				if (anInt1054 == tabID) {
    					if (anInt1054 == 3) {
    						tabID = 1;
    					} else {
    						tabID = 3;
    					}
    					needDrawTabArea = true;
    				}
    				pktType = -1;
    				return true;
    			}
    What in the hell, makes NO sense?

    Seems to me like anInt1054 should be a side bar tab ID, but what I'm getting at is the code looks useless?
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Aug 2007
    Posts
    2,395
    Thanks given
    2
    Thanks received
    63
    Rep Power
    558
    ?
    It is checking if the current tab is the same as previous, and if thats true then it checks if it is 3 or 1
    Does make sense i think
    Reply With Quote  
     

  3. #3  
    Registered Member

    Join Date
    Oct 2007
    Posts
    2,413
    Thanks given
    254
    Thanks received
    479
    Rep Power
    2785
    Quote Originally Posted by Jonas++ View Post
    ?
    It is checking if the current tab is the same as previous, and if thats true then it checks if it is 3 or 1
    Does make sense i think
    Well yes that part makes sense, but what dosn't make sense is the use of this .

    Here try and test it,

    Code:
    if(command.startsWith("flash")) {
    	String s = command.substring(6);
    	int i = Integer.parseInt(s);
    	frame24(i);
    }
    Code:
    public void frame24(int i) {
    	outStream.createFrame(24);
    	outStream.writeByteA(i);
    	updateRequired = true;
    	appearanceUpdateRequired = true;
    }
    Reply With Quote  
     

  4. #4  
    Registered Member

    Join Date
    Aug 2007
    Posts
    2,395
    Thanks given
    2
    Thanks received
    63
    Rep Power
    558
    pff idk, the tabID is it like inventory and skills etc ?
    Probally not because you can only do 3 and 1 ?
    Reply With Quote  
     

  5. #5  
    Banned

    Join Date
    Jan 2007
    Age
    30
    Posts
    4,417
    Thanks given
    3
    Thanks received
    105
    Rep Power
    0
    What is this? anInt1054
    Reply With Quote  
     

  6. #6  
    Registered Member

    Join Date
    Oct 2007
    Posts
    2,413
    Thanks given
    254
    Thanks received
    479
    Rep Power
    2785
    Quote Originally Posted by Raid View Post
    What is this? anInt1054
    That's the integer for what the server sends to the client when this packet is used.
    Reply With Quote  
     

  7. #7  
    Registered Member
    Firefight's Avatar
    Join Date
    Aug 2007
    Posts
    1,506
    Thanks given
    6
    Thanks received
    31
    Rep Power
    160
    Wow what the heck. I don't think that makes sense lol
    Back for now...
    Reply With Quote  
     

  8. #8  
    Banned

    Join Date
    Aug 2007
    Posts
    1,666
    Thanks given
    10
    Thanks received
    138
    Rep Power
    0
    Andrew was probably on crack

    Problem solved
    Reply With Quote  
     

  9. #9  
    Teh SQQ
    Guest
    Quote Originally Posted by Sarcasm View Post
    Andrew was probably on crack

    Problem solved
    You know there's alot more programmers than Andrew himself.
    Reply With Quote  
     

  10. #10  
    Registered Member
    hoodlom's Avatar
    Join Date
    Dec 2007
    Age
    29
    Posts
    750
    Thanks given
    0
    Thanks received
    6
    Rep Power
    170
    Just tried it, didn't notice anything
    Reply With Quote  
     

Page 1 of 2 12 LastLast

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
  •