Unable to move to InvBox once getting bounds
Using SRL-OSR
GetInvItemBounds(1, Bx);
writeln(Bx);
MouseTBox(Bx, 2);
I get proper coordinates of the item:
Compiled successfully in 2231 ms.
{X1 = 563, Y1 = 213, X2 = 594, Y2 = 244}
Found item
Error: Invalid jump at line 451
Execution failed.
Line 451 is:
function GaussRand(mean, dev: Extended): Extended;
begin
result := mean + dev*srl_GaussRand();
end;
I am just looking to get the bounds of an item in inventory them use MouseTBox to click anywhere randomly inside that box.
Ty