Developer Maxi Posted May 23, 2013 Developer Share Posted May 23, 2013 Hello everyone, Here is a heads up on what I have been working on the last two days. I have written the random management system, which will allow script writers full control over how to handle randoms. For example, let's take the case of an autofighter. You get a strange box and you're in combat and not in a safe zone. The programmed random solver for the strange box will recognize the strange box and try to solve it, but it will close the interface constantly because you're under attack. Your autofighter won't any longer be in control, so eventually you will die. Here is where the random management system comes in to play. In this case you want control over what happens before and after solving the strange box, more specifically you want to make sure you are out of combat and in a safe zone when solving the random, you want the random to be solved as programmed by default after that and you want to finish by walking back to your fighting spot. Here is a simplified example of how that would work with the random management system (note that the onLoop doesn't have to be overridden at all here, I just put it here for example purposes): @Override public void onStart() { this.actStartTime = System.currentTimeMillis(); randomManager.registerHook( new RandomBehaviourHook(RandomManager.STRANGE_BOX) { @Override public boolean shouldActivatePreLoop() { return myPlayer().isUnderAttack() && !myPlayer().isInArea(SAFE_AREA); } @Override public int preLoop() { walk(SAFE_AREA); return gRandom(600, 300); } @Override public int onLoop() throws InterruptedException { return super.onLoop(); } @Override public boolean shouldActivatePostLoop() { return myPlayer().isInArea(SAFE_AREA); } @Override public int postLoop() { walk(FIGHT_AREA); return gRandom(600, 300); } } ); } Furthermore, I have been working on a new GUI for accounts and a fresh system on the backend of it. One reason for this is that the accounts system simply wasn't user friendly and intuitive, another reason is that there were bugs occurring with it sometimes. Accounts are ordered in alphabetical order and you can now set your preferred experience rewards chosen when encountering a genie lamp or book of knowledge per account. Here is a picture of the new accounts GUI: These updates will be fitted in the next release. Sincerely, OSBot.org 4 Link to comment Share on other sites More sharing options...
Toadfly Posted May 23, 2013 Share Posted May 23, 2013 Woot! Glad to hear it, I just posted a thread about the bank pin not working, wasn't sure if you guys were aware or not, and I didn't find any similar topics. Anyways, good job guys your doing a wonderful job with plenty of updates! Link to comment Share on other sites More sharing options...
topp Posted May 23, 2013 Share Posted May 23, 2013 sweet Link to comment Share on other sites More sharing options...
wildyrome Posted May 23, 2013 Share Posted May 23, 2013 Great job max! Keep on the good work! Link to comment Share on other sites More sharing options...
XavierM Posted May 23, 2013 Share Posted May 23, 2013 Nice Link to comment Share on other sites More sharing options...
Cyro Posted May 23, 2013 Share Posted May 23, 2013 (edited) nice Edited May 23, 2013 by Cyro Link to comment Share on other sites More sharing options...
noah6131 Posted May 23, 2013 Share Posted May 23, 2013 Wow the gui update looks like its going to work well. The speedyness of these updates are faster then sex. Link to comment Share on other sites More sharing options...
Smart Posted May 23, 2013 Share Posted May 23, 2013 Looks awesome Maxi keep up the good work. Link to comment Share on other sites More sharing options...
plantpot Posted May 23, 2013 Share Posted May 23, 2013 looks good. The only thing we need now is a decent autofight :p Link to comment Share on other sites More sharing options...
GoldenGates Posted May 23, 2013 Share Posted May 23, 2013 When will you implement a boolean to run the loop? Like nodes sorta. Link to comment Share on other sites More sharing options...
Wizard Posted May 23, 2013 Share Posted May 23, 2013 Awesome!!! thank you! Link to comment Share on other sites More sharing options...
Developer Maxi Posted May 23, 2013 Author Developer Share Posted May 23, 2013 When will you implement a boolean to run the loop? Like nodes sorta. What are you talking about? Link to comment Share on other sites More sharing options...
Wizard Posted May 23, 2013 Share Posted May 23, 2013 What are you talking about? He means a system like other bot task system, nodes that get executed when its condition become true while looping on all the nodes. Link to comment Share on other sites More sharing options...
thetomask Posted May 23, 2013 Share Posted May 23, 2013 Very nice fast updates! Link to comment Share on other sites More sharing options...
owned1 Posted May 23, 2013 Share Posted May 23, 2013 Awesome! Thanks for the quick updates.. this community is getting better and better everyday Link to comment Share on other sites More sharing options...