From 243c026a014696b0aca233274880fd8a8a66c4c7 Mon Sep 17 00:00:00 2001 From: ceikry Date: Thu, 8 Jul 2021 19:16:13 -0500 Subject: [PATCH] Added config entry for Magnus Gram, fixed spawn location, added interaction destination override. --- Server/data/configs/npc_configs.json | 12 ++++++++++++ Server/data/configs/npc_spawns.json | 2 +- .../rs09/game/interaction/region/JatizsoListeners.kt | 4 ++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/Server/data/configs/npc_configs.json b/Server/data/configs/npc_configs.json index 9675528a2..17d710551 100644 --- a/Server/data/configs/npc_configs.json +++ b/Server/data/configs/npc_configs.json @@ -47193,6 +47193,18 @@ "range_level": "1", "attack_level": "1" }, + { + "name": "Magnus Gram", + "defence_level": "1", + "safespot": null, + "lifepoints": "10", + "combat_audio": "498,500,499", + "strength_level": "1", + "id": "5488", + "range_level": "1", + "attack_level": "1", + "facing_booth": "true" + }, { "examine": "A guard on insult duty.", "melee_animation": "0", diff --git a/Server/data/configs/npc_spawns.json b/Server/data/configs/npc_spawns.json index 1263d9e6f..e40306771 100644 --- a/Server/data/configs/npc_spawns.json +++ b/Server/data/configs/npc_spawns.json @@ -7637,7 +7637,7 @@ }, { "npc_id": "5488", - "loc_data": "{2416,3800,0,0,0}" + "loc_data": "{2416,3799,0,0,1}" }, { "npc_id": "5489", diff --git a/Server/src/main/kotlin/rs09/game/interaction/region/JatizsoListeners.kt b/Server/src/main/kotlin/rs09/game/interaction/region/JatizsoListeners.kt index 1578faf61..123ac5485 100644 --- a/Server/src/main/kotlin/rs09/game/interaction/region/JatizsoListeners.kt +++ b/Server/src/main/kotlin/rs09/game/interaction/region/JatizsoListeners.kt @@ -121,5 +121,9 @@ class JatizsoListeners : InteractionListener() { ContentAPI.sendMessage(player, "You ring the warning bell, but everyone ignores it!") return@on true } + + setDest(NPC, NPCs.MAGNUS_GRAM_5488){_ -> + return@setDest Location.create(2416, 3801, 0) + } } } \ No newline at end of file