From ede7068d0ee9f7e022141c181b6fb67eb53dda24 Mon Sep 17 00:00:00 2001 From: Badhad <46411657+BadHad@users.noreply.github.com> Date: Fri, 2 Apr 2021 17:41:21 -0400 Subject: [PATCH] Adventure Bots - Fixed News: Logs being sold spam. - Slight tweaks to adventure bots. --- .../src/main/kotlin/rs09/game/ai/general/ScriptAPI.kt | 10 +++++++++- .../game/ai/general/scriptrepository/Adventurer.kt | 1 - 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Server/src/main/kotlin/rs09/game/ai/general/ScriptAPI.kt b/Server/src/main/kotlin/rs09/game/ai/general/ScriptAPI.kt index 5e6e6ee0c..6599dd5e7 100644 --- a/Server/src/main/kotlin/rs09/game/ai/general/ScriptAPI.kt +++ b/Server/src/main/kotlin/rs09/game/ai/general/ScriptAPI.kt @@ -483,7 +483,15 @@ class ScriptAPI(private val bot: Player) { } val canSell = OfferManager.addBotOffer(actualId, itemAmt) if (canSell && saleIsBigNews(actualId, itemAmt)) { - Repository.sendNews("2009Scape just offered " + itemAmt + " " + ItemDefinition.forId(actualId).name.toLowerCase() + " on the GE.") + when (actualId){ + 1511 -> continue + 1513 -> continue + 1515 -> continue + 1517 -> continue + 1519 -> continue + 1521 -> continue + else -> Repository.sendNews("2009Scape just offered " + itemAmt + " " + ItemDefinition.forId(actualId).name.toLowerCase() + " on the GE.") + } } bot.bank.remove(item).also { SystemLogger.logAI("$item has been listed on the GE.") } bot.bank.refresh() diff --git a/Server/src/main/kotlin/rs09/game/ai/general/scriptrepository/Adventurer.kt b/Server/src/main/kotlin/rs09/game/ai/general/scriptrepository/Adventurer.kt index da15b7692..28f2e26a4 100644 --- a/Server/src/main/kotlin/rs09/game/ai/general/scriptrepository/Adventurer.kt +++ b/Server/src/main/kotlin/rs09/game/ai/general/scriptrepository/Adventurer.kt @@ -809,7 +809,6 @@ class Adventurer(val style: CombatStyle): Script() { } init { - skills[Skills.AGILITY] = 99 inventory.add(Item(1359))//Rune Axe skills[Skills.WOODCUTTING] = 95