Skip to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Checking the bank

Featured Replies

 
public class Bank
extends ItemContainer
Represents the API regarding bank functionality.
 
contains
public boolean contains(java.util.List<Item> items)
Determines whether or not this containers contains any of the specified items.
Parameters:
items - The items to match.
Returns:
True if the containers contains at least one item matched.

 

getBank().contains("TriHard")

 

only check if the bank contains an item if the bank tab is open

  • 2 weeks later...
On 5/1/2017 at 9:58 PM, Chris said:


 

public class Bank
extends ItemContainer
Represents the API regarding bank functionality.
 

contains
public boolean contains(java.util.List<Item> items)
Determines whether or not this containers contains any of the specified items.
Parameters:
items - The items to match.
Returns:
True if the containers contains at least one item matched.

 


getBank().contains("TriHard")

 

Hi, 

Using that, how would I display # of a item in paint? I just need to be able to call it?

Maybe, puclic int = getbank... something...

Or would it be more complicated than that? Where I have to update a number every time I open the bank?

int numberOfPogChamps;

if (getBank().isOpen()){
    numberOfPogChamps += getBank().getAmount("PogChamp");
}

//onPaint
g.drawString("# of Pogchamps: " + numberOfPogChamps, 20, 50);

 

11 hours ago, Chris said:

int numberOfPogChamps;

if (getBank().isOpen()){
    numberOfPogChamps += getBank().getAmount("PogChamp");
}

//onPaint
g.drawString("# of Pogchamps: " + numberOfPogChamps, 20, 50);

 

This will add the bank amount each time you open the bank. So if you have 200 and open the bank twice it will say 400 instead of 200. You should update the var like:

 numberOfPogChamps += getBank().getAmount("PogChamp") - numberOfPogChamps;

//or

 numberOfPogChamps = getBank().getAmount("PogChamp")

This way it will only update the changes.

Edited by LoudPacks

6 hours ago, LoudPacks said:

This will add the bank amount each time you open the bank. So if you have 200 and open the bank twice it will say 400 instead of 200. You should update the var like:


 numberOfPogChamps += getBank().getAmount("PogChamp") - numberOfPogChamps;

//or

 numberOfPogChamps = getBank().getAmount("PogChamp")

This way it will only update the changes.

yeah u rite but i figured he would know that after a few tests xD

  • 2 weeks later...

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.