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.

Keeping track of a global variable

Featured Replies

34 minutes ago, LoudPacks said:

You can reference static variables from non-static instances.

it's still the same idea....

void thisIsDumb(){

 if(Main.badDesign){

  ...

 }

}

 

If u wanna share, just use get/set(multiple class). If u wanna make something public static, make sure it's immutable. If it's just within the same class.. public anything will do l0l

btw-- I c what u mean, i don messed up. But uh yea, no point having static if it's within the same class and if not then^

Edited by dreameo

1 hour ago, dreameo said:

it's still the same idea....

void thisIsDumb(){

 if(Main.badDesign){

  ...

 }

}

 

If u wanna share, just use get/set(multiple class). If u wanna make something public static, make sure it's immutable. If it's just within the same class.. public anything will do l0l

btw-- I c what u mean, i don messed up. But uh yea, no point having static if it's within the same class and if not then^

Yea it really depends on what you're trying to do. No point in using static vars / methods if you don't need to. I was just generalizing.

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.