Thread: Level 126 to Level 138? Doesn't calculate Summoning?

Results 1 to 4 of 4
  1. #1 Level 126 to Level 138? Doesn't calculate Summoning? 
    Banned
    Join Date
    Aug 2013
    Posts
    234
    Thanks given
    136
    Thanks received
    60
    Rep Power
    0
    I am fully maxed. 99 Summoning. It show's Level 126 on my combat tab but Level 138 To everyone Else. How can I make it so that it shows Level 138 on my combat tab as well? So that it calculates the Summoning Level as well:



    Thanks.
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Apr 2012
    Posts
    378
    Thanks given
    6
    Thanks received
    27
    Rep Power
    18
    In you combat level calculation method, get the correct formula for 138 combat. A lot of sources in the downloads section got it.
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Banned
    Join Date
    Aug 2013
    Posts
    234
    Thanks given
    136
    Thanks received
    60
    Rep Power
    0
    Quote Originally Posted by Exidia View Post
    In you combat level calculation method, get the correct formula for 138 combat. A lot of sources in the downloads section got it.
    This is my code, Can you tell me the fix?:

    Code:
    		int combatLevel = ((Client) this).getCombatLevel();
    			
    		int mag = (int) ((getLevelForXP(playerXP[6])) * 1.5);
    		int ran = (int) ((getLevelForXP(playerXP[4])) * 1.5);
    		int attstr = (int) ((double) (getLevelForXP(playerXP[0])) + (double) (getLevelForXP(playerXP[2])));
    			
    		combatLevel = 0;
    		if (ran > attstr) {
    			combatLevel = (int) (((getLevelForXP(playerXP[1])) * 0.25)
    					+ ((getLevelForXP(playerXP[3])) * 0.25)
    					+ ((getLevelForXP(playerXP[5])) * 0.125)
    					+ ((getLevelForXP(playerXP[4])) * 0.4875)
    					+ ((getLevelForXP(playerXP[21])) * 0.121212));
    		} else if (mag > attstr) {
    			combatLevel = (int) (((getLevelForXP(playerXP[1])) * 0.25)
    					+ ((getLevelForXP(playerXP[3])) * 0.25)
    					+ ((getLevelForXP(playerXP[5])) * 0.125)
    					+ ((getLevelForXP(playerXP[6])) * 0.4875)
    					+ ((getLevelForXP(playerXP[21])) * 0.121212));
    		} else {
    			combatLevel = (int) (((getLevelForXP(playerXP[1])) * 0.25)
    					+ ((getLevelForXP(playerXP[3])) * 0.25)
    					+ ((getLevelForXP(playerXP[5])) * 0.125)
    					+ ((getLevelForXP(playerXP[0])) * 0.325)
    					+ ((getLevelForXP(playerXP[2])) * 0.325)
    					+ ((getLevelForXP(playerXP[21])) * 0.121212));
    		}
    			
    			playerProps.writeByte(combatLevel);		// combat level		
    			playerProps.writeWord(playerTitle);		
    			str.writeByteC(playerProps.currentOffset);		
    			str.writeBytes(playerProps.buffer, playerProps.currentOffset, 0);
    		//}
    	}
    Reply With Quote  
     

  5. #4  
    Registered Member
    Join Date
    Aug 2013
    Posts
    115
    Thanks given
    24
    Thanks received
    6
    Rep Power
    0
    Client.java

    public int getCombatLevel() {
    int mag = (int) ((getLevelForXP(playerXP[6])) * 1.5);
    int ran = (int) ((getLevelForXP(playerXP[4])) * 1.5);
    int attstr = (int) ((double) (getLevelForXP(playerXP[0])) + (double) (getLevelForXP(playerXP[2])));
    if (ran > attstr) {
    combatLevel = (int) (((getLevelForXP(playerXP[1])) * 0.25)
    + ((getLevelForXP(playerXP[3])) * 0.25)
    + ((getLevelForXP(playerXP[5])) * 0.125)
    + ((getLevelForXP(playerXP[4])) * 0.4875)
    + ((getLevelForXP(playerXP[22])) * 0.125));
    } else if (mag > attstr) {
    combatLevel = (int) (((getLevelForXP(playerXP[1])) * 0.25)
    + ((getLevelForXP(playerXP[3])) * 0.25)
    + ((getLevelForXP(playerXP[5])) * 0.125)
    + ((getLevelForXP(playerXP[6])) * 0.4875)
    + ((getLevelForXP(playerXP[22])) * 0.125));
    } else {
    combatLevel = (int) (((getLevelForXP(playerXP[1])) * 0.25)
    + ((getLevelForXP(playerXP[3])) * 0.25)
    + ((getLevelForXP(playerXP[5])) * 0.125)
    + ((getLevelForXP(playerXP[0])) * 0.325)
    + ((getLevelForXP(playerXP[2])) * 0.325)
    + ((getLevelForXP(playerXP[22])) * 0.125));
    }
    return combatLevel;
    }

    player.java

    int mag = (int) ((getLevelForXP(playerXP[6])) * 1.5);
    int ran = (int) ((getLevelForXP(playerXP[4])) * 1.5);
    int attstr = (int) ((double) (getLevelForXP(playerXP[0])) + (double) (getLevelForXP(playerXP[2])));

    combatLevel = 0;
    if (ran > attstr) {
    combatLevel = (int) (((getLevelForXP(playerXP[1])) * 0.25)
    + ((getLevelForXP(playerXP[3])) * 0.25)
    + ((getLevelForXP(playerXP[5])) * 0.125)
    + ((getLevelForXP(playerXP[4])) * 0.4875)
    + ((getLevelForXP(playerXP[22])) * 0.125));
    } else if (mag > attstr) {
    combatLevel = (int) (((getLevelForXP(playerXP[1])) * 0.25)
    + ((getLevelForXP(playerXP[3])) * 0.25)
    + ((getLevelForXP(playerXP[5])) * 0.125)
    + ((getLevelForXP(playerXP[6])) * 0.4875)
    + ((getLevelForXP(playerXP[22])) * 0.125));
    } else {
    combatLevel = (int) (((getLevelForXP(playerXP[1])) * 0.25)
    + ((getLevelForXP(playerXP[3])) * 0.25)
    + ((getLevelForXP(playerXP[5])) * 0.125)
    + ((getLevelForXP(playerXP[0])) * 0.325)
    + ((getLevelForXP(playerXP[2])) * 0.325)
    + ((getLevelForXP(playerXP[22])) * 0.125));
    }
    make sure it's in both player and client.java
    [ad][/ad]

    currently in Beta! need testers for bugs, staff positions available, limited!
    Reply With Quote  
     

  6. Thankful user:



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. Refresh level 3 to 126
    By Yvne in forum Help
    Replies: 1
    Last Post: 11-18-2012, 02:00 PM
  2. Replies: 6
    Last Post: 08-02-2012, 10:26 PM
  3. Replies: 1
    Last Post: 04-25-2010, 02:46 AM
  4. How I change combat level 126 to 138?
    By Reloader in forum Help
    Replies: 1
    Last Post: 03-06-2009, 05:03 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
  •