SRL Archive - Research & Development Lounge

need help with small problem


mriddler

2012-02-19 01:34:50

I have made my own basic teleport tab script but for some reason after a random few hours, it pulls up another runescape page and its difficult to end the script so i need a way to reconize when the script doesn't see runes in my inventory it will kill the script.

I use findcolorspyraltolerance but i dont know how to use it so if it doesnt seen a certain color, it will start the procedure. I usually use it like this…

procedure Fail;
var
x, y:Integer;

begin
if FindColorSpiralTolerance(x, y, 0, 699, 439, 709, 451, 10) then
begin
TerminateScript;
end;
end;


help would be appreciated.

mriddler

2012-02-19 01:53:31

NVM i found out about how to use the 'else' option.

bloopy62

2012-02-20 20:17:43

The best answers are the ones you find yourself. Gratz!