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.

"Skill Cannot be resolved to a variable"

Featured Replies

Im making a simple magic bot right now and am trying to create a paint that will log the levels. I'm following this tutorial:

 

http://osbot.org/forum/topic/59590-the-full-paint-tutorial-all-aspects-covered-pug-tutorials/

 

Everything seems to be coded correctly, however when I have the code

currentLevel = skills.getStatic(Skill.MAGIC);

it highlights "Skill" before "Skill.MAGIC" and says that

 

"Skill Cannot be resolved to a variable"

 

What am I doing wrong?

Do you have skill imported? works for me just fine, your code that is.

 

Just at tthe top of my code I had public static int currentLevel;

  • Author

Ok I'm not sure what happened, but when I typed the WHOLE code out it gave me an error, but if I stopped at "skills.getStatic(Skill." , waited for the drop down menu, and clicked the MAGIC option, it works fine.

 

I'm not sure what went wrong here. Sorry about the needless post. mods may close/delete if need be.

Ok I'm not sure what happened, but when I typed the WHOLE code out it gave me an error, but if I stopped at "skills.getStatic(Skill." , waited for the drop down menu, and clicked the MAGIC option, it works fine.

 

I'm not sure what went wrong here. Sorry about the needless post. mods may close/delete if need be.

The code would've worked if you'd had the import, the only reason typing it slowly fixed it is selecting the option automatically gives the import.

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.