Deadly Serious
2012-01-13 23:00:00
This procedure is suppose to click a tiara, then click the alter and then proceed through the options and create an air tiara but it doesn't seem to be registering anything it just skips the procedure. I have got it in my main loop as well.
Procedure Crafting;
Var
I, x, y: integer;
Path: TStringArray;
TPA : TPointArray;
ATPA : T2DPointArray;
begin
if not loggedin then exit;
FindNormalRandoms;
Antiban;
DidRedClick;
begin
FindColorsTolerance(TPA, 12500679, MIX1, MIY1, MIX2, MIY2, 3); // Thanks to Naums' Tutorial
ATPA := TPAToATPAEx(TPA, 18, 28);
For I := 0 To High(ATPA) Do
Begin
If MiddleTPAEx(ATPA[I], X, Y) Then
begin
Writeln('Clicking on the Talisman');
MMouse(X, Y, 5, 5);
ClickMouse2(True);
Wait(500+random(250));
end;
begin
If FindObjCustom(x, y, ['raft', 'Rune'], [5591380, 5920344, 5723222, 5525587, 5525843, 5722966, 5723222], 3) then
begin
Writeln('Crafted Air runes')
Getmousepos(x, y)
MMouse(X, Y, 15, 15);
ClickMouse2(True);
end;
begin
Path:= ['256:404:4:1:7:582:116:1:7:570:104:1:7:574:63:1:7:584:48'];
for I := 0 to 0 do
ObjDTM_Walk(Path[i], 0, 100, 80, True);
Wait(2000+Random(500));
end;
begin
FindColorsTolerance(TPA, 2108211, MSX1, MSY1, MSX2, MSY2, 3); // Thanks to Naums' Tutorial
ATPA := TPAToATPAEx(TPA, 58, 48);
For I := 0 To High(ATPA) Do
Begin
If MiddleTPAEx(ATPA[I], X, Y) Then
begin
Writeln('Clicking on the option');
MMouse(X, Y, 5, 5);
ClickMouse2(True);
Wait(4000+random(250));
end;
end;
end;
end;
end;
end;
end;