INFERN0 Posted May 6, 2015 Posted May 6, 2015 correct me if i am getting anything wrong this is my first script i think i got everything good But yea i exported the file to my osbot>scripts folder and basically it wont show up and it says the file is 1kb is that fine? also on my eclipse it is showing this
Tom Posted May 6, 2015 Posted May 6, 2015 (edited) Overall code could be a little better, ill give you suggestions when I get home. In terms of showing up in the local scripts, how are you saving it? Have you tried exporting it as a jar and placing it in there, 1kb seems a little small, but it makes sense for such a small script? Edit: Also, i dont think trees are entities, I think they are RS2Objects, correct me if im wrong though. Edited May 6, 2015 by Tom
INFERN0 Posted May 6, 2015 Author Posted May 6, 2015 lol this was literally the first time i touched a eclipse and yeah maybe send me a couple scripts so i can gain so knowledge and i did try
Tom Posted May 6, 2015 Posted May 6, 2015 (edited) lol this was literally the first time i touched a eclipse and yeah maybe send me a couple scripts so i can gain so knowledge and i did try And im ok to assume that you clicked refresh, or restarted your osbot? Edit: You can remove the Thread.state import, it isn't used. You are also importing all contents of java.awt, remove this line as well and just hover over everything that errors, and eclipse will give you the option to import it. Edited May 6, 2015 by Tom
INFERN0 Posted May 6, 2015 Author Posted May 6, 2015 mk i fixed the issue now it showed up but almost had a heart attack ran this on one of my accs and almost dropped my whip because i had it in inventory but it worked.
Tom Posted May 6, 2015 Posted May 6, 2015 mk i fixed the issue now it showed up but almost had a heart attack ran this on one of my accs and almost dropped my whip because i had it in inventory but it worked. While you're working on your script, have a look into something called Hungarian Notation, or camelCase.