Jump to content

Been stuck on this for a while now.


Recommended Posts

Posted
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?
Posted
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?

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...