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.

Better Magic API

Featured Replies

Okay, so I've had this knocking around for a while. It uses my Context class but replacing it with Script should work fine. Handles casting on different types of entity, checks for runes etc. Easy to add banking for also, loop through requirements and withdraw accordingly using.

 

1a48a1b8814e7f6b4d5914c3b006c1cb.png

 

Usage:

        final Spell highAlch = new Spell(context, Spells.NormalSpells.HIGH_LEVEL_ALCHEMY, SpellTarget.SPELL_ON_ITEM, "Oak longbow (u)", new ItemRequirement("Nature rune", 1), new ItemRequirement("Fire rune", 5));
        if (highAlch.canUse()) {
            highAlch.canUse();
        } else {
            for (ItemRequirement rune : highAlch.getRunes()) {
                String name = rune.getName();
                int amount = rune.getCount();
                if (context.getInventory().getAmount(name) < amount) {
                    context.log("Not enough " + name + "!");
                }
            }
        }

magic.zip

Edited by Valkyr

if (highAlch.canUse()) {
    highAlch.canUse();
}

emote32342.png

 

EDIT:

Also, make a rune requirement enum, you lazy bum

Edited by FrostBug

  • Author
if (highAlch.canUse()) {
    highAlch.canUse();
}

emote32342.png

 

EDIT:

Also, make a rune requirement enum, you lazy bum

 

highAlch.cast() XD

.cast() also checks canUse anyway, just there for example :/

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.