Skip to content
ASArcaneMP Scripting APIScripting reference
Data shapeServer APIGenerated

PvpRules

Defined in: server/api.d.ts:5715

The server’s PvP rules (Pvp.configure / Pvp.getRules).

aim: "lock" | "skillshot"

Defined in: server/api.d.ts:5729

How hostile players aim at each other unless a pair says otherwise. Default lock.


cooldowns: "full" | "fast"

Defined in: server/api.d.ts:5769

full (default) gives spells their whole cooldown in a PvP fight: while a hostile player is within 50 m, or for flagCombatLockSeconds after a PvP hit. fast keeps the game’s out-of-combat recharge, about 0.33 s for most combat spells.


curses: "on" | "off" | "crosshair"

Defined in: server/api.d.ts:5744

off keeps the unforgivable curses away from players, and modded spells whose own damage kills or whose record names one. Default on. The game casts Avada Kedavra, Crucio and Imperio only at a locked target, so with on they reach a player only through lock-on. crosshair is on, and also lets them reach a hostile player you fight in skillshot while your crosshair is on them and you hold no lock; lock-on still never picks that player.


damageScale: number

Defined in: server/api.d.ts:5764

Multiplies the spell table, but not the killing curse. Default 1.


defeat: "death" | "kneel"

Defined in: server/api.d.ts:5734

What losing does unless a pair says otherwise: death (default), or kneel at kneelHp.


enabled: boolean

Defined in: server/api.d.ts:5719

Master switch: false stops all PvP, pairs included. Default true.


flagCombatLockSeconds: number

Defined in: server/api.d.ts:5754

How long after a PvP hit a player cannot unflag. Default 15.


friendlyFire: boolean

Defined in: server/api.d.ts:5739

Teammates may hurt each other. Default false.


kneelHp: number

Defined in: server/api.d.ts:5749

The health a kneel defeat leaves. Default 1.


kneelSeconds: number

Defined in: server/api.d.ts:5779

How long a kneel defeat keeps the player down before they stand up on their own. 0 keeps them kneeling until player.endKneel. Default 4.


moddedSpellCap: number

Defined in: server/api.d.ts:5774

The most a modded spell (one outside the built-in table) may cost per hit, before damageScale. Such a spell is priced from the caster’s own copy of its game data, which the server cannot check. Pvp.setSpellDamage and the policy are not capped, and a modded spell whose own damage kills stays lethal. Default 100.


spawnProtectionSeconds: number

Defined in: server/api.d.ts:5759

How long a player killed in PvP is protected once back up; their own hit ends it. Default 5.


who: "none" | "flagged" | "teams" | "everyone"

Defined in: server/api.d.ts:5724

Who is hostile by default (pairs always win): none (default) only pairs; flagged two flagged players; teams two players on different teams; everyone everybody.