Results 1 to 6 of 6

Thread: Gigity Giggity Goo

  1. #1
    Join Date
    Jun 2007
    Location
    Liverpool ,Nsw,Australia
    Posts
    740
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Gigity Giggity Goo

    Hey guys, I'm making a completely new script for SRL members. I just need to know what Find''Road color is? What would it be (Market by the red square)? I have a suspicious feeling, it's FindRoadColor, but im not sure. Rep will be rewarded ...

    Quote Originally Posted by Darkmage View Post
    I got 2 questions'
    #1. When i run the script will it automatically pick up the mouse and move?

  2. #2
    Join Date
    Jul 2007
    Posts
    124
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Remove your username from that pic, or fagex will see it.

  3. #3
    Join Date
    Jun 2007
    Location
    Liverpool ,Nsw,Australia
    Posts
    740
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by OpenHearts View Post
    Remove your username from that pic, or fagex will see it.
    Fcuk them. Ban me....Btw i just changed the thread title :S
    Quote Originally Posted by Darkmage View Post
    I got 2 questions'
    #1. When i run the script will it automatically pick up the mouse and move?

  4. #4
    Join Date
    Jun 2008
    Location
    San Diego, California
    Posts
    276
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    The one your standing on is, FindVarrockRoadColor, but the one to your top right, there is not an autocolor function for that..good thing I made one, hasn't failed yet for me.
    SCAR Code:
    function VarrockDirtRoad: Integer;
    var
      i, Red, road, Green, Blue, GC, TestColor, Tol: Integer;
      P: TPointArray;
    begin
         GC := 5992305;
         FFlag(0);
         Tol := 100;
         Marktime(Road);
         repeat
         FindColorsSpiralTolerance(MMcx, MMcy, P, GC, MMx1, MMy1, MMx2, MMy2, Tol);
         for i:=0 to High(p)-1 do
         begin
           if rs_OnMinimap(P[i].x,P[i].y) then
           begin
             TestColor := GetColor(P[i].x,P[i].y);
             ColorToRGB(TestColor, Red, Green, Blue);
             if InRange(Red - Blue, 18, 25) then
               if InRange(Red - Green, 0, 9) then
                 if InRange(Green - Blue, 12, 24) then
                   if GetColor(P[i].x + 5, P[i].y + 5) = TestColor then
                    if GetColor(P[i].x + 3, P[i].y + 3) = TestColor then
                      if GetColor(P[i].x, P[i].y + 5) = TestColor then
                        if GetColor(P[i].x + 5, P[i].y) = TestColor then
                          if GetColor(P[i].x, P[i].y + 3) = TestColor then
                            if GetColor(P[i].x + 3, P[i].y) = TestColor then
                              if GetColor(P[i].x + 5, P[i].y + 3) = TestColor then
                                if GetColor(P[i].x + 3, P[i].y + 5) = TestColor then
                                  begin
                                    Result := TestColor;
                                    Writeln('Found VarrockDirtRoad Color = '+IntToStr(Result)+' With a Tolerance of: ' + IntToStr(Tol));
                                    WriteLn('Took: ' + IntToStr(timefrommark(Road))+ ' Milliseconds');
                                    exit;
                                  end;
           end;
         end;
         Result := 0;
         Tol := Tol + 100;
         until(Result > 0) or(Tol = 500)
      if(result = 0)or(Tol = 500)then WriteLn('Couldnt Find VarrockDirtRoad Color In: ' + IntToStr(timefrommark(Road))+ ' Milliseconds');
     Tol := 0
    end;
    Pretty fast too averages 50 Milliseconds. Does 10 Millisecond Often if you can see enough of the road.
    Current Project: All In 1 Falador Script - 20% DONE

  5. #5
    Join Date
    Jun 2007
    Location
    Liverpool ,Nsw,Australia
    Posts
    740
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Great thanks! Repped...
    Quote Originally Posted by Darkmage View Post
    I got 2 questions'
    #1. When i run the script will it automatically pick up the mouse and move?

  6. #6
    Join Date
    Jun 2008
    Location
    San Diego, California
    Posts
    276
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Woohoo, Thanks! Goodluck making your script
    BTW here is the road that autocolor will autocolor..
    http://s50.photobucket.com/albums/f3...ent=fail-1.jpg
    Current Project: All In 1 Falador Script - 20% DONE

Thread Information

Users Browsing this Thread

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

Posting Permissions

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