March 1, 20196 yr Hi the goal is a very simple script. Start at GE -> teleport OUTSIDE of house with empty buckets in inventory. Fill buckets with sand and teleport back to the GE to deposit and repeat. However, there are no teleport to grand exchange or outside house options so I end up teleporting to varrock square or inside my house which is NOT what I want? Any ideas on how to solve this? My script so far: public final class FaovSand extends Script { @Override public final void onStart() { } @Override public final int onLoop() throws InterruptedException { getTabs().open(Tab.MAGIC); getBank().open(); getBank().withdrawAll("Bucket"); getBank().close(); if (getInventory().contains("Bucket")) { magic.castSpell(Spells.NormalSpells.TELEPORT_TO_HOUSE); } RS2Object sandpit = getObjects().closest("Sandpit"); getTabs().open(Tab.INVENTORY); getInventory().getItem("Bucket").interact("Use"); if (sandpit != null && sandpit.interact("Use")) { MethodProvider.sleep(5000); } long buckets = getInventory().getAmount("Bucket of sand"); log(buckets); if (getInventory().contains("Bucket of sand") && getInventory().getAmount("Bucket of sand") >= 26) { getTabs().open(Tab.MAGIC); magic.castSpell(Spells.NormalSpells.VARROCK_TELEPORT); } return 10000; } }
March 1, 20196 yr For spawning outside of your POH there is an option in the house menu ingame where to spawn and for GE im pretty sure you have to rightclick the spell ingame to change the location once you have the diary completed Edited March 1, 20196 yr by ez11
March 1, 20196 yr Like @ez11 said you can right click varrock teleport and select GE tele OR use ring of wealth.
March 1, 20196 yr Does that script actually work? I feel like it'd be much easier for you if you switched to task based scripts, instead of throwing it all in the onLoop method.
March 1, 20196 yr 1 hour ago, Medusaa said: Does that script actually work? I feel like it'd be much easier for you if you switched to task based scripts, instead of throwing it all in the onLoop method. It’s so small it really doesn’t matter, however I recommend better checks, and adding verification to booleans to make sure they return true before proceeding
March 1, 20196 yr Author Sorry this is my first script I'm trying simple things for now but I definitely will implement checks for each step. I CANNOT just change my house to teleport outside because that makes the left click option Outside house and the bot just right clicks and goes inside. Seems kinda counterproductive. Same thing for the GE but I'm not too worried about the bank location, there are other cities. I don't have a ring of wealth on this acc (low level ironman). Can anyone show me example code of right clicking on the spell or clicking on a house portal to exit the house? Thank you.
March 1, 20196 yr 4 hours ago, ProjectPact said: It’s so small it really doesn’t matter, however I recommend better checks, and adding verification to booleans to make sure they return true before proceeding Yea that's part of what I meant with my comment. Didn't express myself properly
March 2, 20196 yr Author Any idea on teleporting outside the house guys? Been reading through the API and I don't see any way around selecting a right click option with the spell cast function.
Create an account or sign in to comment