sacred brids 1 Share Posted July 9, 2017 So basically i'm trying to have my script go to the closest possible deposit or banking location. I currently have this snippet and want to change it from going to the Varrock banking area to basically the closest possible Bank or Deposit Box. else if (needsToBank()) { getWalking().walk(WebBankArea.VARROCK_WEST.getArea().getCenter()); Link to comment Share on other sites More sharing options...
Polymorphism 48 Share Posted July 9, 2017 This might be useful.. Link to comment Share on other sites More sharing options...
sacred brids 1 Author Share Posted July 9, 2017 This might be useful.. Would something like this work as well? I could define the area like this public static final Area BANK_AREA = new Area( new Tile(3013, 9718, 0) ); Then I could have it do this } else if (needsToBank()) { getWalking().walk(BANK_AREA.getCenter()); Link to comment Share on other sites More sharing options...
Just Chill 26 Share Posted July 9, 2017 Yes it would work but that doesnt get you the closest bank to you only a predetermined area of a bank. Do what Poly suggested if you want it to go to the closest bank regardless of where you are. If it's only meant for one area then just do what you said. Link to comment Share on other sites More sharing options...
Sacred 2 Share Posted July 9, 2017 Yes it would work but that doesnt get you the closest bank to you only a predetermined area of a bank. Do what Poly suggested if you want it to go to the closest bank regardless of where you are. If it's only meant for one area then just do what you said. Would you be able to answer a few questions for me? I'm still getting errors when trying to import import org.dreambot.api.methods.equipment.Equipment; and import org.dreambot.api.utilities.impl.Filter; Link to comment Share on other sites More sharing options...
Just Chill 26 Share Posted July 9, 2017 Would you be able to answer a few questions for me? I'm still getting errors when trying to import import org.dreambot.api.methods.equipment.Equipment; and import org.dreambot.api.utilities.impl.Filter; org.dreambot.api.methods.container.impl.equipment.Equipment and I don't know what you're using the filter one for? Link to comment Share on other sites More sharing options...
Sacred 2 Share Posted July 9, 2017 org.dreambot.api.methods.container.impl.equipment.Equipment and I don't know what you're using the filter one for? I sent you a message. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.