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.

[Open Source] Sami Tele Alch

Featured Replies

Screenshot-2024-09-10-141156.png


Sami Tele Alch

import org.osbot.rs07.api.ui.Spells;
import org.osbot.rs07.script.Script;
import org.osbot.rs07.script.ScriptManifest;
import org.osbot.rs07.api.model.Item;
import org.osbot.rs07.utility.ConditionalSleep;

@ScriptManifest(name = "Sami Tele Alch", author = "Sami", version = 1.0, info = "", logo = "")
public class Main extends Script {

    private static final int NATURE_RUNE = 561;
    private static final int FIRE_RUNE = 554;
    private static final int ITEM_TO_ALCH = 892;

    @Override
    public void onStart() {
        log("Sami Tele Alch Script Started");
    }

    @Override
    public int onLoop() throws InterruptedException {

        if(!myPlayer().isAnimating()) {
            if (getMagic().canCast(Spells.NormalSpells.CAMELOT_TELEPORT)) {
                getMagic().castSpell(Spells.NormalSpells.CAMELOT_TELEPORT);
                sleep(300);
            }
        }
        
        if (canAlch()) {
            if (getMagic().castSpell(Spells.NormalSpells.HIGH_LEVEL_ALCHEMY)) {
                sleep(300);
                new ConditionalSleep(5000){
                    @Override
                    public boolean condition() {
                        return myPlayer().getAnimation() == -1;
                    }
                }.sleep();
                Item item = getInventory().getItem(ITEM_TO_ALCH);
                if (item != null) {
                    item.interact("Cast");
                }
            }
        }
        
        return 600;
    }

    private boolean canAlch() {
        return getInventory().contains(NATURE_RUNE) && (getInventory().contains(FIRE_RUNE) || isUsingFireStaff()) && getInventory().contains(ITEM_TO_ALCH);
    }

    private boolean isUsingFireStaff() {
        return getEquipment().isWieldingWeaponThatContains("Staff of fire");
    }

    @Override
    public void onExit() {
        log("Sami Tele Alch Script Stopped");
    }
}

 

image.png

Edited by Samiofficial

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.