Results 1 to 7 of 7

Thread: Few questions.

  1. #1
    Join Date
    Dec 2007
    Posts
    2,766
    Mentioned
    2 Post(s)
    Quoted
    37 Post(s)

    Default Few questions.

    Hi.

    Question I) :

    Can I use a TPA inside another TPA ? Like this ?

    SCAR Code:
    Procedure Walk;
    Var
      TPA  : TPointArray;
      P    : TPoint;
      X,Y,Z: Integer;
     
    Begin
      If (FindColorsTolerance(TPA,1721440,MMX1,MMY1,MMX2,MMY2,3)) then
      Begin
        For Z := 0 to High(TPA)do
        Begin
          P := TPA(Z)
          MMouse(P.x,P.y, 3, 3);
          If (IsUpText('alk')) then
          Begin
            GetMousePos(X,Y);
            Mouse(X,Y,0,0,true);
            Flag;
            If (FindColorsTolerance(TPA,1721440,625,212,665,255,3)) then
            Begin
              For Z := 0 to High(TPA)do
              Begin
                P := TPA(Z);
                MMouse(P.x,P.y, 3, 3);
                If (IsUpText('alk')) then
                Begin
                  GetMousePos(X,Y);
                  Mouse(X,Y,0,0,true);
                  Flag;
                  ID('Walk successful');
                  Exit;
                End;
              End;
            End;
          End;
        End;
      End;
    End;

    Or would it mess up ?

    Thanks in advance.

    Question 2 :

    PLEASE EXPLAIN ME HOW TO AUTOCOLOR !!!!

    I READ TUTS BUT I JUST DONT GET IT !!!

    Please explain step by step how I'd autocolor a color ?


    Rep ++ If you answer my questioons .

  2. #2
    Join Date
    Dec 2007
    Location
    192.168.1.73
    Posts
    2,439
    Mentioned
    6 Post(s)
    Quoted
    119 Post(s)

    Default

    You can use a TPA inside another TPA, basically what you have there is it finds the first, then moves on to the second if it finds the first.

    And the only autocoloring I know of is through the SRL function AutoColorThis, which only works with BMPs:

    SCAR Code:
    {*******************************************************************************
    function AutoColorThis(Bitmap, MaxTol, X1, Y1, X2, Y2: Integer): Integer;
    By: Sumilion
    Description: Returns exact color of a bmp with tol found on the screen.
    *******************************************************************************}


    Searching through the includes is great

  3. #3
    Join Date
    Dec 2007
    Posts
    2,766
    Mentioned
    2 Post(s)
    Quoted
    37 Post(s)

    Default

    Quote Originally Posted by Richard View Post
    You can use a TPA inside another TPA, basically what you have there is it finds the first, then moves on to the second if it finds the first.

    And the only autocoloring I know of is through the SRL function AutoColorThis, which only works with BMPs:

    SCAR Code:
    {*******************************************************************************
    function AutoColorThis(Bitmap, MaxTol, X1, Y1, X2, Y2: Integer): Integer;
    By: Sumilion
    Description: Returns exact color of a bmp with tol found on the screen.
    *******************************************************************************}


    Searching through the includes is great
    1) So mine would work ?

    2) So I take a BMP of the area or the color of the area I want to walk ?

  4. #4
    Join Date
    Mar 2007
    Location
    <3
    Posts
    2,683
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I think you mean RGB, HSL for autocoloring?

  5. #5
    Join Date
    Dec 2007
    Posts
    2,766
    Mentioned
    2 Post(s)
    Quoted
    37 Post(s)

    Default

    Quote Originally Posted by N1ke! View Post
    I think you mean RGB, HSL for autocoloring?
    Yes but I don't understand RGB when it comes to the comparison .

  6. #6
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    You first question, no you cannot. That wouldn't work. As you will be reseting the array you are currently cycling through.

    It would work until the second FindColorsTolerance fails, then you have issues.



    Just use: TPA: array [0..1] of TPointArray; And use 0 for the first and 1 for the second.
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

  7. #7
    Join Date
    Dec 2007
    Location
    192.168.1.73
    Posts
    2,439
    Mentioned
    6 Post(s)
    Quoted
    119 Post(s)

    Default

    But surely hes already clicked the first point, so it doesn't matter if he resets the array...

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. a few questions....
    By burnout in forum OSR Help
    Replies: 4
    Last Post: 01-26-2008, 07:52 PM
  2. A few questions
    By RSMacroLegend in forum OSR Help
    Replies: 6
    Last Post: 11-29-2007, 03:23 AM
  3. several questions
    By lnknprkn in forum RuneScape News and General
    Replies: 0
    Last Post: 11-14-2007, 02:37 AM

Posting Permissions

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