gerauchert
2008-01-06 16:48:52
I made a stronghold of security gate question solver, but it is way too slow with the method I am using….
any suggestions?
any suggestions?
Function AnswerGateQuestion: Boolean;
var
i: Integer;
Answer: TStringArray;
begin
if(not(LoggedIn))then
Exit;
begin
Answer := ['body','No','irus','nker','ecove','onths','amous','buse r','nly on the',
'port A','owhere','nbox','my pass','emora'];
if(IsTextInAreaEx(mcx1,mcy1,mcx2,mcy2,x,y,'timate',3,NPCChars,False,False,0,2,-1))then
begin
ClickToContinue;
end;
FTWait(2);
FindNormalRandoms;
ClickToContinue;
for i := 0 to 13 do
begin
if(IsTextInAreaEx(mcx1,mcy1,mcx2,mcy2,x,y,Answer[i],3,NPCChars,False,False,0,2,-1))then
begin
Mouse(x,y,1,1,True);
FTWait(3);
FindNormalRandoms;
ClickToContinue;
Result := True;
Exit;
end else
Result := False;
end;
end;
end;