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.

Spells Help

Featured Replies

This turns out in error as it says it is not declared...
I am remaking an old zammy wine script and i need help making it compatable to the newest osbot

 

 this.magicHandler.castSpell(Spells.FALADOR_TELEPORT, null);

Spells.FALADOR_TELEPORT //this gives the error here

This has a "!= undefined for arg types"

if ((this.dist < 20) &&
           /* this part is the error */  (this.settings[0] != 0)) { /* this part is the error */
              g2.fill(p.getPolygon(this.bot));
}

Edited by run3warfar3

If you class extends script. Be aware that we have a settings global field. So if you made an array of ints named settings rename it and you should not get an error

Edited by Joseph

  • Author

This is an old script i need to make it new xD

 

And i found the "settings" and it's just a boolean

private boolean[] settings = { true };

If you class extends script. Be aware that we have a settings global field. So if you made an array of ints named settings rename it and you should not get an error

 

I would also like the spell shit more, can you help me with that?

 

EDIT: FIXED ALL SPELL SHIT THANKS TO TACO SHACK

 

I NEED THE SETTING STUFF NOW

Edited by run3warfar3

This is an old script i need to make it new xD

And i found the "settings" and it's just a boolean

private boolean[] settings = { true };
I would also like the spell shit more, can you help me with that?

EDIT: FIXED ALL SPELL SHIT THANKS TO TACO SHACK

I NEED THE SETTING STUFF NOW

Common dawg it doesn't work because one it's a boolean. All you have to do is check what value it returns. True or false. On top of that there is no point is using an a ray of boolean if all you have in the Array is just one boolean. It just defeats the purpose of an array.

Why are you using the 'this' keyword on every reference to a method within the class? The only time you should use 'this' is when you write a method and the parameter names are the same as variables in your class, or when you've got multiple constructors and you want to return a different one.

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.