Isolate Posted May 19, 2014 Share Posted May 19, 2014 How do i do this on will, like if i want to turn on off temp and turn one back on.... Link to comment Share on other sites More sharing options...
Extreme Scripts Posted May 19, 2014 Share Posted May 19, 2014 How do i do this on will, like if i want to turn on off temp and turn one back on.... Do you mean Override the default solver so you can implement your own? Or just simply de-activate it in so that it doesn't solve the random? Link to comment Share on other sites More sharing options...
Isolate Posted May 19, 2014 Author Share Posted May 19, 2014 damnt, sorry tried to click quote....i meant turn it off so it doesnt do it until i tell it too.not to override my own methods OR how to use onLogin(int a)so i can make it do something every time it logs in Link to comment Share on other sites More sharing options...
Extreme Scripts Posted May 19, 2014 Share Posted May 19, 2014 damnt, sorry tried to click quote.... i meant turn it off so it doesnt do it until i tell it too. not to override my own methods OR how to use onLogin(int a) so i can make it do something every time it logs in I think you're talking about overriding the default random manager so you could perform a task before activating it if I understand correctly... In your onStart(): randomManager.registerHook(new RandomBehaviourHook(randomManager.LOGIN_MANAGER)){ @Override public boolean shouldActivatePostLoop(){ return true; } @Override public int postLoop() throws InterruptedException{ //task to perform return 0; } } Note: If you want to exit the postLoop then have it return -1 2- There are a variety of methods you can override which can be found here Link to comment Share on other sites More sharing options...
Isolate Posted May 19, 2014 Author Share Posted May 19, 2014 if i use the LoginListener onLogin(int a). will it run the code i put in there every time it logs in? or am i wrong in thinkign this Link to comment Share on other sites More sharing options...
Extreme Scripts Posted May 19, 2014 Share Posted May 19, 2014 (edited) if i use the LoginListener onLogin(int a). will it run the code i put in there every time it logs in? or am i wrong in thinkign this Have never tried it, hooking the randomManager always works for me so never had to explore further. From the sounds of it thought, it doesn't sound right. If you use the solution I provided you then it will run the code you put in the postLoop() everytime it logs in. Edited May 19, 2014 by Divinity Link to comment Share on other sites More sharing options...
Isolate Posted May 19, 2014 Author Share Posted May 19, 2014 i want code to run just after the account has logged in Link to comment Share on other sites More sharing options...
Extreme Scripts Posted May 19, 2014 Share Posted May 19, 2014 i want code to run just after the account has logged in Yup you would use the one I provided, placing it in your onStart(). Link to comment Share on other sites More sharing options...
Isolate Posted May 19, 2014 Author Share Posted May 19, 2014 the code you provided cannot be put into onStart() Link to comment Share on other sites More sharing options...
Extreme Scripts Posted May 19, 2014 Share Posted May 19, 2014 the code you provided cannot be put into onStart() Why? Link to comment Share on other sites More sharing options...
Isolate Posted May 19, 2014 Author Share Posted May 19, 2014 (Sorry cant Post Images Directly)http://prntscr.com/3kizff seem'd to work fine when I typed it in myself sorry Link to comment Share on other sites More sharing options...
Extreme Scripts Posted May 19, 2014 Share Posted May 19, 2014 (Sorry cant Post Images Directly) http://prntscr.com/3kizff seem'd to work fine when I typed it in myself sorry My bad it's called "LOGIN_SCRIPT", I wrote that off the top of my head :p Link to comment Share on other sites More sharing options...
Isolate Posted May 19, 2014 Author Share Posted May 19, 2014 oh XD :P i better fix it quickly ,+ this client doesnt have visual counters of its break timers does it...? + this code didnt really work... it runs my code before it actually logs in.... Link to comment Share on other sites More sharing options...
Extreme Scripts Posted May 19, 2014 Share Posted May 19, 2014 oh XD i better fix it quickly , + this client doesnt have visual counters of its break timers does it...? Unfortunately no Link to comment Share on other sites More sharing options...
Isolate Posted May 19, 2014 Author Share Posted May 19, 2014 i think it needs to be postLoop? Ok So i changed: Login To Welcome_Screen handler, and pre to post, seems to work so far Link to comment Share on other sites More sharing options...