greekhaima 1 Share Posted January 13, 2023 sleepUntil ( () ->org.dreambot.api.methods.magic.Magic.castSpell(toCast), 40); sleepUntil ( () ->Mouse.move(enemy), 300); Mouse.click(false); I have the following code but it will right click sometimes instead. Also tried this but it will move the camera randomly and weird sometimes: Magic.castSpellOn(toCast, enemy), 100) Link to comment Share on other sites More sharing options...
Genius 49 Share Posted January 14, 2023 (edited) 9 hours ago, greekhaima said: sleepUntil ( () ->org.dreambot.api.methods.magic.Magic.castSpell(toCast), 40); sleepUntil ( () ->Mouse.move(enemy), 300); Mouse.click(false); I have the following code but it will right click sometimes instead. Also tried this but it will move the camera randomly and weird sometimes: Magic.castSpellOn(toCast, enemy), 100) Try enemy.interactForceLeft(); Edited January 14, 2023 by Genius Link to comment Share on other sites More sharing options...
una_maquina 35 Share Posted January 14, 2023 You don't need to sleep until, do: if(!Magic.castSpellOn(toCast, enemy)) return; Sleep.sleep(300,1000); You need to always randomize your sleeping times, Sleep#sleep, if you give two numbers, it will randomize the sleeping time for you, and when you're using Sleep#sleepUntil, use Calculations.random(2000,4000) for the timeout: sleepUntil ( () ->Mouse.move(enemy), 300); =====> sleepUntil ( () ->Mouse.move(enemy), Calculations.random(300,600)); Hope this helps. Link to comment Share on other sites More sharing options...
greekhaima 1 Author Share Posted January 16, 2023 @Genius thank you sir. This worked Genius 1 Link to comment Share on other sites More sharing options...
greekhaima 1 Author Share Posted January 16, 2023 @una_maquina thanks but no Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now