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.

skeleton script

Featured Replies

state is like declare the method?? like int food? int arrows?

 

You'd have to clarify that question..

 

BotState is an enum, a group of definitions/types.  I could give botState parameters; integers, strings, whatever.  I can then create an instance of BotState and set it equal to one of the types of BotState, and later check which it is.

 

An easier example of an enum would be something like:

private enum Planet {
         MARS(), JUPITER(), EARTH(), NEPTUNE();
}

I could then assign values to them like distance from earth or mass and add getter methods to it

private enum Planet {
         MARS(500, 20000), JUPITER(10000, 200000), EARTH(700, 100), NEPTUNE(100000, -500);

         private final double distance;
         private final double mass;

         public Planet(double distance, double mass){
               this.distance = distance;
               this.mass = mass; 
         }
  
         public double mass(){
                return mass;
         }

         public double distance(){
                return distance;
         }

}

This would allow me to make a variable currentPlanet, which I could set to any Planet that exists, earth, mars, whatever, and it would then contain that planets distance and mass, which I could check and use.  

 

I assume that's what you were asking.  :p

Guest
This topic is now closed to further replies.

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.