OSBOTTESTER101 Posted December 30, 2020 Share Posted December 30, 2020 RS2Object conveyorBelt = x.getObjects().closest("Conveyor belt"); RS2Object barDispenser = x.getObjects().closest("Bar dispenser"); Position barDispenseArea = new Position(1942, 4967, 0); x.log("Walking to conveyor belt"); if (conveyorBelt.exists() && conveyorBelt != null) { x.getWalking().walk(barDispenseArea); Sleep.sleepUntil(() -> !x.myPlayer().isMoving(), 1000); } Everytime my player walk to the barDispenseArea it keeps hovering its mouse on the object and trying to click something I did not specfiy in my code to click anything when it arrives just to sleep. does my if statement play a role in what is going on? When I say everytime I mean every time my player goes over to the conveyor belt it tries to click something but for no reason because where did i put in my code to click? Quote Link to comment Share on other sites More sharing options...
Nbacon Posted December 30, 2020 Share Posted December 30, 2020 I think its try to get to the spot (and that is the click it might ) to fix this I would make bardispenseArea an Area object with a Y by X grid? PS it should be... if (coveyorBelt !=null && conveyorBelt.exists()) Quote Link to comment Share on other sites More sharing options...