creationx Posted April 23, 2015 Share Posted April 23, 2015 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? Quote Link to comment Share on other sites More sharing options...
Twin Posted April 23, 2015 Share Posted April 23, 2015 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; 1 Quote Link to comment Share on other sites More sharing options...
creationx Posted April 23, 2015 Author Share Posted April 23, 2015 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. Quote Link to comment Share on other sites More sharing options...
Isolate Posted April 23, 2015 Share Posted April 23, 2015 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. 4 Quote Link to comment Share on other sites More sharing options...