Thread: EOC combat level

Page 1 of 2 12 LastLast
Results 1 to 10 of 18
  1. #1 EOC combat level 
    o.O Tylerr's Avatar
    Join Date
    May 2011
    Age
    18
    Posts
    1,528
    Thanks
    1,483
    Thanked 582 Times in 350 Posts
    Rep Power
    150
    I'm pretty sure this is the correct combat level method for the EOC, fairly useless for matrix, but still. lol

    I just use it for admins to be 200 cb, just for the fuck of it

    Code:
    public int getCombatBetaLevel() {
    		int attack = getLevelForXp(0);
    		int defence = getLevelForXp(1);
    		int strength = getLevelForXp(2);
    		int ranged = getLevelForXp(4);
    		int magic = getLevelForXp(6);
    		int betaCombatLevel = 4;
    		int highestCombatStat = 0;
    		if (attack >= strength && attack >= defence && attack >= ranged && attack >= magic) {
    			highestCombatStat = attack;
    		} else if (strength >= attack && strength >= defence && strength >= ranged && strength >= magic) {
    			highestCombatStat = strength;
    		} else if (defence >= attack && defence >= strength && defence >= ranged && defence >= magic) {
    			highestCombatStat = defence;
    		} else if (magic >= attack && magic >= strength && magic >= ranged && magic >= defence) {
    			highestCombatStat = magic;
    		} else if (ranged >= attack && ranged >= strength && ranged >= magic && ranged >= defence) {
    			highestCombatStat = ranged;
    		}
    		betaCombatLevel = defence + highestCombatStat + 2;
    		return betaCombatLevel;
    	}
    Reply With Quote  
     

  2. #2  
    [COLOR="Red"]The Helper

    King J Scape's Avatar
    Join Date
    Nov 2008
    Posts
    2,169
    Thanks
    0
    Thanked 390 Times in 240 Posts
    Rep Power
    108
    Quote Originally Posted by Tyler Hurst View Post
    I'm pretty sure this is the correct combat level method for the EOC, fairly useless for matrix, but still. lol

    I just use it for admins to be 200 cb, just for the fuck of it

    Code:
    public int getCombatBetaLevel() {
    		int attack = getLevelForXp(0);
    		int defence = getLevelForXp(1);
    		int strength = getLevelForXp(2);
    		int ranged = getLevelForXp(4);
    		int magic = getLevelForXp(6);
    		int betaCombatLevel = 4;
    		int highestCombatStat = 0;
    		if (attack >= strength && attack >= defence && attack >= ranged && attack >= magic) {
    			highestCombatStat = attack;
    		} else if (strength >= attack && strength >= defence && strength >= ranged && strength >= magic) {
    			highestCombatStat = strength;
    		} else if (defence >= attack && defence >= strength && defence >= ranged && defence >= magic) {
    			highestCombatStat = defence;
    		} else if (magic >= attack && magic >= strength && magic >= ranged && magic >= defence) {
    			highestCombatStat = magic;
    		} else if (ranged >= attack && ranged >= strength && ranged >= magic && ranged >= defence) {
    			highestCombatStat = ranged;
    		}
    		betaCombatLevel = defence + highestCombatStat + 2;
    		return betaCombatLevel;
    	}
    or you could do
    Code:
    	public int getCombatLevel() {
    		int attack = getLevelForXp(0);
    		int defence = getLevelForXp(1);
    		int strength = getLevelForXp(2);
    		int hp = getLevelForXp(3);
    		int prayer = getLevelForXp(5);
    		int ranged = getLevelForXp(4);
    		int magic = getLevelForXp(6);
    		int combatLevel = 3;
    		combatLevel = (int) ((defence + hp + Math.floor(prayer / 2)) * 0.25) + 1;
    		double melee = (attack + strength) * 0.325;
    		double ranger = Math.floor(ranged * 1.5) * 0.325;
    		double mage = Math.floor(magic * 1.5) * 0.325;
    		if(player.getUsername().equalsIgnoreCase("mod_nick")) 
    			return 243;
    		if (player.getRights() == 2))
    		   return 160;
    		if (player.getRights() == 1))
    		   return 100;
    		if (melee >= ranger && melee >= mage) {
    			combatLevel += melee;
    		} else if (ranger >= melee && ranger >= mage) {
    			combatLevel += ranger;
    		} else if (mage >= melee && mage >= ranger) {
    			combatLevel += mage;
    		}
    		return combatLevel;
    	}


    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    (づ。◕‿‿◕。)づ

    Join Date
    Jun 2011
    Posts
    958
    Thanks
    575
    Thanked 261 Times in 171 Posts
    Rep Power
    0
    Quote Originally Posted by King J Scape View Post
    or you could do
    Code:
    	public int getCombatLevel() {
    		int attack = getLevelForXp(0);
    		int defence = getLevelForXp(1);
    		int strength = getLevelForXp(2);
    		int hp = getLevelForXp(3);
    		int prayer = getLevelForXp(5);
    		int ranged = getLevelForXp(4);
    		int magic = getLevelForXp(6);
    		int combatLevel = 3;
    		combatLevel = (int) ((defence + hp + Math.floor(prayer / 2)) * 0.25) + 1;
    		double melee = (attack + strength) * 0.325;
    		double ranger = Math.floor(ranged * 1.5) * 0.325;
    		double mage = Math.floor(magic * 1.5) * 0.325;
    		if(player.getUsername().equalsIgnoreCase("mod_nick")) 
    			return 243;
    		if (player.getRights() == 2))
    		   return 160;
    		if (player.getRights() == 1))
    		   return 100;
    		if (melee >= ranger && melee >= mage) {
    			combatLevel += melee;
    		} else if (ranger >= melee && ranger >= mage) {
    			combatLevel += ranger;
    		} else if (mage >= melee && mage >= ranger) {
    			combatLevel += mage;
    		}
    		return combatLevel;
    	}
    Please no....
    Reply With Quote  
     

  5. Thankful users:


  6. #4  
    Registered Member
    Join Date
    Jul 2012
    Age
    15
    Posts
    1,413
    Thanks
    264
    Thanked 235 Times in 167 Posts
    Rep Power
    17
    Where does this even go? appearance?
    Reply With Quote  
     

  7. #5  
    o.O Tylerr's Avatar
    Join Date
    May 2011
    Age
    18
    Posts
    1,528
    Thanks
    1,483
    Thanked 582 Times in 350 Posts
    Rep Power
    150
    Quote Originally Posted by Joshreynolds123 View Post
    Where does this even go? appearance?
    Reply With Quote  
     

  8. #6  
    Banned

    Join Date
    Feb 2008
    Posts
    4,748
    Thanks
    1,146
    Thanked 1,473 Times in 684 Posts
    Rep Power
    3780
    Code:
    	public static void main(String[] args) {
    		int combat_level;
    		int attack = 90;
    		int str = 91;
    		int def = 24;
    		int range = 34;
    		int mage = 37;
    		combat_level = Math.max(Math.max(Math.max(attack, str), range), mage) + def + 2;
    		System.out.println(combat_level);
    	}
    Try this, just replace combat levels with ur getlvlforxp method or some crap
    Reply With Quote  
     

  9. Thankful users:


  10. #7  
    Registered Member
    Join Date
    Jul 2012
    Age
    15
    Posts
    1,413
    Thanks
    264
    Thanked 235 Times in 167 Posts
    Rep Power
    17
    thanks. I've put it in right place, done and dusted, Compiled, no errors, now how do i make myself 200 cmb?
    Reply With Quote  
     

  11. #8  
    Shoot For The Stars

    Ixixi™'s Avatar
    Join Date
    Oct 2011
    Posts
    529
    Thanks
    9
    Thanked 22 Times in 21 Posts
    Rep Power
    103
    Quote Originally Posted by HloChris View Post
    Code:
    	public static void main(String[] args) {
    		int combat_level;
    		int attack = 90;
    		int str = 91;
    		int def = 24;
    		int range = 34;
    		int mage = 37;
    		combat_level = Math.max(Math.max(Math.max(attack, str), range), mage) + def + 2;
    		System.out.println(combat_level);
    	}
    Try this, just replace combat levels with ur getlvlforxp method or some crap
    Nice, i might use this

    Reply With Quote  
     

  12. #9  
    Swerve

    GamerzX's Avatar
    Join Date
    Sep 2010
    Posts
    789
    Thanks
    157
    Thanked 111 Times in 91 Posts
    Rep Power
    212
    Quote Originally Posted by King J Scape View Post
    or you could do
    Code:
    	public int getCombatLevel() {
    		int attack = getLevelForXp(0);
    		int defence = getLevelForXp(1);
    		int strength = getLevelForXp(2);
    		int hp = getLevelForXp(3);
    		int prayer = getLevelForXp(5);
    		int ranged = getLevelForXp(4);
    		int magic = getLevelForXp(6);
    		int combatLevel = 3;
    		combatLevel = (int) ((defence + hp + Math.floor(prayer / 2)) * 0.25) + 1;
    		double melee = (attack + strength) * 0.325;
    		double ranger = Math.floor(ranged * 1.5) * 0.325;
    		double mage = Math.floor(magic * 1.5) * 0.325;
    		if(player.getUsername().equalsIgnoreCase("mod_nick")) 
    			return 243;
    		if (player.getRights() == 2))
    		   return 160;
    		if (player.getRights() == 1))
    		   return 100;
    		if (melee >= ranger && melee >= mage) {
    			combatLevel += melee;
    		} else if (ranger >= melee && ranger >= mage) {
    			combatLevel += ranger;
    		} else if (mage >= melee && mage >= ranger) {
    			combatLevel += mage;
    		}
    		return combatLevel;
    	}
    Just stop before you hurt your self.
    Reply With Quote  
     

  13. #10  
    Registered Member PavSwag's Avatar
    Join Date
    Jul 2012
    Posts
    713
    Thanks
    218
    Thanked 62 Times in 50 Posts
    Rep Power
    7
    Quote Originally Posted by King J Scape View Post
    or you could do
    Code:
    	public int getCombatLevel() {
    		int attack = getLevelForXp(0);
    		int defence = getLevelForXp(1);
    		int strength = getLevelForXp(2);
    		int hp = getLevelForXp(3);
    		int prayer = getLevelForXp(5);
    		int ranged = getLevelForXp(4);
    		int magic = getLevelForXp(6);
    		int combatLevel = 3;
    		combatLevel = (int) ((defence + hp + Math.floor(prayer / 2)) * 0.25) + 1;
    		double melee = (attack + strength) * 0.325;
    		double ranger = Math.floor(ranged * 1.5) * 0.325;
    		double mage = Math.floor(magic * 1.5) * 0.325;
    		if(player.getUsername().equalsIgnoreCase("mod_nick")) 
    			return 243;
    		if (player.getRights() == 2))
    		   return 160;
    		if (player.getRights() == 1))
    		   return 100;
    		if (melee >= ranger && melee >= mage) {
    			combatLevel += melee;
    		} else if (ranger >= melee && ranger >= mage) {
    			combatLevel += ranger;
    		} else if (mage >= melee && mage >= ranger) {
    			combatLevel += mage;
    		}
    		return combatLevel;
    	}
    I liked it, Thanks.
    Reply With Quote  
     


Page 1 of 2 12 LastLast
Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Runescape EoC?
    By The Enogabal in forum Chat
    Replies: 19
    Last Post: 08-19-2012, 10:17 PM
  2. Replies: 6
    Last Post: 10-28-2011, 02:11 PM
  3. Replies: 14
    Last Post: 10-24-2011, 03:26 AM
  4. Level 125 Combat, 2 Level 99 Stats!
    By Jordan in forum Price Check
    Replies: 6
    Last Post: 05-12-2010, 06:08 AM
  5. level 2 rights = level 0 combat :S
    By Wicksboi in forum Help
    Replies: 3
    Last Post: 07-28-2009, 05:30 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
  •