Jump 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.

Using a Store Variable.

Featured Replies

Hello, i was just wondering how i would initialize a Store variable. after i trade him do i just do 'Store storename = new Store();"? how do i get it to use the correct one

Isn't it just getStore()?

Then you can do getStore().buy() or whatever.


NPC storeKeeper = getNpcs.closest("Name");

if (!getStore.isOpen) {

if (storeKeeper!=null) {

storeKeeper.interact("Trade");

}

}else {

getStore.buy("item",amount);

}

Edited by Juggles

Hello, i was just wondering how i would initialize a Store variable. after i trade him do i just do 'Store storename = new Store();"? how do i get it to use the correct one

It looks like you're trying to cache the items that are held in the store.

Just do Item[] cachedStoreItems = getStore().getItems()

  • Author

The Store variable is in the client, you don't have to declare and initialize it yourself.

You could just do Script#getStore() :)

thank you :) i didnt know this. solved my problem 

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

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.