NpcCombatStats

A value shape that methods take or return.

Group
player
Methods
None
Fields
19

Getting one

client:getNpcDefinition(…):getCombatStats()

Fields

FieldTypeDescription
attacknumberAttack level.
defencenumberDefence level.
strengthnumberStrength level.
hitpointsnumberHitpoints level: the NPC's full health.
rangednumberRanged level.
magicnumberMagic level.
attackStabnumberStab attack bonus.
attackSlashnumberSlash attack bonus.
attackCrushnumberCrush attack bonus.
attackMagicnumberMagic attack bonus.
attackRangednumberRanged attack bonus.
defenceStabnumberStab defence bonus.
defenceSlashnumberSlash defence bonus.
defenceCrushnumberCrush defence bonus.
defenceMagicnumberMagic defence bonus.
defenceRangednumber?Ranged defence bonus: nil for every NPC but the sailing sea creatures, as the game cache holds no ranged defence for the rest.
meleeStrengthnumberMelee strength bonus.
rangedStrengthnumberRanged strength bonus.
magicDamagenumberMagic damage bonus, in percent.

Returned by

MethodReturnsDescription
NPCComposition.getCombatStatsNpcCombatStatsBento-only: the type's levels and bonuses by name (an NpcCombatStats). The bonuses are the params the game cache sets on the type; the ga…