From 0d127b109a3cfea2243bc63a3d7294377621cdcb Mon Sep 17 00:00:00 2001 From: bushtail Date: Mon, 13 Feb 2023 02:41:21 +0000 Subject: [PATCH] Re-enabled access to blast furnace --- .../misc/keldagrim/handlers/KeldagrimPlugin.kt | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/Server/src/main/content/region/misc/keldagrim/handlers/KeldagrimPlugin.kt b/Server/src/main/content/region/misc/keldagrim/handlers/KeldagrimPlugin.kt index 496e0aaca..bfdcceff0 100644 --- a/Server/src/main/content/region/misc/keldagrim/handlers/KeldagrimPlugin.kt +++ b/Server/src/main/content/region/misc/keldagrim/handlers/KeldagrimPlugin.kt @@ -12,6 +12,7 @@ import core.game.world.map.Location import core.plugin.Initializable import core.plugin.Plugin import core.game.dialogue.DialogueFile +import core.game.node.entity.skill.Skills /** * File that contains several plugins relating to Keldagrim, @@ -116,14 +117,12 @@ class BlastFurnaceDoorDialogue : DialogueFile(){ var init = true override fun handle(componentID: Int, buttonID: Int) { if (init) { - //stage = if (player!!.getSkills().getLevel(Skills.SMITHING) >= 60) { - // 100 - //}else{ - // 5 - //} - //init = false - //uncomment the above out when BF gets fixed. - stage = 69 + stage = if (player!!.getSkills().getLevel(Skills.SMITHING) >= 60) { + 100 + } else { + 5 + } + init = false } when(stage){ 5 -> sendDialogue(player!!,"You must be Smithing Level 60 or higher in order to enter the Blast Furnace").also { stage = 10 } @@ -145,7 +144,6 @@ class BlastFurnaceDoorDialogue : DialogueFile(){ 20 -> sendDialogue(player!!,"Then get out of here!").also { stage = 40 } } 40 -> end() - 69 -> sendDialogue(player!!,"The Blast Furnace is temporarily closed down for maintenance.").also { end() } //Remove this line when BF gets fixed 100 -> player?.properties?.teleportLocation = Location.create(1940, 4958, 0).also { stage = 40 } } }