Thread: [PI] Reset Commands.java

Page 1 of 3 123 LastLast
Results 1 to 10 of 21
  1. #1 [PI] Reset Commands.java 
    Registered Member
    Join Date
    Jun 2010
    Posts
    296
    Thanks given
    2
    Thanks received
    2
    Rep Power
    37
    Basically could someone tell me the code for commands.java

    ::resetdef
    ::resetatk
    ::resetall

    yes i have allready tried the npc reseter but i had issues with it colliding with the blackjack npcs chat.
    Reply With Quote  
     

  2. #2  
    Donator

    Jason's Avatar
    Join Date
    Aug 2009
    Posts
    6,092
    Thanks given
    2,402
    Thanks received
    2,823
    Rep Power
    4550
    Use the search bar, it's actually quite useful
    Reply With Quote  
     

  3. #3  
    Registered Member
    Gator God's Avatar
    Join Date
    Aug 2010
    Posts
    260
    Thanks given
    15
    Thanks received
    26
    Rep Power
    99
    Code:
            if (playerCommand.equalsIgnoreCase("resetdef")) {
                            c.playerLevel[1] = 1;
                            c.playerXP[1] = 0;
                            c.getPA().refreshSkill(1);
                            c.sendMessage("You reset your defence level");
                    }
    Just whipped it up, probably wont work.

    Btw thats for def, I'm sure you can work out the others with that.
    Quote Originally Posted by H A W X;
    [IMG]C:\Users\R\Desktop\Rune-Server\Pictures[/IMG]
    :trollface:
    Reply With Quote  
     

  4. #4  
    Registered Member sketzo's Avatar
    Join Date
    Jul 2006
    Age
    32
    Posts
    424
    Thanks given
    19
    Thanks received
    15
    Rep Power
    34
    Code:
    if (playerCommand.equalsIgnoreCase("resetdef")) {
    				c.playerXP[1]=0;
    				c.playerLevel[1] = 1;
    				c.getPA().refreshSkill(1);
    				
    			}
    something like that
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Jan 2011
    Posts
    12
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Quote Originally Posted by sketzo View Post
    Code:
    if (playerCommand.equalsIgnoreCase("resetdefence")) {
    				c.playerXP[1]=0;
    				c.getPA().refreshSkill(1);
    				for (int j = 0; j < c.playerEquipment.length; j++) {
    					if (c.playerEquipment[j] > 0) {
    						c.sendMessage("Take off your items first!");
    						return;
    					}
    				}
    			}
    something like that
    Thats way better method then the other guys. Although both work, the First one you would only have 1/99 for defense o.o, maybe the first method may not work
    Reply With Quote  
     

  6. #6  
    Registered Member
    Gator God's Avatar
    Join Date
    Aug 2010
    Posts
    260
    Thanks given
    15
    Thanks received
    26
    Rep Power
    99
    Quote Originally Posted by Reggie View Post
    Thats way better method then the other guys. Although both work, the First one you would only have 1/99 for defense o.o, maybe the first method may not work
    True that, forgot xp. Though I personally don't like your way.
    Quote Originally Posted by H A W X;
    [IMG]C:\Users\R\Desktop\Rune-Server\Pictures[/IMG]
    :trollface:
    Reply With Quote  
     

  7. #7  
    Registered Member sketzo's Avatar
    Join Date
    Jul 2006
    Age
    32
    Posts
    424
    Thanks given
    19
    Thanks received
    15
    Rep Power
    34
    reggie i edited it.. altough you can add the Equipment thing back.

    Anyway.. atk,str,def:

    Code:
    if (playerCommand.equalsIgnoreCase("resetatk")) {
    				for (int j = 0; j < c.playerEquipment.length; j++) {
    					if (c.playerEquipment[j] > 1) {
    						c.sendMessage("Take off your items first!");
    						return;
    					}
    				}
    				c.playerXP[0]=0;
    				c.playerLevel[0] = 1;
    				c.getPA().refreshSkill(0);
    			}
    			if (playerCommand.equalsIgnoreCase("resetstr")) {
    				for (int j = 0; j < c.playerEquipment.length; j++) {
    					if (c.playerEquipment[j] > 1) {
    						c.sendMessage("Take off your items first!");
    						return;
    					}
    				}
    				c.playerXP[2]=0;
    				c.playerLevel[2] = 1;
    				c.getPA().refreshSkill(2);	
    			}
    			if (playerCommand.equalsIgnoreCase("resetdef")) {
    				for (int j = 0; j < c.playerEquipment.length; j++) {
    					if (c.playerEquipment[j] > 1) {
    						c.sendMessage("Take off your items first!");
    						return;
    					}
    				}
    				c.playerXP[1]=0;
    				c.playerLevel[1] = 1;
    				c.getPA().refreshSkill(1);	
    			}
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Jun 2010
    Posts
    296
    Thanks given
    2
    Thanks received
    2
    Rep Power
    37
    what about if you wanted to resetall? something like this?


    Code:
    if (playerCommand.equalsIgnoreCase("resetall")) {
    				for (int j = 0; j < c.playerEquipment.length; j++) {
    					if (c.playerEquipment[j] > 1) {
    						c.sendMessage("Take off your items first!");
    						return;
    					}
    				}
    				c.playerXP[1]=0;
    				c.playerLevel[1] = 1;
    				c.getPA().refreshSkill(1,2,3,4,5,6);
    or would i have to repeat
    c.getPA().refreshSkill(1)
    c.getPA().refreshSkill(2)
    c.getPA().refreshSkill(3)
    Reply With Quote  
     

  9. #9  
    Registered Member sketzo's Avatar
    Join Date
    Jul 2006
    Age
    32
    Posts
    424
    Thanks given
    19
    Thanks received
    15
    Rep Power
    34
    All stats or only combat stats?
    atk,str,def?
    Reply With Quote  
     

  10. #10  
    Registered Member
    Gator God's Avatar
    Join Date
    Aug 2010
    Posts
    260
    Thanks given
    15
    Thanks received
    26
    Rep Power
    99
    Quote Originally Posted by sketzo View Post
    All stats or only combat stats?
    atk,str,def?
    I believe he means just combat.
    Quote Originally Posted by H A W X;
    [IMG]C:\Users\R\Desktop\Rune-Server\Pictures[/IMG]
    :trollface:
    Reply With Quote  
     

Page 1 of 3 123 LastLast

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] Reset Commands + Rep
    By nathanrr44 in forum Help
    Replies: 0
    Last Post: 01-23-2011, 07:50 PM
  2. ::lvl and ::reset commands z525
    By lt gangster in forum Help
    Replies: 1
    Last Post: 08-17-2010, 05:00 AM
  3. Replies: 9
    Last Post: 11-28-2009, 05:39 AM
  4. For beginners [Z508/Z525] Reset commands
    By kay oh in forum Snippets
    Replies: 11
    Last Post: 11-17-2009, 01:49 AM
  5. Reset Commands [Delta] HELP!!
    By CustomIsle in forum Help
    Replies: 4
    Last Post: 04-27-2009, 05:57 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
  •