Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import org.rsbot.script.Script;
- import org.rsbot.script.ScriptManifest;
- import org.rsbot.script.wrappers.RSObject;
- import org.rsbot.script.wrappers.RSTile;
- import org.rsbot.script.wrappers.RSArea;
- @ScriptManifest(authors = "Themanhunt", name = "AirCrafter", version = 1.0, description = "AirCrafter")
- public class airCrafter extends Script{
- public int ruinID = 2452; //Run id.
- public int bankBoothID = 11402; //Bank booth id.
- public int airAltarID = 2478; //Altar id.
- public int portalID = 2465; //Portal id.
- public RSArea bankArea = new RSArea(new RSTile(3182, 3433), new RSTile(3184, 3437)); //The bank area
- public RSTile bankToRuin[] = new RSTile[] { new RSTile(3181, 3430), new RSTile(3171, 3429), new RSTile(3162, 3421), new RSTile(3153, 3417), new RSTile(3143, 3414), new RSTile(3134, 3408), new RSTile(3129, 3405),}; //Bank to altar path
- //Walk randomly to the bank.
- private void bankToAir() {
- log("Walking to airaltar");
- walking.walkPathMM(bankToRuin);
- sleep(100);
- }
- //At the bank
- private boolean atBank() {
- return(bankArea.contains(getMyPlayer().getLocation()));
- }
- //What happens when the script start.
- public boolean onStart() {
- log("Welcome to AirCrafter.");
- return true;
- }
- //What happens when script stops.
- public void onFinish() {
- log("Air Crafter stopped.");
- }
- //The loop.
- public int loop() {
- if (atBank()) {
- log("We are at the bank.");
- bankToAir();
- }else if (!atBank())
- bankToAir();
- return (random(650, 950));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement