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.

Get Fairy Ring current value

Featured Replies

This will return the character that your fairy ring interface shows.

    public char getRingPosition(int ring)
    {
        int s = script.client.getConfig(816);
        int a, b, c;
        int shift = (1 << 6) - 1;
        s = s & shift;
        c = s >> 4;
        s -= c << 4;
        b = s >> 2;
        s -= b << 2;
        a = s;
        switch (ring)
        {
        case 0:
            switch (a)
            {
            case 0x0: return 'a';
            case 0x1: return 'd';
            case 0x2: return 'c';
            case 0x3: return 'b';
            }
            break;
        case 1:
            switch (b)
            {
            case 0x0: return 'i';
            case 0x1: return 'l';
            case 0x2: return 'k';
            case 0x3: return 'j';
            }
            break;
        case 2:
            switch (c)
            {
            case 0x0: return 'p';
            case 0x1: return 's';
            case 0x2: return 'r';
            case 0x3: return 'q';
            }
            break;
        }
        return 0;
    }

Edited by Toph

  • 5 weeks later...
  • 4 weeks later...

Look's brill o.O - If you don't mind my curiosity... What kind of operator is >> (I've not learnt anything like this before :3)

Edited by ashleyg48

Look's brill o.O - If you don't mind my curiosity... What kind of operator is >> (I've not learnt anything like this before :3)

 

there called bitwise operations

 

>> right shift

<< left shift

Look's brill o.O - If you don't mind my curiosity... What kind of operator is >> (I've not learnt anything like this before :3)

 

You most likely wont use them often if you're planning on programming osbot scripts only :p

 

OT: nice contribution!

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.