Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion BSCombatKiller.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import org.rev377.min.api.methods.Menu;
import org.rev377.min.api.methods.Npcs;
import org.rev377.min.api.methods.Players;
import org.rev377.min.api.methods.Camera;
import org.rev377.min.api.wrappers.GroundItem;
import org.rev377.min.api.wrappers.Item;
import org.rev377.min.api.wrappers.Npc;
Expand Down Expand Up @@ -81,6 +82,8 @@ public boolean activate() {

@Override
public void execute() {
if(f.distanceTo() < 15){//Checks to be sure item is within 15 tiles
Camera.moveRandomly();//Keeps you logged in and doesn't throw the GroundItem Error
f.interact(0);
Time.sleep(500);
}
Expand All @@ -101,7 +104,8 @@ public boolean activate() {

@Override
public void execute() {
if(q != null){
if(q.distanceTo() < 15 ){ //Checks to be sure item is within 15 tiles
Camera.moveRandomly();//Keeps you logged in and doesn't throw the GroundItem Error
q.interact(0); // Change to 1 if 0 doesn't work.
Time.sleep(500);

Expand Down