From 43cd0d086fcf771076ad8991bd252d83b78ad20b Mon Sep 17 00:00:00 2001 From: ceikry Date: Sat, 3 Jul 2021 20:06:25 -0500 Subject: [PATCH] Fixed construction merchant lad --- Server/data/configs/npc_spawns.json | 2 +- .../src/main/kotlin/rs09/game/system/config/NPCConfigParser.kt | 1 + Server/src/main/kotlin/rs09/game/system/config/NPCSpawner.kt | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Server/data/configs/npc_spawns.json b/Server/data/configs/npc_spawns.json index 231db13bb..71007e5e0 100644 --- a/Server/data/configs/npc_spawns.json +++ b/Server/data/configs/npc_spawns.json @@ -6081,7 +6081,7 @@ }, { "npc_id": "4250", - "loc_data": "{3302,3492,0,1,3}" + "loc_data": "{3302,3492,0,1,6}" }, { "npc_id": "4251", diff --git a/Server/src/main/kotlin/rs09/game/system/config/NPCConfigParser.kt b/Server/src/main/kotlin/rs09/game/system/config/NPCConfigParser.kt index f7fef7961..88e5ece5c 100644 --- a/Server/src/main/kotlin/rs09/game/system/config/NPCConfigParser.kt +++ b/Server/src/main/kotlin/rs09/game/system/config/NPCConfigParser.kt @@ -255,6 +255,7 @@ NPCConfigParser { "aggressive", "poisonous", "poison_immune", + "facing_booth", "water_npc"-> configs.put(it.key.toString(), it.value.toString().toBoolean()) else -> SystemLogger.logWarn("Unhandled key for npc config: ${it.key.toString()}") } diff --git a/Server/src/main/kotlin/rs09/game/system/config/NPCSpawner.kt b/Server/src/main/kotlin/rs09/game/system/config/NPCSpawner.kt index 22cf9015d..69a11a2c3 100644 --- a/Server/src/main/kotlin/rs09/game/system/config/NPCSpawner.kt +++ b/Server/src/main/kotlin/rs09/game/system/config/NPCSpawner.kt @@ -31,6 +31,9 @@ class NPCSpawner { npc.isWalks = tokens[3].trim { it <= ' ' } == "1" npc.direction = Direction.values()[Integer.valueOf(tokens[4].trim { it <= ' ' })] npc.setAttribute("spawned:npc", true) + if(npc.definition.getConfiguration("facing_booth",false)){ + npc.setAttribute("facing_booth",true) + } npc.init() count++ }