Swizzbeat Posted August 22, 2014 Share Posted August 22, 2014 Your IDE will literally tell you the error if you hover over it. 1 Link to comment Share on other sites More sharing options...
PwneRL33T Posted August 22, 2014 Author Share Posted August 22, 2014 (edited) Your IDE will literally tell you the error if you hover over it. yup works a treat told me axactly how to fix it... not code it... but simply cover up the error in other words 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. i ahd already fixed all the ones from methodprovider before you posted... im just stuck on running and getfacing, these i could not find anywhere even in this magical MethodProvider that you speak of, i hear it tells you everything that i need to know? Edited August 22, 2014 by PwneRL33T Link to comment Share on other sites More sharing options...
Extreme Scripts Posted August 22, 2014 Share Posted August 22, 2014 yup works a treat told me axactly how to fix it... not code it... but simply cover up the error in other words i ahd already fixed all the ones from methodprovider before you posted... im just stuck on running and getfacing, these i could not find anywhere even in this magical MethodProvider that you speak of, i hear it tells you everything that i need to know? I highly suggest you look at the API for OSBot 2, it seems your using legacy still: http://osbot.org/api Answer to set running: settings.setRunning(true); Link to comment Share on other sites More sharing options...
PwneRL33T Posted August 22, 2014 Author Share Posted August 22, 2014 I highly suggest you look at the API for OSBot 2, it seems your using legacy still: http://osbot.org/api Answer to set running: settings.setRunning(true); thanks but no i am using the 'proper' API Link to comment Share on other sites More sharing options...
Swizzbeat Posted August 22, 2014 Share Posted August 22, 2014 (edited) Why are people giving him the wrong advice and saying he's using the legacy API? Not only would his code be working instead of throwing errors if he imported all legacy, but he even showed everyone his imports on the first page and they're all for OSBot 2. yup works a treat told me axactly how to fix it... not code it... but simply cover up the error in other words It told you exactly what was wrong, and if you knew basic Java you'd know it's an incredibly informative error message. Since it seems like no one who has posted so far as any idea what they're talking about, and these posts gave me herpes, I'll just lay it out for you. Ok, this is the error you're getting: What this tells you is the method #setRunning(boolean) does not exist in either the main class or any of it's super classes. With that being said, it should be evident now why the quick fix it gives you is to create the method yourself in the current working class. The rest of the errors you're getting have the same issue. Now, on to your main question about getting a working message listener, just simply override the onMessage method found within the Script class. See the API for more information. Edited August 22, 2014 by Swizzbeat 1 Link to comment Share on other sites More sharing options...
Joseph Posted August 22, 2014 Share Posted August 22, 2014 ok removed legacy but still getting errors Why are people giving him the wrong advice and saying he's using the legacy API? Not only would his code be working instead of throwing errors if he imported all legacy, but he even showed everyone his imports on the first page and they're all for OSBot 2. after he removed them Link to comment Share on other sites More sharing options...