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;
}