greekhaima 2 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)
Genius 50 Posted January 14, 2023 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();
una_maquina 36 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.