PDA

View Full Version : Need major help



Wyn
11-24-2006, 01:16 PM
Ok, im going back to my other project (check sig)

and i was wondering if there was two of the same minimap symbols there at the same time, how do i ask scar to go to one but not the other.

Just for a example of this is at the yews behind verrok castle where i want to go to the farther one by using the minimap symbol but can't since there are others of the same one there.

Please help

Thanks

Da Der Der
11-24-2006, 04:07 PM
My guess would be to do (If you are using the SRL include):

GetSymbolColor(x,y,'rare trees');
Mouse(x+2,y+2,5,5,true); <------- This would probably walk to the Northern Tree Symbol.
CountFlag(3);
RunWhere('N',False); <----- This would run South a little bit, ending up at the other tree.
CountFlag(2);
end;

Pentti
11-24-2006, 04:47 PM
This is something I made for months ago to my old yew cutter script:


Function FindSymbolIn(var X,Y : integer; Symbol:string; xs, ys, xe, ye : Integer) : Boolean;
var Symbola:integer;
begin
Symbola:=GetSymbolColor(x,y,Symbol)
if(FindColor(x,y,Symbola,xs,ys,xe,ye))then
Result :=True;
end;

procedure ChangeToNTree;
begin
if(FindSymbolIn(x, y,'Rare trees', 630, 25, 660, 60))
then begin
writeln('Changing to north tree')
Mouse(x+9,y+9,2,2,True)
Flag;
end;
end;

procedure ChangeToSTree;
begin
if(not(FindSymbolIn(x, y, 'rare trees', 630, 25, 660, 60)))
then begin
if(FindSymbolIn(x, y, 'rare trees', 630, 110, 660, 140))
then begin
writeln('Changing to South tree')
Mouse(x+9,y+2,2,2,True)
Flag
end;
end;
end;