name: "attack" category: "Combat" description: | Attack a mob in the current room. Usage: attack , kill attack 1.man, kill 2.man Enter combat with the named mob. If multiple mobs with different names match your input, you'll be asked "Which one?" — type a more specific name. Prefix with a number to target a specific instance of the same name (e.g. "attack 1.man"). Plain "attack man" targets the first. Attacks occur at weapon speed on the 600ms tick. Use "style" to change combat style. Move in any direction to attempt to flee combat. Damage formula (OSRS-standard): Max hit = (EffectiveStrength * (StrBonus + 64) + 320) / 640 Attack roll = EffectiveAttack * (AttackBonus + 64) Defense roll = (mob.Defense + 9) * (mobDefBonus + 64) Hit chance: if AtkRoll > DefRoll: 1 - (Def+2)/(2*Atk), else Atk/(2*Def) Damage: roll [0, MaxHit], 0 becomes 1 Effective level = base_level + style_bonus + tech_boosts + 8 (player) base_level + 9 (NPC/defense) base_level + 9 (science, no style bonus) See 'combat', 'stats', 'style', and 'science' for details.