Writing a bot atm keep getting this ERROR([Error] (261:4): period ('.') expected in script ) guess it is caused by these lines:
"
procedure findhealthbar(var hx,hy:Integer);
begin
MoveMouse(hx,hy); //<-- Change Coords to your Healthbar position.
wait(100+random(10));
end;
procedure healthbarcheck1(var hx,hy:Integer);
begin
if (Findcolortolerance(hx,hy,2568420 ,mmx1, mmy1, mmx2, mmy2, 30)=true)then begin;
wait(100+random(10));
MoveMouse(rx,ry); //<-- Change Coords to Repairbutton position.
HoldMouse(rx,ry,true); //<-- Change Coords to Repairbutton position.
end;
end;
procedure healthbarcheck2(var hx,hy:Integer);
begin
MoveMouse(hx,hy);
wait(100+random(10));
end;
begin
if (Findcolortolerance(hx,hy,29440 ,mmx1, mmy1, mmx2, mmy2, 30)=true)then begin;
ReleaseMouse(rx,ry,true);
end;
end;
begin
MoveMouse(hx,hy);
begin
If (Findcolortolerance(hx,hy,2568420 ,mmx1, mmy1, mmx2, mmy2, 30)=true)then begin;
HoldMouse(rx,ry,true); //<-- Change Coords to Repairbutton position.
end;
end;
begin
If (Findcolortolerance(hx,hy,29440 ,mmx1, mmy1, mmx2, mmy2, 30)=true)then begin;
ReleaseMouse(rx,ry,true);
end;
end;
"
If someone could help a little bit? :D btw. My first try to write something like that before I just programmed a little bit in PASCAL.
~me :P
"
procedure findhealthbar(var hx,hy:Integer);
begin
MoveMouse(hx,hy); //<-- Change Coords to your Healthbar position.
wait(100+random(10));
end;
procedure healthbarcheck1(var hx,hy:Integer);
begin
if (Findcolortolerance(hx,hy,2568420 ,mmx1, mmy1, mmx2, mmy2, 30)=true)then begin;
wait(100+random(10));
MoveMouse(rx,ry); //<-- Change Coords to Repairbutton position.
HoldMouse(rx,ry,true); //<-- Change Coords to Repairbutton position.
end;
end;
procedure healthbarcheck2(var hx,hy:Integer);
begin
MoveMouse(hx,hy);
wait(100+random(10));
end;
begin
if (Findcolortolerance(hx,hy,29440 ,mmx1, mmy1, mmx2, mmy2, 30)=true)then begin;
ReleaseMouse(rx,ry,true);
end;
end;
begin
MoveMouse(hx,hy);
begin
If (Findcolortolerance(hx,hy,2568420 ,mmx1, mmy1, mmx2, mmy2, 30)=true)then begin;
HoldMouse(rx,ry,true); //<-- Change Coords to Repairbutton position.
end;
end;
begin
If (Findcolortolerance(hx,hy,29440 ,mmx1, mmy1, mmx2, mmy2, 30)=true)then begin;
ReleaseMouse(rx,ry,true);
end;
end;
"
If someone could help a little bit? :D btw. My first try to write something like that before I just programmed a little bit in PASCAL.
~me :P