diff options
author | hannibal2 <24389977+hannibal002@users.noreply.github.com> | 2024-10-02 09:59:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-02 09:59:48 +0200 |
commit | 0864f1e1de572b955f356053ad9cb73be24d5683 (patch) | |
tree | 540c9be006afcd444b0af104a8c700a27feb122a /src/main/java/at/hannibal2/skyhanni/features/event | |
parent | d06878ca5d28d20fa835a41a0f931c7a123dffb8 (diff) | |
download | skyhanni-0864f1e1de572b955f356053ad9cb73be24d5683.tar.gz skyhanni-0864f1e1de572b955f356053ad9cb73be24d5683.tar.bz2 skyhanni-0864f1e1de572b955f356053ad9cb73be24d5683.zip |
Automatically stating pathfind after clicking the hypixel reminder ch… (#2635)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/event')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/event/carnival/CarnivalReminder.kt | 7 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityNpc.kt | 11 |
2 files changed, 17 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/carnival/CarnivalReminder.kt b/src/main/java/at/hannibal2/skyhanni/features/event/carnival/CarnivalReminder.kt index eff751661..d77861872 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/event/carnival/CarnivalReminder.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/event/carnival/CarnivalReminder.kt @@ -1,6 +1,9 @@ package at.hannibal2.skyhanni.features.event.carnival import at.hannibal2.skyhanni.SkyHanniMod +import at.hannibal2.skyhanni.data.EntityMovementData +import at.hannibal2.skyhanni.data.IslandGraphs +import at.hannibal2.skyhanni.data.IslandType import at.hannibal2.skyhanni.data.Perk import at.hannibal2.skyhanni.data.ProfileStorageData import at.hannibal2.skyhanni.events.LorenzChatEvent @@ -11,6 +14,7 @@ import at.hannibal2.skyhanni.skyhannimodule.SkyHanniModule import at.hannibal2.skyhanni.utils.ChatUtils import at.hannibal2.skyhanni.utils.HypixelCommands import at.hannibal2.skyhanni.utils.LorenzUtils +import at.hannibal2.skyhanni.utils.LorenzVec import at.hannibal2.skyhanni.utils.RegexUtils.matches import at.hannibal2.skyhanni.utils.SimpleTimeMark import at.hannibal2.skyhanni.utils.SimpleTimeMark.Companion.fromNow @@ -90,6 +94,9 @@ object CarnivalReminder { "warp to The Carnival", ) { HypixelCommands.warp("carnival") + EntityMovementData.onNextTeleport(IslandType.HUB) { + IslandGraphs.pathFind(LorenzVec(-89.5, 71.0, -18.7), "§aCarnival Tickets", condition = { config.reminderDailyTickets }) + } } nextCheckTime = 5.0.minutes.fromNow() } diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityNpc.kt b/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityNpc.kt index c120c3d64..0546e5ff9 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityNpc.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityNpc.kt @@ -1,5 +1,8 @@ package at.hannibal2.skyhanni.features.event.hoppity +import at.hannibal2.skyhanni.data.EntityMovementData +import at.hannibal2.skyhanni.data.IslandGraphs +import at.hannibal2.skyhanni.data.IslandType import at.hannibal2.skyhanni.events.GuiContainerEvent import at.hannibal2.skyhanni.events.InventoryCloseEvent import at.hannibal2.skyhanni.events.InventoryFullyOpenedEvent @@ -15,6 +18,7 @@ import at.hannibal2.skyhanni.utils.InventoryUtils import at.hannibal2.skyhanni.utils.ItemUtils.getLore import at.hannibal2.skyhanni.utils.LorenzColor import at.hannibal2.skyhanni.utils.LorenzUtils +import at.hannibal2.skyhanni.utils.LorenzVec import at.hannibal2.skyhanni.utils.RenderUtils.highlight import at.hannibal2.skyhanni.utils.SimpleTimeMark import at.hannibal2.skyhanni.utils.SkyBlockTime @@ -60,7 +64,12 @@ object HoppityNpc { actionName = "warp to hub", action = { HypixelCommands.warp("hub") - //afterNextIslandwarpTtp hub: IslandGraphs.pathFind(hoppity) + EntityMovementData.onNextTeleport(IslandType.HUB) { + IslandGraphs.pathFind( + LorenzVec(6.4, 70.0, 7.4), + "§aHoppity's Shop", + condition = { config.hoppityShopReminder }) + } }, ) |