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.

How to preselect spell?

Featured Replies

Hello, how would I preselect spell? I tried this, but it isn't working:

if(getMagic().isSpellSelected() == false) {
    status = "Selecting spell"; 
    log("Selecting spell");
    getMagic().hoverSpell(Spells.NormalSpells.TELEKINETIC_GRAB);
    sleep(random(500, 5000));
}

It just loops it, never selecting.

Also, when using castSpellOnEntity(), a few times the bot selects the cast over and over again, and then it preselects it by himself. Is it supposed to be like that or it's accidental bug/feature?

14 minutes ago, ECH0 said:

Hello, how would I preselect spell? I tried this, but it isn't working:


if(getMagic().isSpellSelected() == false) {
    status = "Selecting spell"; 
    log("Selecting spell");
    getMagic().hoverSpell(Spells.NormalSpells.TELEKINETIC_GRAB);
    sleep(random(500, 5000));
}

It just loops it, never selecting.

Also, when using castSpellOnEntity(), a few times the bot selects the cast over and over again, and then it preselects it by himself. Is it supposed to be like that or it's accidental bug/feature?

if (!getMagic().isSpellSelected()) {
            if (getMagic().castSpell(Spells.NormalSpells.TELEKINETIC_GRAB)) {
                // sleep
            }
        } else {
            // interact with something 
        }

  • Author
3 minutes ago, FuryShark said:

if (!getMagic().isSpellSelected()) {
            if (getMagic().castSpell(Spells.NormalSpells.TELEKINETIC_GRAB)) {
                // sleep
            }
        } else {
            // interact with something 
        }

Wanted to ask:

if (getMagic().castSpell(Spells.NormalSpells.TELEKINETIC_GRAB))

this executes that commands and returns true if it succeeds? Also, maybe you could explain your code a bit?

1 minute ago, ECH0 said:

Wanted to ask:


if (getMagic().castSpell(Spells.NormalSpells.TELEKINETIC_GRAB))

this executes that commands and returns true if it succeeds? Also, maybe you could explain your code a bit?

its in the API docs

  • Author
5 minutes ago, Chris said:

its in the API docs

But on whom it casts that spell?

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.