Abu
2012-05-19 11:02:36
Ok, so I'm trying to use the functions GetXPBar() and GetXPBarTotal however both do not work and give the the error:
And here is the function which gives the error in gametab.simba:
Thanks
Error: Out Of Range at line 2359And here is the function which gives the error in gametab.simba:
Function ToggleXPPopUp(Disabled: Boolean): Boolean;
var
i: Integer;
TPA: TPointArray;
P: TPoint;
S: String;
begin
for i := 0 to 1 do
begin
TPA := TPAFromBox(IntToBox(521, 51, 546, 75));
FilterPointsPie(TPA, 0, 360, 0, 12, 534, 63);
P := TPA[Random(Length(TPA))]; // *** This Line Right Here ***\\
Mouse(P.X, P.Y, 0, 0, mouse_right);
if WaitOptionMulti(['Pop', 'op', '-up'], 1000) then
begin
Wait(1500+Random(500))
S := GetBlackChatMessage;
if Pos('disabled', S) > 0 then
Result := Disabled;
if Pos('enabled', S) > 0 then
Result := not Disabled;
if Result then
Break;
end;
end;
Writeln(S);
end;Thanks