Overview
Hyperscape uses RuneScape-style tick-based combat with authentic mechanics including attack styles, accuracy formulas, and damage calculations.Tick System
Combat operates on a 600ms tick cycle, matching Old School RuneScape:Combat Stats
Combat Level
Aggregate level calculated from combat stats:Attack Styles
Players choose how XP is distributed:Damage Calculation
The combat system uses OSRS-style formulas with equipment bonuses:OSRS Constants
Ranged Combat
Ranged combat uses bows and arrows for long-distance attacks:Requirements
- Bow equipped in weapon slot (shortbow, oak shortbow, willow shortbow, maple shortbow)
- Arrows equipped in arrow slot (bronze, iron, steel, mithril, adamant)
- Arrows consumed on each attack (not recoverable)
Bow Tiers
Arrow Types
Ranged Prayers
Magic Combat
Magic combat uses staves and runes to cast combat spells:Requirements
- Staff equipped in weapon slot (staff, magic staff, elemental staves)
- Runes in inventory for spell casting
- Sufficient Magic level for the spell
Staves
Combat Spells
Strike Spells (Low-level):
Bolt Spells (Mid-level):
Runes
Elemental Runes:- Air rune (4 gp)
- Water rune (4 gp)
- Earth rune (4 gp)
- Fire rune (4 gp)
- Mind rune (3 gp) - Used for Strike spells
- Chaos rune (90 gp) - Used for Bolt spells
Magic Prayers
Elemental staves provide infinite runes of their element, significantly reducing spell costs. For example, a Staff of Air provides infinite air runes for all spells.
Death Mechanics
When health reaches zero:- Items drop at death location (headstone)
- Player respawns at nearest starter town
- Headstone persists for item retrieval
- Other players cannot loot your headstone
Mob Aggression
Aggro Range
Each mob has adetectionRange. Entering this range triggers combat for aggressive mobs.
Chase Behavior
Mobs return to spawn point if player escapes theirleashRange.
Loot System
On mob death:
Drop tables are defined in
packages/shared/src/data/npcs.ts.
Duel Arena (PvP)
The Duel Arena is a dedicated PvP zone where players can challenge each other to combat with customizable rules and stakes.Location
The Duel Arena consists of:- Lobby (center: x=250, z=295) - Main gathering area with spawn point
- Hospital (center: x=210, z=295) - Healing area with Nurse Sarah
- 6 Combat Arenas - 16×16 tile arenas arranged in 2×3 grid with trapdoors
Arena Layout
NPCs
- Nurse Sarah (Hospital) - Restores health and prayer points
- Duel Scoreboard (Lobby) - View rankings and statistics
- Duel Master Marcus (Lobby) - Provides guidance on dueling
Features
- Safe Zones: Lobby and hospital are PvP-disabled
- Duel-Only Combat: Arena zones only allow consensual duels
- Bank Access: Bank chest available in lobby
- Healing Services: Free health and prayer restoration at hospital
- Trapdoors: Each arena has 4 trapdoors at corners for hazards
Duel Mechanics
Players can challenge others to duels with:- Customizable Rules: Combat restrictions (no ranged, no food, no forfeit, etc.)
- Equipment Restrictions: Disable specific equipment slots
- Stakes: Bet inventory items on the outcome
- Anti-Scam Protection: Acceptance resets when stakes change
Right-click another player and select “Challenge to Duel” to begin. Both players must agree to rules and stakes before combat starts.