You should replace:
MoveMouse(x, y);
ClickMouse(x, y);
with
MMouse(x, y, rx, ry);
ClickMouse2(action);
Valid actions for ClickMouse2 are mouse_right (False), mouse_left(True) or move_mouse.
For example this is the original:
procedure Trade;
begin
Wait(2000);
Movemouse(260, 150);
Wait(1000);
Clickmouse(260, 150, mouse_right);
Wait(1000);
ChooseOption('rade');
Wait(1000);
Movemouse(570, 220);
Wait(1000);
Clickmouse(570, 220, mouse_right);
Wait(1000);
ChooseOption('ell 50');
Wait(1000);
Movemouse(200, 200);
Wait(1000);
Clickmouse(200, 200, mouse_right);
Wait(1000);
ChooseOption('uy All');
Wait(1000);
Movemouse(500, 25);
Wait(1000);
Clickmouse(500, 25, mouse_left);
Wait(1000);
Movemouse(320, 183);
Wait(1000);
Clickmouse(320, 183, mouse_left);
Wait(1000);
Movemouse(320, 315);
Wait(1500);
Clickmouse(320, 315, mouse_left);
Wait(1000);
Movemouse(650, 225);
Wait(2000);
Clickmouse(650, 225, mouse_left);
Wait(1000);
Movemouse(320, 183);
Wait(1000);
Clickmouse(320, 183, mouse_left);
Wait(1000);
Movemouse(320, 315);
Wait(1000);
Clickmouse(320, 315, mouse_left);
Wait(1000);
end;
Since you don't do any checking after the Movemouse you can just use Mouse, look:
procedure Trade;
begin
Wait(2000);
Mouse(260, 150, 2, 2, mouse_right);
WaitOption('rade', 1000);
Wait(1000);
Mouse(570, 220, 2, 2, mouse_right);
WaitOption('ell 50', 1000);
Wait(1000);
Mouse(200, 200, 2, 2, mouse_right);
WaitOption('uy All', 1000);
Wait(1000);
Mouse(500, 25, 2, 2, mouse_left);
Wait(1000);
Mouse(320, 183, 2, 2, mouse_left);
Wait(1000);
Mouse(320, 315, 2, 2, mouse_left);
Wait(1500);
Mouse(650, 225, 2, 2, mouse_left);
Wait(2000);
Mouse(320, 183, 2, 2, mouse_left);
Wait(1000);
Mouse(320, 315, 2, 2, mouse_left);
Wait(1000);
end;
Procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name :='';
Players[0].Pass :='';
Players[0].Nick :='';
Players[0].Active:=True;
ClickNorth(SRL_ANGLE_HIGH); // I believe this won't do anything here
end;
begin
SetUpSRL;
ActivateClient;
DeclarePlayers;
LoginPlayer;
Wait(1000 + Random(2000)); // Add a wait for after logging in
ClickNorth(SRL_ANGLE_HIGH); // Now it will do this after your logged in and ready
repeat
Trade;
Trade1;
Trade2;
Trade3;
Trade4;
Trade5;
Trade6;
until false;
end.
Also your script is all static clicks and waits I would recommend checking out the tutorials for much better finding options like colors, DTM's and bitmaps. Also your standards need some work but it's nothing that makes the script difficult to read.