killsmh Posted April 10, 2023 Share 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? Quote Link to comment Share on other sites More sharing options...
Khaleesi Posted April 10, 2023 Share 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? Quote Link to comment Share on other sites More sharing options...
killsmh Posted April 11, 2023 Author Share Posted April 11, 2023 (edited) It's fixed thanks to Gunman! Edited April 11, 2023 by killsmh 1 Quote Link to comment Share on other sites More sharing options...