the henhead
2013-01-30 21:00:21
I'm making my second script for the server Soulsplit, I compile it, but once it's compiled it doesn't do anything. I press run then it runes and stops. I want it to use charms on the obelisk continually.
Program CharmBot;
{$i srl/srl.simba}
function YellowClick: Boolean;
begin
Result := DidClick(false, 1000);
end;
Procedure UseCharm;
var x, y: integer;
begin
if FindObj(x, y, 'Obe', 3684416, 10) then
MMouse(x, y, 575, 228);
ClickMouse(x, y, mouse_Left);
wait(100+random(1000));
MMouse(x, y, 277, 148);
ClickMouse(x, y, mouse_Left);
repeat;
until YellowClick;
end;
begin
setupSRL;
MouseSpeed:=100;
end.Compiled successfully in 499 ms.
SRL Compiled in 0 msec
Successfully executed.