Thread: Duel arena help

Results 1 to 8 of 8
  1. #1 Duel arena help 
    RSPS SERVICES PROVIDER

    The Plateau's Avatar
    Join Date
    May 2015
    Posts
    999
    Thanks given
    592
    Thanks received
    191
    Rep Power
    129
    i want when you started duel arena it reset hp to 99 when is started duel arena any help ?
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Jan 2009
    Posts
    1,319
    Thanks given
    71
    Thanks received
    105
    Rep Power
    334
    This will refresh all skills if you just want hp just need to do 3

    Code:
    	for (int i = 0; i < 20; i++) {
    			c.playerLevel[i] = c.getPA().getLevelForXP(c.playerXP[i]);
    			c.getPA().refreshSkill(i);
    		}
    Attached image
    Reply With Quote  
     

  3. #3  
    A good beginning makes a good end.
    Elon Musk's Avatar
    Join Date
    Mar 2013
    Posts
    663
    Thanks given
    86
    Thanks received
    72
    Rep Power
    87
    That wouldn't be smart. what if i go into the duel arena with 39 hp? i get boosted to 99?

    but to restore stats to full a simple player.getSkills().restoreSkills(); will work.
    Attached image
    Attached image
    Attached image
    Reply With Quote  
     

  4. #4  
    RSPS SERVICES PROVIDER

    The Plateau's Avatar
    Join Date
    May 2015
    Posts
    999
    Thanks given
    592
    Thanks received
    191
    Rep Power
    129
    Quote Originally Posted by -_Timmeh_- View Post
    This will refresh all skills if you just want hp just need to do 3

    Code:
    	for (int i = 0; i < 20; i++) {
    			c.playerLevel[i] = c.getPA().getLevelForXP(c.playerXP[i]);
    			c.getPA().refreshSkill(i);
    		}
    where do i add it mate ?
    Reply With Quote  
     

  5. #5  
    A good beginning makes a good end.
    Elon Musk's Avatar
    Join Date
    Mar 2013
    Posts
    663
    Thanks given
    86
    Thanks received
    72
    Rep Power
    87
    Quote Originally Posted by Sky O.o View Post
    where do i add it mate ?
    You make a method
    Attached image
    Attached image
    Attached image
    Reply With Quote  
     

  6. #6  
    RSPS SERVICES PROVIDER

    The Plateau's Avatar
    Join Date
    May 2015
    Posts
    999
    Thanks given
    592
    Thanks received
    191
    Rep Power
    129
    Quote Originally Posted by Dave Chappelle View Post
    You make a method
    yes i know how can i make method but where can i make it when started duel is refreshSkill
    Reply With Quote  
     

  7. #7  
    A good beginning makes a good end.
    Elon Musk's Avatar
    Join Date
    Mar 2013
    Posts
    663
    Thanks given
    86
    Thanks received
    72
    Rep Power
    87
    Quote Originally Posted by Sky O.o View Post
    yes i know how can i make method but where can i make it when started duel is refreshSkill
    I'm not familiar with rs2,
    Skills.java
    Code:
    	public void restoreSkills() {
    		for (int skill = 0; skill < level.length; skill++) {
    			level[skill] = (short) getLevelForXp(skill);
    			refresh(skill);
    		}
    	}
    DuelArena.java -- On start of duel
    Code:
    		player.getSkills().restoreSkills();
    Quote Originally Posted by Sky O.o View Post
    yes i know how can i make method but where can i make it when started duel is refreshSkill
    did that work for you?
    Attached image
    Attached image
    Attached image
    Reply With Quote  
     

  8. Thankful user:


  9. #8  
    RSPS SERVICES PROVIDER

    The Plateau's Avatar
    Join Date
    May 2015
    Posts
    999
    Thanks given
    592
    Thanks received
    191
    Rep Power
    129
    Quote Originally Posted by Dave Chappelle View Post
    I'm not familiar with rs2,
    Skills.java
    Code:
    	public void restoreSkills() {
    		for (int skill = 0; skill < level.length; skill++) {
    			level[skill] = (short) getLevelForXp(skill);
    			refresh(skill);
    		}
    	}
    DuelArena.java -- On start of duel
    Code:
    		player.getSkills().restoreSkills();


    did that work for you?
    nope that not for pi i think
    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] Duel Arena help Rep++
    By Char Char in forum Help
    Replies: 3
    Last Post: 01-30-2011, 05:58 PM
  2. duel arena help [PI]
    By miggz212 in forum Help
    Replies: 7
    Last Post: 08-31-2010, 05:53 AM
  3. Z508 Duel Arena [Help]
    By iobpkbarrage in forum Help
    Replies: 3
    Last Post: 04-12-2010, 12:48 PM
  4. duel Arena help [REQ]
    By Mr. Epic in forum Requests
    Replies: 2
    Last Post: 10-27-2009, 11:40 PM
  5. Duel Arena Help!
    By ballin in forum Help
    Replies: 6
    Last Post: 04-18-2009, 09: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
  •