SRL Archive - OSR Help

P07_ChooseOptionMulti and P07_Getuptext not working why?


rsbots2013

2013-05-24 13:38:38

Can someone help me get these 2 to work.



program new;


{$I SRL-OSR/SRL.Simba}
{$I P07Include.Simba}

var
BalancingRopeColor1, BalancingRopeColor2, BalancingRopeColor3, BalancingRopeColor4 : integer;

procedure BalancingRope;

var
x, y : integer;
aFound : extended;

begin
if FindColorSpiralTolerance( x, y, BalancingRopeColor1, 397, 106, 455, 257, 5) or
FindColorSpiralTolerance( x, y, BalancingRopeColor2, 397, 106, 455, 257, 5) or
FindColorSpiralTolerance( x, y, BalancingRopeColor3, 397, 106, 455, 257, 5) or
FindColorSpiralTolerance( x, y, BalancingRopeColor3, 397, 106, 455, 257, 5) then
begin
Wait(1000);
P07_GetUpText(['on','balan','cing','ope'],100);
Wait(1000);
P07_ChooseOptionMulti('walk');
Wait(1000);
writeln('Found Obstacle Net 2');
Mouse( x, y, 1, 1, True);
end else
begin
Writeln('Balancing Rope NOT found... Attempting to retry...');
Wait(1000);
BalancingRope;
end;
end;

begin
DeclarePlayers;
SetupSRL;
LoadColor;
SetAngle(SRL_ANGLE_HIGH);
MouseSpeed:= 20;
MakeCompass('n');
BalancingRope;
end;

Sjoe

2013-05-24 13:50:24

U don't have to use p07include(it is not up to date anymore) , just the osrs include.

replace following:


P07_GetUpText(['on','balan','cing','ope'],100);

P07_ChooseOptionMulti('walk');

//With

WaitUptextMulti(['on','balan','cing','ope'],600);
WaitOption('walk', 600);

Sk1nyNerd

2013-05-24 16:33:22

i think for the P07_GetUpText you have to use the full dialog. Try using P07_IsUpTextMultiCuston();

and you need to right click what ever it is before you can choose an option for your P07_ChooseOption:P

and yes, making your script OSR will be better. But if your doing this for practice or a free public version nbd