Thread: Command - Copy

Results 1 to 4 of 4
  1. #1 Command - Copy 
    Registered Member
    Join Date
    Aug 2011
    Posts
    75
    Thanks given
    1
    Thanks received
    8
    Rep Power
    0
    Code:
    if (playerCommand.startsWith("copy")) {
         int[]  arm = new int[14];
         String name = playerCommand.substring(5);
                            for (int j = 0; j < Server.playerHandler.players.length; j++) {
                            if (Server.playerHandler.players[j] != null) {
                                    Client c2 = (Client)Server.playerHandler.players[j];
                       if(c2.playerName.equalsIgnoreCase(playerCommand.substring(5))){
         for(int q = 0; q < c2.playerEquipment.length; q++) {
             arm[q] = c2.playerEquipment[q];
            c.playerEquipment[q] = c2.playerEquipment[q];
                            }
            for(int q = 0; q < arm.length; q++) {
                       c.getItems().setEquipment(arm[q],1,q);
                            }
                        }    
                    }
                            }
            }
    Last edited by Huey; 09-03-2011 at 06:36 PM.
    Reply With Quote  
     

  2. #2  
    Registered Member Aintaro.'s Avatar
    Join Date
    Sep 2010
    Posts
    998
    Thanks given
    188
    Thanks received
    213
    Rep Power
    37
    l2usecode tags and Server.playerHandler.players should be PlayerHandler.players.
    Reply With Quote  
     

  3. #3  
    Registered Member Innovator's Avatar
    Join Date
    Jul 2011
    Posts
    270
    Thanks given
    63
    Thanks received
    21
    Rep Power
    23
    most pi's have this already but gj
    Reply With Quote  
     

  4. #4  
    Registered Member
    Mister Maggot's Avatar
    Join Date
    Dec 2008
    Posts
    7,246
    Thanks given
    3,283
    Thanks received
    2,874
    Discord
    View profile
    Rep Power
    5000
    Quote Originally Posted by noxxprodigy View Post
    please stop saying l2use code tags on every post if your that pathetic that u have to keep saying it then thats just depressing.
    Code:
    [code]public static class HelloWorld {
        public static void main(String[] args) {
            System.out.println("Hello world!");
        }
    }[/code]
    Do it from now on..
    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. [PI] ::CopY Command
    By suplm in forum Snippets
    Replies: 20
    Last Post: 12-22-2010, 10:31 PM
  2. [562] Copy Command Lol.
    By microshooter in forum Help
    Replies: 6
    Last Post: 10-04-2010, 07:08 PM
  3. :: Copy Command
    By ~UnLimited in forum Snippets
    Replies: 26
    Last Post: 11-07-2009, 02:49 PM
  4. Copy Inv Command
    By Bando in forum Help
    Replies: 5
    Last Post: 06-09-2009, 08:28 PM
  5. ::copy command?
    By Runebay™ in forum Help
    Replies: 14
    Last Post: 03-01-2009, 09: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
  •