f4i13rr0r 1 Share Posted May 25, 2023 (edited) Meant for bots || scripts with more than one task. Spoiler package Proof; import org.dreambot.api.methods.interactive.Players; import org.dreambot.api.methods.map.Area; import org.dreambot.api.methods.map.Tile; import org.dreambot.api.methods.walking.impl.Walking; import org.dreambot.api.script.AbstractScript; import org.dreambot.api.script.Category; import org.dreambot.api.script.ScriptManifest; @ScriptManifest(category = Category.MISC, name = "Proof", author = "f4i13rr0r", version = 0) public class Proof extends AbstractScript { @Override public void onStart() { } @Override public int onLoop() { final Area Draynor = new Area( new Tile(3092, 3240, 0), new Tile(3097, 3240, 0), new Tile(3097, 3246, 0), new Tile(3092, 3246, 0)); final Area Lumbridge = new Area( new Tile(3218, 3216, 0), new Tile(3224, 3216, 0), new Tile(3224, 3221, 0), new Tile(3218, 3221, 0)); while (!Draynor.contains(Players.getLocal())) { if (Lumbridge.contains(Players.getLocal())) { Walking.walk(Draynor.getRandomTile()); sleep(1000,9000); } else { while (!Lumbridge.contains(Players.getLocal())) { if (!Draynor.contains(Players.getLocal())) { Walking.walk(Draynor.getRandomTile()); sleep(1000, 9000); } else { break; } } } } while (!Lumbridge.contains(Players.getLocal())) { if (Draynor.contains(Players.getLocal())) { Walking.walk(Lumbridge.getRandomTile()); sleep(11000,13000); while (!Draynor.contains(Players.getLocal())) { if (Lumbridge.contains(Players.getLocal())) { sleep(11000,13000); break; } else { Walking.walk(Lumbridge.getRandomTile()); sleep(1000, 9000); } } } } return 0; } @Override public void onExit() { } } Spoiler GitHub Java source file Edited May 25, 2023 by f4i13rr0r Link to comment Share on other sites More sharing options...
Zenz101 0 Share Posted June 5, 2023 See post: Link to comment Share on other sites More sharing options...
wicker558 5 Share Posted June 6, 2023 lmao are you joking with those while loops? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now