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.

Deleted

Featured Replies

Bad script deleted

Edited by Dogcube
Nothing was in onloop

Erm it’s not going to do anything all I see is like a few methods but nothing in your onLoop

did you test it?

  • Author
1 hour ago, skillerkidos1 said:

Erm it’s not going to do anything all I see is like a few methods but nothing in your onLoop

did you test it?

No because I dont have any proxies I thought it would work ty for telling me I am a very big noob

  • Author
1 hour ago, skillerkidos1 said:

Erm it’s not going to do anything all I see is like a few methods but nothing in your onLoop

did you test it?

 

1 hour ago, skillerkidos1 said:

Erm it’s not going to do anything all I see is like a few methods but nothing in your onLoop

did you test it?

do I just need to init it inside the onlooop?

 

3 minutes ago, Dogcube said:

 

do I just need to init it inside the onlooop?

 

yea so you need to put your methods to use in onLoop() otherwise nothing will happen 😛

if(needToHeal(){

heal()

}else if(canAttack(){

attack()

}

 

  • Author
2 minutes ago, skillerkidos1 said:

yea so you need to put your methods to use in onLoop() otherwise nothing will happen 😛

if(needToHeal(){

heal()

}else if(canAttack(){

attack()

}

 

ok thanks I am big retard

7 minutes ago, Dogcube said:

ok thanks I am big retard

lmao if you need any help add me on discord :D

SkillerKido#2423

@Dogcube Hid your reposts.

Methods like this 
 

private boolean needToHeal(){
        int healPercent = 45;
        if(healPercent > getHpPercent()){
            return true;
        }else{
            return false;
        }


    }

Can be simplified to this
 

private boolean needToHeal() {
        int healPercent = 45;
        return healPercent > getHpPercent();
    }

And make sure you use braces ( these -> {} ) on your if statements. Scripting tutorial linked below.

https://osbot.org/forum/topic/115124-explvs-scripting-101/

  • Author
10 hours ago, Gunman said:

@Dogcube Hid your reposts.

Methods like this 
 


private boolean needToHeal(){
        int healPercent = 45;
        if(healPercent > getHpPercent()){
            return true;
        }else{
            return false;
        }


    }

Can be simplified to this
 


private boolean needToHeal() {
        int healPercent = 45;
        return healPercent > getHpPercent();
    }

And make sure you use braces ( these -> {} ) on your if statements. Scripting tutorial linked below.

https://osbot.org/forum/topic/115124-explvs-scripting-101/

Thanks for the tip I will make sure to keep it in mind for future scripts 

  • Dogcube changed the title to Deleted

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.