From b64a5955620166ebeb2aea174a2b04571479ecb4 Mon Sep 17 00:00:00 2001 From: Robby De Date: Sat, 29 Oct 2022 13:00:02 +0000 Subject: [PATCH] Fixed adventure bots not pickpocketing properly --- .../rs09/game/ai/general/scriptrepository/ManThiever.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Server/src/main/kotlin/rs09/game/ai/general/scriptrepository/ManThiever.kt b/Server/src/main/kotlin/rs09/game/ai/general/scriptrepository/ManThiever.kt index a0372a06b..e1e54a268 100644 --- a/Server/src/main/kotlin/rs09/game/ai/general/scriptrepository/ManThiever.kt +++ b/Server/src/main/kotlin/rs09/game/ai/general/scriptrepository/ManThiever.kt @@ -2,12 +2,16 @@ package rs09.game.ai.general.scriptrepository import core.game.node.item.Item import rs09.game.ai.skillingbot.SkillingBotAssembler +import rs09.game.interaction.IntType +import rs09.game.interaction.InteractionListeners import java.util.* class ManThiever : Script() { override fun tick() { val man = scriptAPI.getNearestNode("Man") - man?.interaction?.handle(bot, man.interaction[2]) + bot.interfaceManager.close() + man?.let { InteractionListeners.run(man.id, + IntType.NPC,"Pickpocket",bot,man) } } override fun newInstance(): Script? {