PwneRL33T Posted August 22, 2014 Share Posted August 22, 2014 (edited) what can i do about these errors? add skype: defectiversps if need be fixed and now running... good to see my (nearly) 2 year paint coming back to life.... sort of... nothing works atm haha in saying that... how can i get ingame messages to work, cant seem to figure it out from the API public void onMessage(Message message) { if (message.equals("You get some oak logs.")) { this.logsChopped += 1; this.expGained += 37; } if (message.equals("A bird's nest falls out of the tree.")) { this.foundNest += 1; log("Nest Found"); } } this is what i have but doesnt work... Edited August 22, 2014 by PwneRL33T Link to comment Share on other sites More sharing options...
Wizard Posted August 22, 2014 Share Posted August 22, 2014 You may be using the legacy api, make sure the imports u are using are not legacy Link to comment Share on other sites More sharing options...
PwneRL33T Posted August 22, 2014 Author Share Posted August 22, 2014 (edited) ok removed legacy but still getting errors fixed Skill.WOODCUTTING but still stuck on getSkills() Edited August 22, 2014 by PwneRL33T Link to comment Share on other sites More sharing options...
Cinnamon Posted August 22, 2014 Share Posted August 22, 2014 what can i use instead of legacy? The 07 api. As for your first screenie, replace the errors with: this.skills.getExperience(Skill.WOODCUTTING) for your get.level, (Last error) (I don't think its in the API anymore) - use: this.skills.getDynamic(Skill.WOODCUTTING) Link to comment Share on other sites More sharing options...
PwneRL33T Posted August 22, 2014 Author Share Posted August 22, 2014 (edited) The 07 api. As for your first screenie, replace the errors with: this.skills.getExperience(Skill.WOODCUTTING) for your get.level, (Last error) (I don't think its in the API anymore) - use: this.skills.getDynamic(Skill.WOODCUTTING) ah thanks very much would you know about the getElapsed error? the only suggestion i get from eclipse is "add cast to 'runTime'" and this is what i have in my timer class that has anything to do with getElapsed Edited August 22, 2014 by PwneRL33T Link to comment Share on other sites More sharing options...
NotoriousPP Posted August 22, 2014 Share Posted August 22, 2014 Learn Java is all I can say, because your "errors" are just lack of knowledge of programming. Your never going to make anything of worth without knowing the basics of Java. 2 Link to comment Share on other sites More sharing options...
PwneRL33T Posted August 22, 2014 Author Share Posted August 22, 2014 Learn Java is all I can say, because your "errors" are just lack of knowledge of programming. Your never going to make anything of worth without knowing the basics of Java. i do know the basics of java, well i did about a year ago, example http://osbot.org/forum/topic/12893-seers-willow-cutter/ Link to comment Share on other sites More sharing options...
Joseph Posted August 22, 2014 Share Posted August 22, 2014 The reason why you get error on timer is because you imported the java timer. Rather the importing your class Timer 1 Link to comment Share on other sites More sharing options...
PwneRL33T Posted August 22, 2014 Author Share Posted August 22, 2014 The reason why you get error on timer is because you imported the java timer. Rather the importing your class Timer ahahah omfg i did not even realize that lol, thanks man Link to comment Share on other sites More sharing options...
Joseph Posted August 22, 2014 Share Posted August 22, 2014 ahahah omfg i did not even realize that lol, thanks man good luck Link to comment Share on other sites More sharing options...
PwneRL33T Posted August 22, 2014 Author Share Posted August 22, 2014 good luck Thanks Link to comment Share on other sites More sharing options...
PwneRL33T Posted August 22, 2014 Author Share Posted August 22, 2014 ok now i've tried to implement the actually loop of the script and now i'm just riddled with problems. i've searched the API for many of these but no avail... i have tried to search all these in the API but no avail Link to comment Share on other sites More sharing options...
Joseph Posted August 22, 2014 Share Posted August 22, 2014 (edited) Look into the new api. We barley use the client instance now. They organized the api. So anything inventory related, they have it in the inventory class. Which could be then access with the new inventory instance. Go to the api, and look at the MethodProvider class and youll understand what i mean for examples: map.walk...... localWalker.walk........ camera.toEntity........ objects.closest....... Edited August 22, 2014 by josedpay Link to comment Share on other sites More sharing options...
PwneRL33T Posted August 22, 2014 Author Share Posted August 22, 2014 Look into the new api. We barley use the client instance now. They organized the api. So anything inventory related, they have it in the inventory class. Which could be then access with the new inventory instance. Go to the api, and look at the MethodProvider class and youll understand what i mean for examples: map.walk...... localWalker.walk........ camera.toEntity........ objects.closest....... ok fixed the ones you listed and a couple more, but just can't find these Link to comment Share on other sites More sharing options...
Joseph Posted August 22, 2014 Share Posted August 22, 2014 (edited) Im not going to help you out anymore. I already told you to look into the api under Method Provider. If you didnt do it, then that sucks. http://osbot.org/api/org/osbot/rs07/script/MethodProvider.html edit: when you look at the class its self explanatory. Edited August 22, 2014 by josedpay Link to comment Share on other sites More sharing options...