Documentation ¶
Index ¶
Constants ¶
View Source
const ClaimHiveRoutineKind RoutineKind = "ClaimHive"
View Source
const GotoCannonRoutineKind RoutineKind = "GotoCannon"
Variables ¶
View Source
var AllHiveImages = ImageSteps{ SelectCoordinate(Change, Add(S[int]("honeyOffsetX"), 110), 0, Add(S[int]("honeyOffsetX"), 600), Add(S[int]("honeyOffsetY"), 23), ), Variance(0), Direction(0), Search("claimhive", "sendtrade", "tradelocked", "tradedisabled").Find(), }
View Source
var ClaimHiveImage = ImageSteps{ SelectCoordinate(Change, Add(S[int]("honeyOffsetX"), 110), 0, Add(S[int]("honeyOffsetX"), 500), Add(S[int]("honeyOffsetY"), 23), ), Variance(1), Direction(0), Search("claimhive").Find(), }
View Source
var ClaimHiveRoutine = Actions{ KeyDown(Forward), Loop( Forever(), Condition( If(Image(AllHiveImages...).Found()), KeyUp(Forward), Walk(Backward, 2), Break(), ), Sleep(10), ), Sleep(100), Condition( If(Image(ClaimHiveImage...).Found()), SetState("counters.claimedHive", 3), KeyPress(E), Walk(Backward, 4), Info("Claimed Hive: 3")(Status, Discord), Terminate(), ), Set("CheckDirection", -1), Set("CheckedHives", 1), Set("CheckingHive", 3), Set("CheckSkip", 0), Loop( Until(Or( Equal(V[int]("CheckedHives"), 6), NotEqual(MS[int]("counters.claimedHive"), -1), )), Subroutine(MoveToNextHive), ), Condition( If(Equal(MS[int]("counters.claimedHive"), -1)), Error("Failed to claim hive!")(Status, Discord), Sleep(5).Seconds(), Redirect("OpenRoblox"), ), Info("Claimed Hive: %d", MS[int]("counters.claimedHive"))(Status, Discord), }
View Source
var GotoCannonRoutine = Actions{ Walk(Forward, 12), Loop( For(MS[int]("counters.claimedHive")), Walk(Right, 37), ), KeyDown(Right), KeyPress(Space), Sleep(1300), KeyPress(Space), Loop( For(500), Condition( If(Image(PressEImage...).Found()), KeyUp(Right), Terminate(), ), Sleep(10), ), Error("Failed to goto cannon!")(Status, Discord), Sleep(5).Seconds(), ResetCharacter(), Restart(), }
View Source
var MoveToNextHive = Actions{ Condition( If(And(Equal(V[int]("CheckingHive"), 1), Equal(V[int]("CheckDirection"), -1))), Set("CheckDirection", 1), Set("CheckSkip", V[int]("CheckedHives")), ), Condition( If(Equal(V[int]("CheckDirection"), 1)), KeyDown(Left), Increment("CheckingHive"), Else(), KeyDown(Right), Decrement("CheckingHive"), ), Loop( Until(Image(AllHiveImages...).NotFound()), Sleep(10), ), Loop( Forever(), Condition( If(Image(ClaimHiveImage...).Found()), KeyUp(Left), KeyUp(Right), SetState("counters.claimedHive", V[int]("CheckingHive")), KeyPress(E), Terminate(), ), Condition( If(Or( Image(SendTradeImage...).Found(), Image(TradeDisabledImage...).Found(), Image(TradeLockedImage...).Found(), )), Break(), ), Sleep(10), ), Condition( If(Equal(V[int]("CheckSkip"), 0)), KeyUp(Left), KeyUp(Right), Increment("CheckedHives"), Else(), Decrement("CheckSkip"), ), Sleep(100), }
View Source
var PressEImage = ImageSteps{ SelectCoordinate(Change, Add(S[int]("honeyOffsetX"), 110), 0, Add(S[int]("honeyOffsetX"), 600), Add(S[int]("honeyOffsetY"), 23), ), Variance(0), Direction(0), Search("press_e").Find(), }
View Source
var SendTradeImage = ImageSteps{ SelectCoordinate(Change, Add(S[int]("honeyOffsetX"), 110), 0, Add(S[int]("honeyOffsetX"), 500), Add(S[int]("honeyOffsetY"), 23), ), Variance(1), Direction(0), Search("sendtrade").Find(), }
View Source
var TradeDisabledImage = ImageSteps{ SelectCoordinate(Change, Add(S[int]("honeyOffsetX"), 110), 0, Add(S[int]("honeyOffsetX"), 500), Add(S[int]("honeyOffsetY"), 23), ), Variance(1), Direction(0), Search("tradedisabled").Find(), }
View Source
var TradeLockedImage = ImageSteps{ SelectCoordinate(Change, Add(S[int]("honeyOffsetX"), 110), 0, Add(S[int]("honeyOffsetX"), 500), Add(S[int]("honeyOffsetY"), 23), ), Variance(1), Direction(0), Search("tradelocked").Find(), }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.