What's new
  • Visit Rebornbuddy
  • Visit Resources
  • Visit API Documentation
  • Visit Downloads
  • Visit Portal
  • Visit Panda Profiles
  • Visit LLamamMagic

Method to check idle time?

Shacaw

New Member
Joined
Jun 27, 2014
Messages
25
Reaction score
0
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.
 
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);
}
 
Back
Top