I've modified the formula so that potions are used correctly sections changed are commented out. Super strength potion makes a multiplier of 1.2 whereas ALL potions do is increase your strength LEVEL by a set amount derived by a formula. No mention at all, of extra damage is made in the KB for the ZGS either. Assumes that the Saradomin and Zamorak godsword special attacks increase max hit by 5% when there is NO evidence for this, plus the KB specifically says that the SGS "inflicts normal damage". Assumes special attacks increase strength bonus, whereas Jagex states they increase damage (e.g. Criticisms: Follows an unusual formula with no real background very accurate in certain areas but far off in others.ĭouble dharokMultiplier = ((1 - ((float)hpCurrent / (float)hpBase)) * 0.95) + 1 ĭouble baseStrength = ((strengthCurrent + fightStyle.getStrengthBoost()) * (1 + prayer.getBoost() + effect.getBoost())) ĭouble bonusMultiplier = (strengthBonus * 0.00175) + 0.1 ĭouble maxHit = (baseStrength * bonusMultiplier) + 1.3 Calculate according to each website's current formula. Keris can only be used on Kalphites, so the other effects are nonexistant.") Throw new Exception("Keris can only be used with the black mask / slayer helmet effect. If (special = SpecialAttacks.Keris & !(effect = Effects.None || effect = Effects.BlackMask || effect = Effects.SlayerHelmet)) Throw new Exception("You cannot have a base hitpoints level greater than " + MAX_LEVEL + ".") If (itemSet = ItemSets.Dharok & hpBase > MAX_LEVEL) Throw new Exception("Dharok's set effect cannot be used with a current hitpoints level of zero as you would be dead and could not attack.") If (itemSet = ItemSets.Dharok & hpCurrent = 0) Throw new Exception("No item set can be used in conjuction with the black mask or slayer helmet as only one helmet can be worn at once and helmets cannot be worn in Castle Wars.") If (itemSet != ItemSets.None & (effect = Effects.BlackMask || effect = Effects.SlayerHelmet)) Throw new Exception("Dharok's set effect cannot be used in conjuction with a special attack as all special attacks require a weapon other than Dharok's greataxe to be wielded.") If (itemSet = ItemSets.Dharok & special != SpecialAttacks.None) Public static int meleeMaxHit(int strengthBase, int strengthCurrent, int strengthBonus, StrengthPrayers prayer, FightingStyles fightStyle, SpecialAttacks special, Effects effect, ItemSets itemSet, int hpBase, int hpCurrent, Websites website) throws Exception Return combatLevel + Math.max(warrior, Math.max(ranger, mage)) Here is a copy of the formulas from the thread: public static double combatFormula(int attack, int strength, int defence, int hitpoints, int prayer, int ranged, int magic, int summoning)ĭouble combatLevel = (defence + hitpoints + Math.floor(prayer / 2) + Math.floor(summoning / 2)) * 0.25 ĭouble warrior = (attack + strength) * 0.325 Also, this thread displays the combat formulas at code level. You can use this combat calculator to calculate your max hit. A higher strength will make you hit higher values. That is, a higher attack will make sure you land more hits (instead of missing, i.e. Attack defines how accurate you will hit.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |