Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • mrbankseed

    Members
    • Posts

      12
    • Joined

    • Last visited

    Recent Profile Visitors

    The recent visitors block is disabled and is not being shown to other users.

    mrbankseed's Achievements

    1. I think this script could use some improvements as mjayyy expressed. I bought it without a second thought because Dreamy's other scripts have been pretty on point. I was also hoping that after all this time, we could add some new quests to this script. Could you please consider it? Thanks. Best regards, Jason
    2. import org.dreambot.api.methods.Calculations; import org.dreambot.api.methods.input.Mouse; import org.dreambot.api.script.AbstractScript; import org.dreambot.api.script.ScriptManifest; import org.dreambot.api.script.Category; import org.dreambot.api.utilities.Timer; import org.dreambot.api.wrappers.interactive.GameObject; @ScriptManifest(author = "You", name = "Improved Tea Thiever", version = 1.0, description = "Advanced Tea Thieving Script", category = Category.THIEVING) public class Main extends AbstractScript { private static final int MIN_WAIT = 300; private static final int MAX_WAIT = 800; private static final int MOUSE_MOVE_RANGE = 20; private static final int LOOT_THRESHOLD = 100; private Timer antiBanTimer = new Timer(); private boolean antiBanActive = false; public void onStart() { log("Welcome to Improved Tea Thiever by Apaec."); log("If you experience any issues while running this script please report them to me on the forums."); log("Enjoy the script, gain some thieving levels!."); } private enum State { STEAL, DROP, WAIT }; private State getState() { GameObject stall = getGameObjects().getClosest("Tea stall"); if (!getInventory().isEmpty()) return State.DROP; if (stall != null) return State.STEAL; return State.WAIT; } public void onExit() { } @Override public int onLoop() { switch (getState()) { case STEAL: GameObject stall = getGameObjects().getClosest("Tea stall"); if (stall != null) { if (antiBanActive) { if (antiBanTimer.elapsed() >= MIN_WAIT) { Mouse.moveRandomly(MOUSE_MOVE_RANGE); antiBanTimer.reset(); } } else { stall.interact("Steal-from"); antiBanTimer.reset(); antiBanActive = true; } } break; case DROP: getInventory().getItems(item -> item.getName().equals("Cup of tea") && item.getValue() <= LOOT_THRESHOLD).forEach(item -> item.interact("Drop")); break; case WAIT: sleep(Calculations.random(MIN_WAIT, MAX_WAIT)); antiBanActive = false; break; } return Calculations.random(500, 600); } }
    3. Blast furnace isn't working for me. I start the script, and the script ends.
    4. When I try to start knight's sword quest, the script opens bank, stops, and quits. Why is this? I meet the requirements for the quest.
    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.