Results 1 to 3 of 3

Thread: Need major help

  1. #1
    Join Date
    Jun 2006
    Posts
    694
    Mentioned
    0 Post(s)
    Quoted
    31 Post(s)

    Default Need major help

    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

  2. #2
    Join Date
    Nov 2006
    Posts
    189
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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;

  3. #3
    Join Date
    Jun 2006
    Location
    USA
    Posts
    1,828
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    This is something I made for months ago to my old yew cutter script:

    Code:
    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;

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Major Need For Help!
    By faster789 in forum OSR Help
    Replies: 20
    Last Post: 04-12-2008, 08:36 PM
  2. Need Major Help!
    By Da Der Der in forum OSR Help
    Replies: 5
    Last Post: 12-14-2006, 07:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •