Sin
2012-06-19 11:56:53
Here's what I have so far.

I was thinking of using High(revAmount) as the thing.
Is there any better way to do this?
function GetTaskAmount:Integer;
var
i,revAmount:Integer;
sAmount:String;
begin
if not FindBlackChatMessage('assign') then
exit;
for i := 1 to 300 do //300 is the max number of monsters she can assign
begin
sAmount := IntToStr(i);
if FindBlackChatMessage(sAmount) then
begin
writeLn(sAmount);
revAmount := StrToInt(sAmount);
end;
end;
end;
SRL Compiled in 0 msec
1
2
5
12
25
125
Successfully executed.
I was thinking of using High(revAmount) as the thing.
Is there any better way to do this?