Thread: [PI]Custom Friend list option(how do i make the buttons work?)

Results 1 to 8 of 8
  1. #1 [PI]Custom Friend list option(how do i make the buttons work?) 
    Registered Member
    Ninja assassin's Avatar
    Join Date
    Oct 2008
    Posts
    1,961
    Thanks given
    217
    Thanks received
    115
    Rep Power
    77
    I added this costume option into friend list and made it only visible for MOD+ in client sided.

    How do i make those options work server sided?


    It works 100% perfect if i add this code client sided:

    Code:
            if (l == 638)
            {
                String s3 = aStringArray1199[i];
                int k2 = s3.indexOf("@[email protected]");
                if (k2 != -1)
                {
                    long l4 = Class50.method583(s3.substring(k2 + 5).trim());
                    int k3 = -1;
                    for (int i4 = 0; i4 < anInt899; i4++)
                    {
                        if (aLongArray955[i4] != l4)
                            continue;
                        k3 = i4;
                        break;
                    }
                    String victim = aStringArray1082[k3];
                    //int commandLength = victimComplete.length() + victim.length();
                    aString887 = "::xteletome " + victim + "";
                    sendPacket(103);
    
                }
            }
            if (l == 637)
            {
                String s3 = aStringArray1199[i];
                int k2 = s3.indexOf("@[email protected]");
                if (k2 != -1)
                {
                    long l4 = Class50.method583(s3.substring(k2 + 5).trim());
                    int k3 = -1;
                    for (int i4 = 0; i4 < anInt899; i4++)
                    {
                        if (aLongArray955[i4] != l4)
                            continue;
                        k3 = i4;
                        break;
                    }
                    String victim = aStringArray1082[k3];
                    //int commandLength = victimComplete.length() + victim.length();
                    aString887 = "::xteleto " + victim + "";
                    sendPacket(103);
    
                }
            }
    		        if (l == 643)
            {
                String s3 = aStringArray1199[i];
                int k2 = s3.indexOf("@[email protected]");
                if (k2 != -1)
                {
                    long l4 = Class50.method583(s3.substring(k2 + 5).trim());
                    int k3 = -1;
                    for (int i4 = 0; i4 < anInt899; i4++)
                    {
                        if (aLongArray955[i4] != l4)
                            continue;
                        k3 = i4;
                        break;
                    }
                    String victim = aStringArray1082[k3];
                    //int commandLength = victimComplete.length() + victim.length();
                    aString887 = "::unmute " + victim + "";
                    sendPacket(103);
    
                }
            }
    				        if (l == 642)
            {
                String s3 = aStringArray1199[i];
                int k2 = s3.indexOf("@[email protected]");
                if (k2 != -1)
                {
                    long l4 = Class50.method583(s3.substring(k2 + 5).trim());
                    int k3 = -1;
                    for (int i4 = 0; i4 < anInt899; i4++)
                    {
                        if (aLongArray955[i4] != l4)
                            continue;
                        k3 = i4;
                        break;
                    }
                    String victim = aStringArray1082[k3];
                    //int commandLength = victimComplete.length() + victim.length();
                    aString887 = "::mute " + victim + "";
                    sendPacket(103);
    
                }
            }
    				        if (l == 645)
            {
                String s3 = aStringArray1199[i];
                int k2 = s3.indexOf("@[email protected]");
                if (k2 != -1)
                {
                    long l4 = Class50.method583(s3.substring(k2 + 5).trim());
                    int k3 = -1;
                    for (int i4 = 0; i4 < anInt899; i4++)
                    {
                        if (aLongArray955[i4] != l4)
                            continue;
                        k3 = i4;
                        break;
                    }
                    String victim = aStringArray1082[k3];
                    //int commandLength = victimComplete.length() + victim.length();
                    aString887 = "::unban " + victim + "";
                    sendPacket(103);
    
                }
            }
    				        if (l == 644)
            {
                String s3 = aStringArray1199[i];
                int k2 = s3.indexOf("@[email protected]");
                if (k2 != -1)
                {
                    long l4 = Class50.method583(s3.substring(k2 + 5).trim());
                    int k3 = -1;
                    for (int i4 = 0; i4 < anInt899; i4++)
                    {
                        if (aLongArray955[i4] != l4)
                            continue;
                        k3 = i4;
                        break;
                    }
                    String victim = aStringArray1082[k3];
                    //int commandLength = victimComplete.length() + victim.length();
                    aString887 = "::ban " + victim + "";
                    sendPacket(103);
    
                }
            }
    				        if (l == 647)
            {
                String s3 = aStringArray1199[i];
                int k2 = s3.indexOf("@[email protected]");
                if (k2 != -1)
                {
                    long l4 = Class50.method583(s3.substring(k2 + 5).trim());
                    int k3 = -1;
                    for (int i4 = 0; i4 < anInt899; i4++)
                    {
                        if (aLongArray955[i4] != l4)
                            continue;
                        k3 = i4;
                        break;
                    }
                    String victim = aStringArray1082[k3];
                    //int commandLength = victimComplete.length() + victim.length();
                    aString887 = "::unip " + victim + "";
                    sendPacket(103);
    
                }
            }
    				        if (l == 646)
            {
                String s3 = aStringArray1199[i];
                int k2 = s3.indexOf("@[email protected]");
                if (k2 != -1)
                {
                    long l4 = Class50.method583(s3.substring(k2 + 5).trim());
                    int k3 = -1;
                    for (int i4 = 0; i4 < anInt899; i4++)
                    {
                        if (aLongArray955[i4] != l4)
                            continue;
                        k3 = i4;
                        break;
                    }
                    String victim = aStringArray1082[k3];
                    //int commandLength = victimComplete.length() + victim.length();
                    aString887 = "::ipban " + victim + "";
                    sendPacket(103);
    
                }
            }
    				        if (l == 648)
            {
                String s3 = aStringArray1199[i];
                int k2 = s3.indexOf("@[email protected]");
                if (k2 != -1)
                {
                    long l4 = Class50.method583(s3.substring(k2 + 5).trim());
                    int k3 = -1;
                    for (int i4 = 0; i4 < anInt899; i4++)
                    {
                        if (aLongArray955[i4] != l4)
                            continue;
                        k3 = i4;
                        break;
                    }
                    String victim = aStringArray1082[k3];
                    //int commandLength = victimComplete.length() + victim.length();
                    aString887 = "::kick " + victim + "";
                    sendPacket(103);
    
                }
            }
    Btc: 1tpWTbAznzWYh6YpoUJeQ3MDVK56GGJ
    Reply With Quote  
     

  2. #2  
    Officially Retired


    Join Date
    Oct 2007
    Age
    27
    Posts
    5,456
    Thanks given
    558
    Thanks received
    122
    Rep Power
    1364
    i think you need to get the button id.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Ninja assassin's Avatar
    Join Date
    Oct 2008
    Posts
    1,961
    Thanks given
    217
    Thanks received
    115
    Rep Power
    77
    Quote Originally Posted by Stew™ View Post
    i think you need to get the button id.
    Yh how do i find them and where i do process them, i mean like what .java file ClickingButtons.java?
    Btc: 1tpWTbAznzWYh6YpoUJeQ3MDVK56GGJ
    Reply With Quote  
     

  4. #4  
    Respected Member


    Josh's Avatar
    Join Date
    Aug 2008
    Age
    27
    Posts
    2,863
    Thanks given
    6
    Thanks received
    1,342
    Rep Power
    5000
    You can't make them work server sided, they're actions that are processed in the client. The only thing you need server side is the commands you're sending.
    Reply With Quote  
     

  5. #5  
    Howdy

    gold_fish's Avatar
    Join Date
    Nov 2010
    Posts
    1,062
    Thanks given
    144
    Thanks received
    147
    Rep Power
    107
    Nvm ^
    Reply With Quote  
     

  6. #6  
    Community Veteran

    Dexter Morgan's Avatar
    Join Date
    Nov 2008
    Age
    16
    Posts
    4,364
    Thanks given
    1,027
    Thanks received
    703
    Discord
    View profile
    Rep Power
    2991
    Like Josh said. There are options sending a packet and there's no need to do it server sided if it works on the client correctly and how you want it.

    But I show you a way of editing server side...

    You see, it sends a packet and a string value
    Code:
                    aString887 = "::xteletome " + victim + "";
                    sendPacket(103);
    103 is commands packet and it's applying ::xteletome commands.
    If you want to edit it server side then you can add code to the command server side but clicking the buttons wont work server side.
    [Only registered and activated users can see links. ]
    Quote Originally Posted by UberNation View Post
    Did you update the quantum network sockets to match the polarity of the wilderness counter levels in the Boolean that divides the wilderness level by zero?
    Reply With Quote  
     

  7. #7  
    Registered Member
    Ninja assassin's Avatar
    Join Date
    Oct 2008
    Posts
    1,961
    Thanks given
    217
    Thanks received
    115
    Rep Power
    77
    thankas ill just add it server side!
    Btc: 1tpWTbAznzWYh6YpoUJeQ3MDVK56GGJ
    Reply With Quote  
     

  8. #8  
    Registered Member Gacoa's Avatar
    Join Date
    Sep 2010
    Posts
    44
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    click the buttons on ur server and look on ur cmd it should say actionbutton: #### go into clicking buttons and replace old friends list button with the new one.
    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. [BS] how to make this buttons work
    By lumb0pk3r in forum Help
    Replies: 3
    Last Post: 02-24-2010, 03:00 AM
  2. Friend list add friend button
    By Pb600 in forum Help
    Replies: 11
    Last Post: 08-03-2009, 03:23 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
  •