Chris Posted September 17, 2017 Share Posted September 17, 2017 thx bro this helped me! i sold it for 7b 07! 3 Quote Link to comment Share on other sites More sharing options...
Athylus Posted April 9, 2018 Share Posted April 9, 2018 Thanks a lot! What does the exchangeContext method do? Quote Link to comment Share on other sites More sharing options...
Explv Posted April 25, 2018 Author Share Posted April 25, 2018 On 4/9/2018 at 3:15 PM, Athylus said: Thanks a lot! What does the exchangeContext method do? The MethodProvider class has a bunch of variables in it such as inventory, bank, etc. Your main class that extends Script (which extends MethodProvider) will have these variables set automatically when it is initialized, which is why you can access the OSBot API from onStart() or onLoop() without doing anything. However, when you create a class that extends MethodProvider and initialize it, those variables will not be automatically set. So you need to exchange the context (by calling exchangeContext(Bot bot)) between your instance that does have those variables set, and your other instance that does not. " public MethodProvider exchangeContext(Bot bot) Deprecated. For internal use only. This class and method can be used to create extensions to the API with full direct access to the OSBot 2 API within your extensions. If you create your own extensions you extend the API class or MethodProvider and if you want to provide the existing API components to your own extensions you override this method with a call to this method first by calling super.exchangeContext(bot) followed by the initialization of your own components on which you call this method on. Specified by: exchangeContext in class AbstractMethodProvider<Bot> Parameters: bot - The Bot instance. Returns: The instance of this API extension." 1 Quote Link to comment Share on other sites More sharing options...
TheMcPker Posted May 11, 2018 Share Posted May 11, 2018 On 7/27/2017 at 9:42 PM, Explv said: This was the first script I created for OSBot, I have seen many people make / try to make this script, so I figured why not open source mine so that people could learn from it, or use it. https://github.com/Explv/Tutorial-Island Note: there are still some areas I would like to clean up, just haven't had the time yet. I have also excluded my GUI and Paint just to keep it simple. If you can mention the things you want cleaned up il happily take a look this weekend and see what i can do Quote Link to comment Share on other sites More sharing options...
IkiritokunI Posted October 26, 2018 Share Posted October 26, 2018 oef we need a update on this Quote Link to comment Share on other sites More sharing options...
Runnwith Posted October 26, 2018 Share Posted October 26, 2018 2 hours ago, IkiritokunI said: oef we need a update on this You should update it. 2 Quote Link to comment Share on other sites More sharing options...
IkiritokunI Posted October 27, 2018 Share Posted October 27, 2018 I'm A noob Java scriptor, tried it today :P. But can't swap the position. (its keep doing the original script). Quote Link to comment Share on other sites More sharing options...
Explv Posted October 27, 2018 Author Share Posted October 27, 2018 19 hours ago, IkiritokunI said: oef we need a update on this 16 hours ago, Runnwith said: You should update it. 1 hour ago, IkiritokunI said: I'm A noob Java scriptor, tried it today :P. But can't swap the position. (its keep doing the original script). Fixes have been made, latest release can be found here https://github.com/Explv/Tutorial-Island/releases Please note that as new accounts are automatically started in resizable mode, the client will have to be manually restarted after the script changes to fixed mode. Hopefully the OSBot devs will produce a fix for this at some point. Quote Link to comment Share on other sites More sharing options...
Duhstin Posted October 27, 2018 Share Posted October 27, 2018 1 hour ago, Explv said: Hopefully the OSBot devs will produce a fix for this at some point. Hopefully but for now I'm personally re-launching the clients with CLI after it disables fixed mode. Quote Link to comment Share on other sites More sharing options...
Explv Posted October 27, 2018 Author Share Posted October 27, 2018 1 hour ago, Duhstin said: Hopefully but for now I'm personally re-launching the clients with CLI after it disables fixed mode. Yep that works, you could modify the source to close the client for you, using System.exit() and then in a script reopen the client once closed. Quote Link to comment Share on other sites More sharing options...
Dot Posted November 3, 2018 Share Posted November 3, 2018 This script works flawlessly. Will be a great resource to help me start scripting. Thanks! Quote Link to comment Share on other sites More sharing options...
Glaciation96 Posted November 11, 2018 Share Posted November 11, 2018 Wow. I've just discovered a valuable resource. Quote Link to comment Share on other sites More sharing options...
Explv Posted November 17, 2018 Author Share Posted November 17, 2018 Updated for new display name change 1 Quote Link to comment Share on other sites More sharing options...
Explv Posted January 1, 2019 Author Share Posted January 1, 2019 (edited) Updated with several fixes, new version is 5.7 Edited January 1, 2019 by Explv Quote Link to comment Share on other sites More sharing options...
Explv Posted January 1, 2019 Author Share Posted January 1, 2019 (edited) - Edited January 1, 2019 by Explv Quote Link to comment Share on other sites More sharing options...