Jump to content

Spells Help


Recommended Posts

Posted (edited)

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
Posted (edited)

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...