S Shacaw New Member Joined Jun 27, 2014 Messages 25 Reaction score 0 Jan 3, 2016 #1 Basically trying to make a plugin that checks if character is not in posx posy and idle time > 15s move to posx posy Some jerks keep pushing my bots away from a cliff while they are waiting for the plants to grown.
Basically trying to make a plugin that checks if character is not in posx posy and idle time > 15s move to posx posy Some jerks keep pushing my bots away from a cliff while they are waiting for the plants to grown.
T tictoc Member Joined Sep 21, 2012 Messages 380 Reaction score 5 Jan 4, 2016 #2 Maybe something like Code: // To be position double x = 1234.12; double y = 1234.12; double z = 1234.12; // double distance; while (true) { distance = me.dist(x, y); if (distance > 5) MoveTo(x, y, z); Thread.Sleep(15000); }
Maybe something like Code: // To be position double x = 1234.12; double y = 1234.12; double z = 1234.12; // double distance; while (true) { distance = me.dist(x, y); if (distance > 5) MoveTo(x, y, z); Thread.Sleep(15000); }