(592) OSRS Wiki NPC Combat Information
Edit: Title may be misleading, this post only contains information for npcs from the revision 592, dumped using the osrs wiki, no osrs npcs will be found in this post
Edit 2: I've added more fields, but these were NOT taken from osrs, these were default variables from the original matrix npc combat definitions
Some files were skipped due to there being some inconsistencies on the wiki with how the data was added.
[Only registered and activated users can see links. Click Here To Register...]
The name field serves no purpose other than readability
Code:
public class NpcCombatDefinition {
private String name;
private int hitpoints;
private boolean aggressive;
private boolean poisonous;
private int max_hit;
private boolean immuneToPoison;
private boolean immuneToVenom;
private int attackSpeed;
private List<String> weaknesses = new LinkedList<>();
private List<AttackStyle> attackStyles = new LinkedList<>();
private int[] combatStats = new int[5];
private int[] aggressiveStats = new int[5];
private int[] defensiveStats = new int[5];
private int[] otherStats = new int[3];
private int attackAnimation;
private int defendAnimation;
private int deathAnimation;
private int deathDelay;
private int respawnDelay;
private int attackGraphic;
private int attackProjectile;
public enum AttackStyle {
MELEE_CRUSH,
MELEE_SLASH,
MELEE_STAB,
RANGED,
MAGIC
}
}
Code:
"6113": {
"name": "Duck",
"hitpoints": 3,
"aggressive": false,
"poisonous": false,
"max_hit": 0,
"immuneToPoison": false,
"immuneToVenom": false,
"attackSpeed": 4,
"weaknesses": [
"Earth spells"
],
"attackStyles": [
"MELEE_CRUSH"
],
"combatStats": [
1,
1,
1,
1,
1
],
"aggressiveStats": [
0,
0,
0,
0,
0
],
"defensiveStats": [
-42,
-42,
-42,
-42,
-42
],
"otherStats": [
0,
0,
0
],
"attackAnimation": 747,
"defendAnimation": 3268,
"deathAnimation": 750,
"deathDelay": 1,
"respawnDelay": 60,
"attackGraphic": -1,
"attackProjectile": -1
}