Thread: [non]Friend list sorting on offline/online

Results 1 to 5 of 5
  1. #1 [non]Friend list sorting on offline/online 
    Registered Member
    Join Date
    Nov 2009
    Posts
    3,056
    Thanks given
    113
    Thanks received
    838
    Rep Power
    740
    Im pretty sure there shud be another way to do this, and i never understood why the client didnt sort the online/offline without any edits. So i wrote this code which sorts it out.

    Code:
    		int freeSlot = 0;
    		for(int z = 0; z < anInt899; z++) {
    			freeSlot = 0;
    			for(int z1= 0; z1 < anInt899; z1++) {
    				if(anIntArray826[z1] == 10) {
    					freeSlot += 1;
    				} else {
    					break;
    				}
    			}
    			if(anIntArray826[z] == 10) {
    				int old826 = anIntArray826[freeSlot];
    				long old955 = aLongArray955[freeSlot];
    				String old1082 = aStringArray1082[freeSlot];
    
    				anIntArray826[freeSlot] = anIntArray826[z];
                        		aLongArray955[freeSlot] = aLongArray955[z];
                        		aStringArray1082[freeSlot] = aStringArray1082[z];
    
    				anIntArray826[z] = old826;
                        		aLongArray955[z] = old955;
                        		aStringArray1082[z] = old1082;
    			}
    		}
    shud be placed under:
    Code:
                    if(s7 != null && anInt899 < 200)
                    {
                        aLongArray955[anInt899] = l4;//friendName as long
                        aStringArray1082[anInt899] = s7;//friendName
                        anIntArray826[anInt899] = i18;//friendStatus(10 = online, 1 is offline)
    
                        anInt899++;
                        aBoolean1153 = true;
                    }
    in client.java
    Reply With Quote  
     

  2. #2  
    Registered Member
    thim slug's Avatar
    Join Date
    Nov 2010
    Age
    25
    Posts
    4,142
    Thanks given
    1,079
    Thanks received
    1,137
    Discord
    View profile
    Rep Power
    5000
    I'm not sure many people use non renamed still, do they?
    Reply With Quote  
     

  3. #3  
    Banned
    Join Date
    Aug 2011
    Age
    26
    Posts
    39
    Thanks given
    0
    Thanks received
    1
    Rep Power
    0
    A course they do silly willy :]

    On topic: Thanks for this.
    Reply With Quote  
     

  4. Thankful user:


  5. #4  
    Registered Member
    Polaroid's Avatar
    Join Date
    Jul 2009
    Posts
    936
    Thanks given
    1,088
    Thanks received
    63
    Rep Power
    94
    Quote Originally Posted by The Abstract Fish View Post
    I'm not sure many people use non renamed still, do they?
    Yes?
    Reply With Quote  
     

  6. #5  
    Banned
    Join Date
    Aug 2011
    Age
    26
    Posts
    39
    Thanks given
    0
    Thanks received
    1
    Rep Power
    0
    Quote Originally Posted by Polaroid View Post
    Yes?
    Hey how do we thank post? I have been away from rune-server for a while since I got banned on my main.
    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. Friend list and friend chat sprite
    By Coontown in forum Requests
    Replies: 6
    Last Post: 08-10-2011, 05:44 AM
  2. Replies: 0
    Last Post: 05-02-2010, 09:49 PM
  3. Replies: 4
    Last Post: 05-02-2010, 01:27 PM
  4. Replies: 24
    Last Post: 08-12-2009, 01:06 AM
  5. Replies: 6
    Last Post: 04-17-2009, 10:04 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •