Welcome to TRiBot Forums

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

roylk

open bank and put inventory on bank and close bank.

3 posts in this topic

i tryed to script my own a script that just open bank(any bank where i'm standing in) empty inv. and close bank. and then stops without loggin out. but every i try is not working. can someone help me?

 

-opening bank

-empty inventory in bank

-close bank

-stop script

Share this post


Link to post
Share on other sites

I typed this up really quick, hope it helps. It's extremely basic and not something you should use on an account you wish to keep.

This is also limited to major banks on runescape, if you wish to have other areas for banking you will have to change the method.

	private boolean Bank(){
		if(Banking.isInBank() && !Banking.isBankScreenOpen()){//If is in bank, and bank screen isn't open
			Banking.openBank();
			sleep(100,300); //Sleeps 100 to 300 milliseconds in case of bad loop to prevent lag
		}else if(Inventory.isFull() && Banking.isBankScreenOpen()){
			Banking.depositAll(); //If inventory is full & Bank screen is open, deposit all
			sleep(100,300); //Removable sleep
			Banking.close();
			sleep(100,300);
			//At this point, in your main loop you want a break point. 
			//This is how you end the script unless a different method is implemented.
		}
		return false;
		
	}

 

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.