From a0d28b2f42ae9099d58fd69733682f306650d465 Mon Sep 17 00:00:00 2001 From: Max Weber Date: Tue, 13 Apr 2021 10:52:03 -0600 Subject: [PATCH] cache/NpcLoader: add category opcode from rev 195 --- .../java/net/runelite/cache/definitions/NpcDefinition.java | 1 + .../net/runelite/cache/definitions/loaders/NpcLoader.java | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/cache/src/main/java/net/runelite/cache/definitions/NpcDefinition.java b/cache/src/main/java/net/runelite/cache/definitions/NpcDefinition.java index ddfabfe367..4c66d95fd8 100644 --- a/cache/src/main/java/net/runelite/cache/definitions/NpcDefinition.java +++ b/cache/src/main/java/net/runelite/cache/definitions/NpcDefinition.java @@ -64,4 +64,5 @@ public class NpcDefinition public boolean rotationFlag = true; public boolean isPet; public Map params; + public int category; } diff --git a/cache/src/main/java/net/runelite/cache/definitions/loaders/NpcLoader.java b/cache/src/main/java/net/runelite/cache/definitions/loaders/NpcLoader.java index 0ce81f864b..1804340bcb 100644 --- a/cache/src/main/java/net/runelite/cache/definitions/loaders/NpcLoader.java +++ b/cache/src/main/java/net/runelite/cache/definitions/loaders/NpcLoader.java @@ -98,6 +98,10 @@ else if (opcode == 17) def.rotate90RightAnimation = stream.readUnsignedShort(); def.rotate90LeftAnimation = stream.readUnsignedShort(); } + else if (opcode == 18) + { + def.category = stream.readUnsignedShort(); + } else if (opcode >= 30 && opcode < 35) { def.actions[opcode - 30] = stream.readString();