SRL Archive - OSR Help

chooseoption not working


mriddler

2012-02-21 09:57:42

I am updating my personal teleport tab making script to cut down on the amount of code to prevent less malfuctions. For some reason, the Mouse option below doesn't work and so doesn't the chooseoption.

procedure More3;  //MORE 3
var
x, y:Integer;

begin
if FindColorSpiralTolerance(x, y, 2699577, 699, 439, 709, 451, 10) then
begin
if FindColorSpiralTolerance(x, y, 526344, 239, 182, 271, 194, 10) then
begin
WriteLn('more3');
Wait(4000 + Random(250));
Mouse(x, y, 1, 1, False);
Wait(1000);
ChooseOption('etch-from-bank');
Wait(1100);
end;
end;
end;

The mouse function just slowly moves the mouse for like ever, it takes like 5 minutes for it to reach it's destination and once it right clicks the demon butler, it just sits there not clicking the option.

Help would be appreciated.

Brandon

2012-02-21 10:29:13

Because your not using smart, you must set the mouse option speed yourself..
2nd.. You don't have any fail-safe's

MouseSpeed:= 8; is what your looking for to make it move faster. Higher the number, faster it moves.


Next your going to want to check the uptext first -__-.. Finding the colour alone is definitely not enough. Using wait like that is incorrect as well.
You should move the mouse to the butler, if WaitUptext('utler', 600) then..
Rightclick him
Waitoption(…..);

You should never make your script depend entired on time.. for example: Clicking something then waiting 5 seconds then clicking something else.. you should always check if the options are there or the uptext then do the second click. Why? Because a single lag will screw u hard.