killsmh Posted April 10, 2023 Posted April 10, 2023 NPC chicken = getNpcs().closest("Chicken"); if (chicken != null && myPlayer().getAnimation() != 1162) { int x = chicken.getPosition().getX() + random(-2, 2); int y = chicken.getPosition().getY() + random(-2, 2); log("WOOF"); getMouse().move(x, y); Can't seem to figure it out why the mouse isn't moving at all. Can someone please help me out?
Khaleesi Posted April 10, 2023 Posted April 10, 2023 1 hour ago, killsmh said: NPC chicken = getNpcs().closest("Chicken"); if (chicken != null && myPlayer().getAnimation() != 1162) { int x = chicken.getPosition().getX() + random(-2, 2); int y = chicken.getPosition().getY() + random(-2, 2); log("WOOF"); getMouse().move(x, y); Can't seem to figure it out why the mouse isn't moving at all. Can someone please help me out? What are you trying to do?
killsmh Posted April 11, 2023 Author Posted April 11, 2023 (edited) It's fixed thanks to Gunman! Edited April 11, 2023 by killsmh 1