Skip to content

Commit

Permalink
first pre release
Browse files Browse the repository at this point in the history
  • Loading branch information
Spigey committed May 1, 2024
1 parent 620d554 commit 66dc99c
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/main/java/spigey/asteroide/AsteroideAddon.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public void onInitialize() {
addModule(new AutoMacro());
addModule(new ExperimentalModules());
addModule(new BanStuffs());
addModule(new AutoSlotSwitchModule());
// addModule(new WordFilterModule());
// addModule(new AutoEz());

Expand Down
6 changes: 1 addition & 5 deletions src/main/java/spigey/asteroide/modules/AutoChatGame.java
Original file line number Diff line number Diff line change
Expand Up @@ -248,11 +248,7 @@ private void onTick(TickEvent.Post event) {
if(!isActive()){return;} // this got me banned off my favorite server
if(this.tick > 0){this.tick--; return;} // don't execute when it's not done waiting
if(this.tick == -1){return;} // disable when on -1
if (this.OutputMode == "send") {
msg(this.solution);
} else{
ChatUtils.sendMsg(Text.of(this.solution));
}
if (this.OutputMode == "send") {msg(this.solution);} else{ChatUtils.sendMsg(Text.of(this.solution));}
this.tick = -1;
}

Expand Down
34 changes: 34 additions & 0 deletions src/main/java/spigey/asteroide/modules/AutoSlotSwitchModule.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
package spigey.asteroide.modules;

import meteordevelopment.meteorclient.MeteorClient;
import meteordevelopment.meteorclient.events.world.TickEvent;
import meteordevelopment.meteorclient.mixininterface.IClientPlayerInteractionManager;
import meteordevelopment.meteorclient.systems.modules.Module;
import meteordevelopment.meteorclient.utils.player.InvUtils;
import meteordevelopment.orbit.EventHandler;
import spigey.asteroide.AsteroideAddon;
import spigey.asteroide.util;

public class AutoSlotSwitchModule extends Module {
public AutoSlotSwitchModule() {
super(AsteroideAddon.CATEGORY, "", "");
}
// delay
// slot range min
// slot range max
// slot priority
// mode random/next
private boolean SlotActivated = false;
@Override
public void onActivate() {
if(!SlotActivated){return;}
MeteorClient.EVENT_BUS.subscribe(this);
SlotActivated = true;
}
@EventHandler
private void onTick(TickEvent.Post event){
InvUtils.swap(util.randomNum(0,8), false);
}
}


0 comments on commit 66dc99c

Please sign in to comment.