Reply to Re: Scripting and WDE questions.
If you don't have an account, just leave the password field blank.
I made a sample script that should help you. The only bug I could see happening is if Dink moved and ended up in the exact same coordinate
That's highly unlikely though
//script starts
void main( void )
{
int &dx;
int &dy;
int &cur_x;
int &cur_y;
loop:
//we store his coordinates here
&dx = sp_x(1, -1);
&dy = sp_y(1, -1);
wait(5000);
//5 seconds later we get his coordinates again
//this is so we can compare them to see if he moves
&cur_x = sp_x(1, -1);
&cur_y = sp_y(1, -1);
if (&cur_x = &dx)
{
if (&cur_y = &dy)
{
//signifies that dink hasnt moves in 5 seconds
//what ever you want to happen, put in here
}
}
goto loop;
}
//script starts
void main( void )
{
int &dx;
int &dy;
int &cur_x;
int &cur_y;
loop:
//we store his coordinates here
&dx = sp_x(1, -1);
&dy = sp_y(1, -1);
wait(5000);
//5 seconds later we get his coordinates again
//this is so we can compare them to see if he moves
&cur_x = sp_x(1, -1);
&cur_y = sp_y(1, -1);
if (&cur_x = &dx)
{
if (&cur_y = &dy)
{
//signifies that dink hasnt moves in 5 seconds
//what ever you want to happen, put in here
}
}
goto loop;
}






