rj
10-27-2012, 09:46 PM
I made a agility script for a p server, and i was wondering how would i add a timer to calculate the xp per hour?
script looks like this:
program autoagile;
var
X,Y: Integer;
xp: Integer;
runs: Integer;
mode: Integer;
procedure climb;
begin
//climb
FindColorTolerance(X,Y,3038590,808,188,844,244,4)
Wait(150 + Random(40));
movemouse(x, y);
Wait(220 + Random(50));
ClickMouse(x, y, Mouse_Right);
wait(100);
FindColorTolerance(X,Y,16776960,787,185,861,238,4)
wait(200);
movemouse(x, y);
wait(200);
ClickMouse(x, y, Mouse_left);
wait(2400)
FindColorTolerance(X,Y,3038590,808,188,844,244,4)
Wait(150 + Random(90));
movemouse(x, y);
Wait(220 + Random(50));
ClickMouse(x, y, Mouse_Right);
wait(300);
FindColorTolerance(X,Y,16776960,787,185,861,238,4)
wait(200);
movemouse(x, y);
wait(200);
ClickMouse(x, y, Mouse_left);
wait(2400)
IncEx(xp, mode);
IncEx(runs, 1);
Writeln('-----------------------------------------------')
Writeln('-----------------------------------------------')
Writeln('----------RJJ95 pserver agility--------------')
Writeln('Gained xp:' + Tostr(xp))
Writeln('Runs:' + Tostr(runs))
Writeln('-----------------------------------------------')
Writeln('-----------------------------------------------')
end;
begin
xp:=0;
runs:=0;
mode:= 2500;
repeat
climb;
until False;
end.
script looks like this:
program autoagile;
var
X,Y: Integer;
xp: Integer;
runs: Integer;
mode: Integer;
procedure climb;
begin
//climb
FindColorTolerance(X,Y,3038590,808,188,844,244,4)
Wait(150 + Random(40));
movemouse(x, y);
Wait(220 + Random(50));
ClickMouse(x, y, Mouse_Right);
wait(100);
FindColorTolerance(X,Y,16776960,787,185,861,238,4)
wait(200);
movemouse(x, y);
wait(200);
ClickMouse(x, y, Mouse_left);
wait(2400)
FindColorTolerance(X,Y,3038590,808,188,844,244,4)
Wait(150 + Random(90));
movemouse(x, y);
Wait(220 + Random(50));
ClickMouse(x, y, Mouse_Right);
wait(300);
FindColorTolerance(X,Y,16776960,787,185,861,238,4)
wait(200);
movemouse(x, y);
wait(200);
ClickMouse(x, y, Mouse_left);
wait(2400)
IncEx(xp, mode);
IncEx(runs, 1);
Writeln('-----------------------------------------------')
Writeln('-----------------------------------------------')
Writeln('----------RJJ95 pserver agility--------------')
Writeln('Gained xp:' + Tostr(xp))
Writeln('Runs:' + Tostr(runs))
Writeln('-----------------------------------------------')
Writeln('-----------------------------------------------')
end;
begin
xp:=0;
runs:=0;
mode:= 2500;
repeat
climb;
until False;
end.