SRL Archive - Bugs

[Bug] ToggleXPPopUp


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:
Error: Out Of Range at line 2359

And 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

Yago

2012-05-19 11:22:30

What version of SIMBA are you using?

Brandon

2012-05-19 11:23:14

http://villavu.com/forum/showthread.php?t=82462&highlight=everything+broken

bolshak25

2012-05-19 11:24:07

are you up to date with srl? my getxpbar works

Abu

2012-05-19 11:26:10

From: Yago
What version of SIMBA are you using?


Simba 0.99 rc-5

All extensions are up to date.

bg5

2012-05-19 11:36:31

http://villavu.com/forum/showthread.php?t=82510

Yago

2012-05-19 11:41:48

From: abu_jwka
Simba 0.99 rc-5

All extensions are up to date.


If you read lower, I was having trouble with filterpointspie….

He gave me a link with a new version in that thread. Try it.