SRL Archive - OSR Help

Need help please.


Darcy_Oner

2013-04-08 06:27:34

Ok so this is my first script, it was working fine but now its messing up.

Its a superheater.

Procedure Clicking;
Begin
MouseBox( 732, 176, 751, 196, 1);
AdjustMouseSpeed(1, 7, 9);
MouseBox( 658, 304, 673, 317, 1);
Wait(500);
MouseBox( 567, 251, 587, 274, 1);
Wait(500);

Repeat
AdjustMouseSpeed(1, 7, 9);
MouseBox( 658, 304, 673, 317, 1);
Wait(500);
MouseBox( 567, 251, 587, 274, 1);
Wait(500);
inc( r );
Until( r ) = 4;
r:=0;
Wait(1000);
End;1

Ok so its clicking the last mouse box twice, It clicks superheat then clicks the ore but clicks one extra time on the last click cause it to click on a different spell.

Element17

2013-04-09 00:02:15


Procedure Clicking;
Begin
MouseBox( 732, 176, 751, 196, 1);
AdjustMouseSpeed(1, 7, 9);
MouseBox( 658, 304, 673, 317, 1);
Wait(500);
MouseBox( 567, 251, 587, 274, 1);
Wait(500);

Repeat
AdjustMouseSpeed(1, 7, 9);
MouseBox( 658, 304, 673, 317, 1);
Wait(500);
MouseBox( 567, 251, 587, 274, 1);
Wait(500);
inc( r );
Until( r ) = 4;
r:=0;
Wait(1000);
End;

Try taking the repeat out.

t4q

2013-04-09 08:22:14

Instead of just
Wait(500);
use wait with some randomness
Wait(500+random(100));