Skip 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.

Srry, u can delete this

Featured Replies

12 hours ago, serenada said:

Hi, i have a problem with script for switching combat style. 

Im using this(attrDif means +3)

if((def + attrDif) <= atk || (def + attrDif) <= str) {
setDef();
}
sleep(1500);
if((atk + attrDif) <= str || (atk + attrDif) <= def) {
setAtk();
}
sleep(1500);
if((str + attrDif) <= atk || (str + attrDif) <= def) {
setStr();

 

Can anyone see something wrong in this because, for example ..My bot was like 5 def 15 Str 15Atk and was choosing combat style for Str instead of Def. 

Thanks 

 

 

So logically you have this:

if(8 <= 15) // true - setDef()

if(18 <= 15 OR 18 <= 5) // false - don't execute

if(18 <= 15 OR 18 <= 5) // false - don't execute

It looks fine but using if-else might be useful.

if(..){

}else if(...){

else {
  ...
}
  • Author
2 hours ago, dreameo said:

So logically you have this:

if(8 <= 15) // true - setDef()

if(18 <= 15 OR 18 <= 5) // false - don't execute

if(18 <= 15 OR 18 <= 5) // false - don't execute

It looks fine but using if-else might be useful.


if(..){

}else if(...){

else {
  ...
}

Hmm, sounds good, ill give it chance, thanks

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

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.