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.

[Coming soon...]Surer's Lumbridge Flax Spinner

Featured Replies

Hello Guys!

I Understand, that i am not well known on this forum but hey, everyone needs to start somewhere! But now let's get to the point...

I will be making a script called: "Surer's LumbySpinner". Maybe at somepoint i will transform it into an AIO spinner but for now it's just a flax spinner. I Will update this topic very often(daily i hope). The script will be FREE.

 

What will this script include?:

  • Good AntiBan
  • A Sexy Paint
  • Flaweless Spinning and Banking

 

Source code(NOT FINISHED!):

 
package LumbridgeSpinner;

import java.awt.Graphics;

import org.osbot.script.Script;
import org.osbot.script.ScriptManifest;
import org.osbot.script.rs2.model.Entity;
import org.osbot.script.rs2.utility.Area;
import org.osbot.script.rs2.ui.Bank;

@ScriptManifest(author = "surer123", info = "Will spin Flax on the spinning wheel in Lumbridge Castle.", name = "Surer's LumbyFlaxSpinner", version = 1.0)
public class Spinner extends Script{
    
    final Area BankArea = new Area(3207, 3220, 3210, 3216);
    final Area SpinArea = new Area(3208, 3213, 3212, 3217);
    static final int BANK = 18491;
    private Object Bank = null;
    static final int FLAX_ID = 1779;
    private Object SpinningWheel = null;
    
    public void onStart(){
        
    }
    
    public void onExit(){
        
    }
    
    public int onLoop(){
        //Declaring some things
        Entity Bank = (Entity) this.Bank;
        this.Bank = closestObject(BANK);
        Bank bank = this.client.getBank();
        
        if(this.client.getMyPlayer().getZ() == 2 && this.client.getMyPlayer().isInArea(BankArea) && this.client.getInventory().isFull()){
            //Deposit the string
            
            try{
            if (bank.isOpen()) {
                bank.depositAll();
            
            } else {
                
                if (Bank != null) {
                        if (Bank.isVisible()) {
                                Bank.interact("Bank");
                                sleep(random(700, 800));
                        }else{
                                client.moveCameraToEntity(Bank);
                        }
                }
            
            }
            }catch(Exception e){
                log("There was an exception: " + e);
            }
            
            }else if(this.client.getMyPlayer().getZ() == 2 && this.client.getMyPlayer().isInArea(BankArea) && !this.client.getInventory().isFull()){
            //withdraw flax
            
                try{
                    if (bank.isOpen()) {
                        bank.withdrawAll(FLAX_ID);
                    
                    } else {
                        
                        if (Bank != null) {
                                if (Bank.isVisible()) {
                                        Bank.interact("Bank");
                                        sleep(random(700, 800));
                                }else{
                                        client.moveCameraToEntity(Bank);
                                }
                        }
                    
                    }
                    }catch(Exception e){
                        log("There was an exception: " + e);
                    }
            
        }
        
        if(this.client.getMyPlayer().isInArea(SpinArea) && this.client.getInventory().contains(FLAX_ID) && this.client.getMyPlayer().getZ() == 1){
            //spin flax
            this.SpinningWheel = closestObjectForName("Spinning Wheel");
            Entity spinningwheel = (Entity)this.SpinningWheel;
            
            if(!this.client.getMyPlayer().isAnimating() && !this.client.getMyPlayer().isMoving()){
                if(!spinningwheel.isVisible()){
                    try{
                    this.client.moveCameraToEntity(spinningwheel);
                    sleep(random(700, 800));
                    }catch(Exception e){
                        log("Exception: " + e);
                    }
                }
            }
            
        }
        
        return 50;
    }
    
    public void onPaint(Graphics g){
        
    }
    
}


 

P.S. Don't judge if i wrote something wrong! Help me instead. wink.png

 

Edited by surer123

  • Author

Gotta love all the new scripts, good luck sir smile.png

 

Thanks! ;)

First update was made to the source code ;)

good job, is this your frist script?

one tip I can gave is to break up the main loop into method. this will make your life easier for debugging

  • Author

good job, is this your frist script?

one tip I can gave is to break up the main loop into method. this will make your life easier for debugging

 

Will look into it, thanks! :)

The script is not really my "first" i made them before, just didn't publish them!

Good luck on creating a good one.

 

Thanks, but it will have to struggle to make a "good one"...

Will look into it, thanks! smile.png

The script is not really my "first" i made them before, just didn't publish them!

 

Thanks, but it will have to struggle to make a "good one"...

 

I'll give you my best lucks.

  • Author

hmm i think i will have to put this project on "hold". Kinda busy with school related thing lately! :/

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.