From 38505f7d513368327028e3d80213432beebd174f Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal002@users.noreply.github.com> Date: Fri, 2 Aug 2024 11:07:55 +0200 Subject: Fix: Visitor Shopping List AH items (#2297) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- .../skyhanni/features/garden/visitor/GardenVisitorFeatures.kt | 7 ++++++- src/main/java/at/hannibal2/skyhanni/utils/HypixelCommands.kt | 4 ++++ 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'src/main') diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt index 3372c2abd..73384c9f0 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt @@ -23,6 +23,7 @@ import at.hannibal2.skyhanni.features.garden.GardenAPI import at.hannibal2.skyhanni.features.garden.farming.GardenCropSpeed.getSpeed import at.hannibal2.skyhanni.features.garden.visitor.VisitorAPI.blockReason import at.hannibal2.skyhanni.features.inventory.bazaar.BazaarApi +import at.hannibal2.skyhanni.features.inventory.bazaar.BazaarApi.isBazaarItem import at.hannibal2.skyhanni.mixins.hooks.RenderLivingEntityHelper import at.hannibal2.skyhanni.skyhannimodule.SkyHanniModule import at.hannibal2.skyhanni.test.command.ErrorManager @@ -201,7 +202,11 @@ object GardenVisitorFeatures { if (Minecraft.getMinecraft().currentScreen is GuiEditSign) { LorenzUtils.setTextIntoSign("$amount") } else { - BazaarApi.searchForBazaarItem(name, amount) + if (internalName.isBazaarItem()) { + BazaarApi.searchForBazaarItem(name, amount) + } else { + HypixelCommands.auctionSearch(name.removeColor()) + } } }, ) { GardenAPI.inGarden() && !NEUItems.neuHasFocus() }, diff --git a/src/main/java/at/hannibal2/skyhanni/utils/HypixelCommands.kt b/src/main/java/at/hannibal2/skyhanni/utils/HypixelCommands.kt index 4df630dbe..032b81672 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/HypixelCommands.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/HypixelCommands.kt @@ -12,6 +12,10 @@ object HypixelCommands { send("bz $searchTerm") } + fun auctionSearch(searchTerm: String) { + send("ahs $searchTerm") + } + fun playtime() { send("playtime") } -- cgit