Jump to content

Spells Help


Zodiac Dev

Recommended Posts

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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