Combat: Difference between revisions
(Update Chance to Hit, Max Hit sections) |
(→Melee and Ranged Max Hit: Correct Base max hit formula) |
||
Line 165: | Line 165: | ||
Given these figures, the base max hit (i.e. max hit before modifiers) is then calculated as: | Given these figures, the base max hit (i.e. max hit before modifiers) is then calculated as: | ||
<math>\text{Base Max Hit} = \left \lfloor 10 \times \left ( | <math>\text{Base Max Hit} = \left \lfloor 10 \times \left ( 2.2 + \frac{\text{Effective Skill Level}}{10} + \frac{\text{Strength Bonus}}{80} + \frac{\left ( \text{Effective Skill Level} + 9 \right ) \times \text{Strength Bonus}}{640} \right ) \right \rfloor</math> | ||
This base max hit is then adjusted by the percentage and flat max hit modifiers to arrive at the final max hit figure, where the modifiers include both global max hit increases as well as increases specific to the relevant attack type: | This base max hit is then adjusted by the percentage and flat max hit modifiers to arrive at the final max hit figure, where the modifiers include both global max hit increases as well as increases specific to the relevant attack type: |
Revision as of 00:54, 29 December 2021
This page was last updated for (v0.18.2). |
Combat involves fighting various monsters throughout the combat areas, slayer areas, and dungeons of Melvor. Food and Equipment cannot be changed while in a dungeon unless an upgrade has been purchased from the shop.
Combat stats—viewable from the combat page—are affected by the player's combat skills and any Equipment worn. The combat skills are Attack,
Strength,
Defence,
Hitpoints,
Ranged,
Magic,
Prayer, and
Slayer. These skills are factored in when calculating the player's combat level, which is an approximation of the player's power. Players start at combat level 3 and can reach a maximum of combat level 126, while monsters range from combat level 1 to 1300. The player's combat level affects the difficulty of monsters given in Slayer Tasks.
Combat Info
Max Hit shows the maximum potential damage a successful attack can do. The Max Hit displayed for players and enemies does not factor in damage reduction.
Chance to Hit shows the player's percent chance to hit the enemy with their attack.
Accuracy Rating affects the likelihood an attack will be successful during combat. The player's Accuracy Rating is compared to the enemy's Evasion Rating when calculating the chance an attack will succeed.
Dmg Reduction reduces any damage received by the percent shown.
Evasion Rating affects the likelihood an attack will be avoided during combat. There are three types of Evasion Rating; Melee, Ranged, and Magic. The Attack Type being defended against affects which Evasion Rating will be used. The enemy's Accuracy Rating is compared to the player's Evasion Rating when calculating the chance an attack will be avoided.
Prayer Points are gained by burying bones and are used to activate prayers during combat.
Active Prayers provide bonuses to the player during combat and use Prayer Points to remain active. Up to two prayers can be active simultaneously, so long as the required Prayer Points are available.
Basic Combat
To fight monsters navigate to the combat page by selecting any combat skill from the left menu. The combat page contains three tabs containing the locations where monsters can be fought, above a section for equipment and combat stats. Browse combat areas, slayer areas, or dungeons to reveal a menu containing all the relevant locations. Selecting a location will display the enemies which can be found there, along with their Hitpoints, Combat Level, and Attack Type. Selecting "Fight" will begin combat. Combat will continue until the player runs, dies, or defeats the dungeon. Enemies are fought automatically. Combat skills can not be trained in offline mode.
Combat skills are leveled by damaging enemies with weapons, and magic. To train a specific combat skill match the Attack Style icon with the relevant combat skill. The available Attack Styles will change depending on the type of weapon equipped. Most combat skills have a passive effect even when the relevant style is not selected. Weapons, armour, and food can be equipped for use by selecting them in the Bank. Weapons and armour provide bonuses and penalties to combat stats, while food can be used for healing in combat.
After each kill, it will take 3 seconds for the next monster to spawn.
Loot and Rewards
- See also Thieving#Loot
All monsters killed in combat and slayer areas will drop bones upon death, with a chance for additional loot based on the monster's type. The "Drops" option will display the possible loot drops a monster can give.
Any items enemies drop upon death must be looted manually by selecting "Loot All" or the item itself, unless the Amulet of Looting is equipped. If there are more than 16 stacks of loot, the oldest drop disappears. Bones stack and do not time out like other drops. Other drops do not stack even if they are of the same type.
Monsters fought in dungeons will not drop loot when killed and do not count towards Slayer Tasks. The God Dungeons are an exception to this rule: the shards are rewarded after each killed monster. When the last monster in a dungeon is killed, the player will be given a reward that is sent to the Bank automatically.
Combat Triangle
- See Combat Triangle
Special Attacks
Special attacks can be used in combat to gain a slight advantage over the monster being fought. Equipping a weapon with a special attack will give your attacks a chance to perform a special attack. Only a select few high level weapons have special attacks. Several monsters can use special attacks against the player, including Malcs, the Guardian of Melvor and
Prat, the Protector of Secrets from the
Volcanic Cave, and all of the monsters from the four god dungeons. The attack bar will change to yellow when a special attack is being used.
Special Attacks cannot be used alongside Ancient Magicks.
Gaining Experience
Players can gain experience in nine different skills while training combat:
Hitpoints experience is gained at a rate of 0.133 experience per damage dealt regardless of the combat style being used.
Attack,
Strength,
Defence,
Magic, or
Ranged experience is gained depending on the active combat style. If the selected combat style only gives experience towards a single skill, 0.4 experience will be gained per damage dealt. If the selected combat style is a hybrid combat style, 0.2 experience will be gained by each of the two relevant skills for each damage dealt.
No additional Magic experience is directly generated for using Curses or Auroras, although they may indirectly generate additional experience by increasing the amount of damage the player deals.
Players gain [math]\displaystyle{ \frac{1}{30} }[/math] or [math]\displaystyle{ 0.0\bar{3} }[/math] Prayer experience per damage dealt per prayer point spent on prayers that affected the attack. For example, if
Steel Skin (3 prayer point cost) is active, each attack made will generate 0.1 extra experience per damage dealt. Only prayers such as
Thick Skin that say 'Provides extra Prayer XP based on damage dealt to the enemy' in their description will generate experience this way - Prayers such as
Protect from Magic that say 'Provides no extra Prayer XP' will not contribute towards this experience bonus.
All of the above experience will be multiplied by 1.04 while a Gold Emerald Ring is equipped.
Slayer experience is gained through two sources: Killing monsters on a Slayer Task and killing monsters in a Slayer area. Killing the monster that is the player's current Slayer Task will generate experience equal to 10% of the monster's hitpoints. Killing a monster in a Slayer area will generate experience equal to 5% of the monster's hitpoints. If the player's Slayer Task is for a monster in a Slayer area, these bonuses will stack for a total of 15% of the monster's hitpoints in experience per kill.
Slayer Experience cannot be increased by the Gold Emerald Ring, however the various pieces of Slayer Equipment that can be purchased from the Shop using
Slayer Coins provides an experience bonus when worn.
Summoning experience can be gained if the player has equipped tablets for at least one combat familiar. Summoning experience will be granted whenever the familiar attacks the enemy, consuming a tablet in the process. Being a non-combat skill, Summoning experience gained cannot be increased by the
Gold Emerald Ring.
Death
Receiving damage that would bring the player's total Hitpoints to 0 or below will cause the player to die. Upon death a random equipment slot is selected, any Equipment within the selected slot will be lost forever (unless the
Protect Item prayer is active). If either ammunition or Summoning tablets are lost, the entire stack - regardless of size - will be forfeited. Only non-food items that have been equipped in an active slot can be lost upon death.
All items equipped have an equal chance of being lost. When the death penalty rolls to determine which item is lost, it starts by rolling a random equipment slot. If the player has nothing equipped in that slot (For example, if they are using Melee and do not have any Ammo equipped) nothing will be lost, and a message saying "Luck was on your side today. You lost nothing." will appear.
Hardcore characters that die are deleted permanently.
Combat Mechanics
Combat Level
The first formula is used to calculate the player's Base Combat Level.
[math]\displaystyle{ \small{ \begin{aligned} \text{Base Combat Level} = 0.25 \times (\text{Defence Skill Level} + \text{Hitpoints Skill Level} + \lfloor 0.5 \times \text{Prayer Skill Level} \rfloor) \end{aligned}} }[/math]
The second set of formulas are used to calculate the player's Offensive Combat Levels, only the highest result is used.
[math]\displaystyle{ \small{\begin{aligned} \text{Melee Combat Level} &= \text{Attack Skill Level} + \text{Strength Skill Level} \\ \text{Ranged Combat Level} &= \lfloor 1.5 \times \text{Ranged Skill Level} \rfloor \\ \text{Magic Combat Level} &= \lfloor 1.5 \times \text{Magic Skill Level} \rfloor \end{aligned}} }[/math]
The third formula is used to calculate the player's Combat Level, rounded down to the nearest whole number.
[math]\displaystyle{ \small{\begin{aligned}\text{Combat Level} = \lfloor \text{Base Combat Level} + 0.325 \times \text{Highest Offensive Combat Level} \rfloor\end{aligned}} }[/math]
Where: [math]\displaystyle{ \left \lfloor x \right \rfloor }[/math] is the floor function.
Stun (Freeze)
Stun, also known as freeze, is a status effect that can be inflicted by both players and monsters. Stun can be applied for a number of turns by a special attack or a normal attack by the player if the Fighter Amulet is equipped. When an attack applies stun the current attack of the target is interrupted, including special attacks that are in progress. If the target is already stunned, it will not be applied again. When stunned, a stun timer counts down with a period equivalent to the target's attack speed. On completion of the timer the number of stun turns is decreased by one, and the status is removed if the resulting amount is zero. In addition to not being able to attack while stunned, a character cannot evade any attacks.
While a player or monster is stunned, they take 30% more damage.
While a player or monster is asleep, they take 20% more damage.
Accuracy Rating
The calculation used to determine the player's accuracy rating is broadly the same for all combat styles, with some parameters varying depending on the player's current attack type and style:
Attack Type | Attack Style | Skill Level | Attack Bonus Stat |
---|---|---|---|
Stab attack bonus | |||
Slash attack bonus | |||
Block attack bonus | |||
All | Ranged attack bonus | ||
All | Magic attack bonus |
The first formula is used to determine the player's effective skill level:
[math]\displaystyle{ \small{\text{Effective Skill Level} = \text{Standard Skill Level} + \text{Hidden Skill Level}} }[/math]
Where 'Standard Skill Level' is the player's skill level as seen in the left-hand navigation bar (up to a maximum of 99), while 'Hidden Skill Level' is the sum of any hidden skill level bonuses, such as those granted by Astrology.
Next, the base accuracy bonus should be calculated. This is the sum of the relevant attack bonus statistic provided by all currently equipped equipment (as seen in the Equipment Stats interface), plus:
In addition, the player's accuracy modifier needs to be known. This is the sum of all global accuracy rating and the relevant attack type's accuracy rating increases, provided from places such as Potions, Agility, and
Astrology. If using Surge spells, this modifier is increased by a further 6%.
Finally, the player's accuracy rating can then be calculated as:
[math]\displaystyle{ \text{Accuracy Rating} = \left \lfloor \left (\text{Effective Skill Level} + 9 \right ) \times \left (\text{Base Accuracy Bonus} + 64 \right ) \times \left (1 + \frac{\text{Accuracy Modifier}}{100} \right ) \right \rfloor }[/math]
Where: [math]\displaystyle{ \left \lfloor x \right \rfloor }[/math] is the floor function.
Chance to Hit
To calculate the chance an attack will hit, the Accuracy Rating of the attacker is compared to the relevant Evasion Rating of the target. If the attacker's Accuracy Rating is lower than the defender's evasion rating the formula is as follows:
[math]\displaystyle{ \small{ \begin{aligned} \text{Percentage Hit Chance} = \frac{\text{Attacker Accuracy Rating}}{2 \times \text{Target Evasion Rating}} \times 100 \end{aligned}} }[/math]
Otherwise, the attacker's Accuracy Rating is higher than or equal to the target's Evasion Rating, and the formula is instead:
[math]\displaystyle{ \small{ \begin{aligned} \text{Percentage Hit Chance} = 1 - \frac{\text{Target Evasion Rating}}{2 \times\text{Attacker Accuracy Rating}} \times 100 \end{aligned}} }[/math]
When the attacker's Accuracy Rating and the target's Evasion Rating are the same, the chance to hit is 50%. The higher the attacker's Accuracy Rating is above the targets Evasion Rating, the less valuable each point will be. At double the target's Evasion Rating, the attacker will hit 75% of the time, at triple, the attacker will hit 83.3% of the time.
Max Hit
Melee and Ranged Max Hit
First, calculate the player's effective Strength level for the melee max hit, or the effective
Ranged level for the ranged max hit:
[math]\displaystyle{ \small{\text{Effective Skill Level} = \text{Standard Skill Level} + \text{Hidden Skill Level}} }[/math]
Where 'Standard Skill Level' is the player's skill level as seen in the left-hand navigation bar (up to a maximum of 99), while 'Hidden Skill Level' is the sum of any hidden skill level bonuses, such as those granted by Astrology.
Next, the strength bonus should be calculated. This is the sum of the relevant statistic provided by all currently equipped equipment (as seen in the Equipment Stats interface), where the relevant statistic is:
Given these figures, the base max hit (i.e. max hit before modifiers) is then calculated as:
[math]\displaystyle{ \text{Base Max Hit} = \left \lfloor 10 \times \left ( 2.2 + \frac{\text{Effective Skill Level}}{10} + \frac{\text{Strength Bonus}}{80} + \frac{\left ( \text{Effective Skill Level} + 9 \right ) \times \text{Strength Bonus}}{640} \right ) \right \rfloor }[/math]
This base max hit is then adjusted by the percentage and flat max hit modifiers to arrive at the final max hit figure, where the modifiers include both global max hit increases as well as increases specific to the relevant attack type:
[math]\displaystyle{ \text{Max Hit} = \left \lfloor \text{Base Max Hit} \times \left ( 1 + \frac{\text{Percentage Max Hit Modifier}}{100} \right ) \right \rfloor + \text{Flat Max Hit Modifier} }[/math]
Magic Max Hit
The player's Max Hit with spells changes depending on the spell being used. A spell's max hit is listed in the spell's description and is different for every spell. Magic Damage Bonus can be found in the Equipment Stats interface.
For Ancient Magick spells the max hit is simply as stated in the spell's description, and cannot be increased by the Magic Damage Bonus stat or any max hit modifiers - only the Combat Triangle damage bonus/penalty applies.
For standard spells, first determine the max hit stated in the spell's description along with the player's effective Magic level by using the same effective level formula as Melee and Ranged max hit does. The base max hit is then:
[math]\displaystyle{ \text{Base Max Hit} = \left \lfloor 10 \times \text{Spell Max Hit} \times \left ( 1 + \frac{\text{Magic Damage Bonus}}{100} \right ) \times \left ( 1 + \frac{1 + \text{Effective Magic Level}}{200} \right ) \right \rfloor }[/math]
This base max hit is then adjusted by the percentage and flat max hit modifiers to arrive at the final max hit figure, where the modifiers include both global and magic max hit increases. Any damage increases with the same element as the spell being used (such as that provided by the Cloudburst Staff) are also added to the flat max hit modifier:
[math]\displaystyle{ \text{Max Hit} = \left \lfloor \text{Base Max Hit} \times \left ( 1 + \frac{\text{Percentage Max Hit Modifier}}{100} \right ) \right \rfloor + \text{Flat Max Hit Modifier} }[/math]
Calculating Damage Dealt
When the player hits with a normal attack, the game calculates how much damage the player actually does by rolling a number between their minimum hit and maximum hit for the chosen combat style and then applying post-roll modifiers.
Post-Roll Modifiers
Some effects are applied after the damage roll is done. The main two are enemy Damage Reduction and Player Modifiers that affect damage to all monsters or to a subset of monsters such as Slayer Monsters or Boss Monsters. These modifiers can increase the player's damage beyond their listed maximum hit.
Ancient Magick spells are not affected by post-roll modifiers aside from enemy Damage Reduction, although weapon special attacks that do a fixed amount of damage are.
Damage Reduction
Damage Reduction is a stat that does exactly what it suggests: It reduces the amount of damage taken by a player or monster. Unlike other combat numbers that are complex calculations, a player's Damage Reduction is determined by simply adding together all Damage Reduction bonuses the player has, whether from equipment or something else like a Damage Reduction Potion or Leonardo.
As of v0.17.0, there are no monsters in the game with natural Damage Reduction. However, Earth Guards and
Terran in the
Earth God Dungeon have special attacks that grant them temporary Damage Reduction.
Whenever a player or monster with Damage Reduction greater than 0% would receive damage, instead the damage the damage they take is equal to:
[math]\displaystyle{ \text{Damage Taken} = \text{Base Damage} * (1 - \text{Damage Reduction}) }[/math]
Note that the Combat Triangle will affect how much damage reduction the player has if they are using a different style from the monster.
Evasion Rating
Melee Evasion Rating
The first formula is used to calculate the player's Effective Defence Level.
[math]\displaystyle{ \small{\begin{aligned} \text{Effective Defence Level} = \text{Defence Skill Level} + 8 \end{aligned}} }[/math]
The second formula is used to calculate the player's Melee Evasion Rating. Melee Defence Bonus can be found in Equipment Stats under Defensive Stats with a shield icon. The potion and prayer bonuses will be the relevant numbers written in the potion and prayer descriptions.
[math]\displaystyle{ \small{\begin{aligned} \text{Evasion Rating} = \big\{ &\text{Effective Defence Level} * (\text{Melee Defence Bonus} + 64)\\ &* (1 + \text{Potion Evasion Rating Bonus} / 100) * (1 + \text{Prayer Evasion Rating Bonus} / 100) \big\} \end{aligned}} }[/math]
Ranged Evasion Rating
The first formula is used to calculate the player's Effective Defence Level.
[math]\displaystyle{ \small{\begin{aligned} \text{Effective Defence Level} = \text{Defence Skill Level} + 9 \end{aligned}} }[/math]
The second formula is used to calculate the player's Ranged Evasion Rating. Ranged Defence Bonus can be found in Equipment Stats under Defensive Stats with a bow and arrow icon. The potion and prayer bonuses will be the relevant numbers written in the potion and prayer descriptions.
[math]\displaystyle{ \small{\begin{aligned} \text{Ranged Evasion Rating} = \big\{ &\text{Effective Defence Level} * (\text{Ranged Defence Bonus} + 64)\\ &* (1 + \text{Potion Evasion Rating Bonus} / 100) * (1 + \text{Prayer Evasion Rating Bonus} / 100) \big\} \end{aligned}} }[/math]
Magic Evasion Rating
The first formula is used to calculate the player's Effective Magic Defence Level. The result here is always rounded down to the nearest whole number.
[math]\displaystyle{ \small{\begin{aligned} \text{Effective Magic Defence Level} = \text{Magic Skill Level} * 0.7 + \text{Defence Skill Level} * 0.3 + 9 \end{aligned}} }[/math]
The second formula is used to calculate the player's Magic Evasion Rating. Magic Defence Bonus can be found in Equipment Stats under Defensive Stats with a wizard hat icon. The potion and prayer bonuses will be the relevant numbers written in the potion and prayer descriptions.
[math]\displaystyle{ \small{\begin{aligned} \text{Magic Evasion Rating} = \big\{ &\text{Effective Magic Defence Level} * (\text{Magic Defence Bonus} + 64)\\ &* (1 + \text{Potion Evasion Rating Bonus} / 100) * (1 + \text{Prayer Evasion Rating Bonus} / 100) \big\} \end{aligned}} }[/math]
Damage Per Hit, Average Hit, and Damage Per Second
If a player or monster successfully connects with an attack, the damage dealt will be a random value between their minimum and maximum hit. If no relevant equipment or Auroras are active, the player's minimum hit is 1. The minimum hit is applied after all strength and damage bonuses are calculated, which means that only bonuses that directly impact minimum hit will affect minimum hit. (in other words, if a player's minimum hit is 40 and they have +10% damage, they still have a minimum hit of 40 rather than 44)
Damage Reduction is applied after this initial damage per hit is calculated, which means it is possible for a player to deal less than their minimum hit against a monster that has Damage Reduction.
The player's average hit is thus:
[math]\displaystyle{ \small{\begin{aligned} \text{Average Hit} = ((\text{Max Hit} + \text{Min Hit}) / 2) * (1 - \text{Enemy DR}) \end{aligned}} }[/math]
And their damage per second can be calculated as:
[math]\displaystyle{ \small{\begin{aligned} \text{DPS} = (\text{Average Hit} / \text{Attack Speed}) * \text{Hit Chance} \end{aligned}} }[/math]
Melvor Idle version v1.3 (Released: 13th June 2024) | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||
Skills:
| ||||||||||||||||||||
Other:
| ||||||||||||||||||||
Reference Tables: Items, Equipment, Experience Table, Upgrading Items, Combat Areas, Slayer Areas, Dungeons, Strongholds, The Abyss, Monsters |