Jump to content

MansNoThot

Helpers
  • Posts

    54
  • Joined

  • Last visited

  • Days Won

    1

Other groups

Beta Tester

1 Follower

About MansNoThot

Helpers

Recent Profile Visitors

549 profile views

MansNoThot's Achievements

Steel Member

Steel Member (3/10)

  1. Great script! Made over 50M in about 20 hours of runtime!
  2. Love the guide! Hope it will help some people!
  3. Was waiting on someone to start one of these! Good luck and like sellout said, if you need anything dont hesitate to ask :)
  4. We are back! Welcome back!
  5. Welcome back! There are plenty of things coming in the future! Everyone should be prepared!
  6. I have mined a few potatoes! Gz on release!
  7. Gotta try this out! Nice release!
  8. Please watch this youtube video on how to get started with botting! https://www.youtube.com/watch?v=y0iPXTxG50Q&t
  9. import com.epicbot.api.shared.APIContext; import com.epicbot.api.shared.GameType; import com.epicbot.api.shared.entity.Player; import com.epicbot.api.shared.entity.SceneObject; import com.epicbot.api.shared.model.Area; import com.epicbot.api.shared.model.Tile; import com.epicbot.api.shared.script.LoopScript; import com.epicbot.api.shared.script.ScriptManifest; import com.epicbot.api.shared.util.paint.frame.PaintFrame; import com.epicbot.api.shared.util.time.Time; import com.epicbot.api.shared.webwalking.model.RSBank; import java.util.List; import java.awt.*; @ScriptManifest(name = "Thieving test", gameType = GameType.OS) public class mTeas extends LoopScript { private int stage = 0, teas = 0, startEXP, startingLevel; private SceneObject start; private long startTime; private Player localPlayer; private Area bankArea = new Area(3257, 3419, 3250, 3422); private Tile stallTile = new Tile(3268,3410,0); private SceneObject stall; private int getGainedLevels() { return getAPIContext().skills().thieving().getCurrentLevel() - startingLevel; } @Override protected void onPaint(Graphics2D g, APIContext ctx){ PaintFrame pf = new PaintFrame(); pf.setTitle("mTeaStealer"); pf.addLine("Runtime: ", Time.getFormattedRuntime(startTime)); pf.addLine("Theiving level: ", getAPIContext().skills().thieving().getCurrentLevel() + " (+" + (getGainedLevels()) + ")"); pf.draw(g, 0, 90, ctx); } private void walkToStall() { stallTile = new Tile(3268,3410,0); localPlayer = getAPIContext().localPlayer().get(); if (bankArea.contains(localPlayer) || stallTile != (localPlayer.getLocation())&& getAPIContext().inventory().isEmpty()) { getAPIContext().webWalking().walkTo(stallTile); } } private void bank() { localPlayer = getAPIContext().localPlayer().get(); getAPIContext().webWalking().walkTo(RSBank.VARROCK_EAST.getTile()); if (bankArea.contains(localPlayer)) { if (!getAPIContext().bank().isOpen()) { getAPIContext().bank().open(); Time.sleep(3000, () -> getAPIContext().bank().isOpen()); } } if ( getAPIContext().bank().isOpen()) { getAPIContext().bank().depositInventory(); } if (getAPIContext().bank().isOpen() && !getAPIContext().inventory().contains("Cup of tea")) { getAPIContext().bank().close(); } if (!getAPIContext().bank().isOpen() && getAPIContext().inventory().isEmpty()) { walkToStall(); } } private SceneObject getStall() { return getAPIContext().objects().query().nameMatches("Tea stall").visible().results().nearest(); } @Override protected int loop() { if (!getAPIContext().client().isLoggedIn()) { return 500; } if(getAPIContext().inventory().isFull()) { bank(); Time.sleep(3000,() -> getAPIContext().inventory().isEmpty()); }else { if (stallTile != getAPIContext().localPlayer().getLocation()) { walkToStall(); } stall = getStall(); if (stall != null && stall.interact("Steal-from")) { Time.sleep(9000, () -> getAPIContext().objects().query().actions("Steal-from").results().isEmpty()); Time.sleep(9000, () -> !getAPIContext().objects().query().actions("Steal-from").results().isEmpty()); } if(!stallTile.equals(getAPIContext().localPlayer().getLocation())) { getAPIContext().webWalking().walkTo(stallTile); } } return 1000; } @Override public boolean onStart(String... strings) { startingLevel = getAPIContext().skills().thieving().getCurrentLevel(); startTime = System.currentTimeMillis(); return true; } } Enjoy! Lmk If you have any problems 🙂
×
×
  • Create New...