Results 1 to 10 of 10

Thread: NeeD HelP!

  1. #1
    Join Date
    Dec 2006
    Location
    Program TEXAS home of AUTOERS
    Posts
    7,934
    Mentioned
    26 Post(s)
    Quoted
    237 Post(s)

    NeeD HelP!

    hey guys im having trouble with my ent finder, well fr0zen old 1 but im updating it so it can work, and i get this error:

    SCAR Code:
    Line 486: [Error] (13392:83): Type mismatch in script C:\Program Files\SCAR 3.15\Scripts\P1nky W1nky V1.0.scar

    this is the line:
    SCAR Code:
    if   FindColorsSpiralTolerance(X, Y, EntsTPA, Ent[i], MSX1, MSY1, MSX2, MSY2, 10) then


    THE FUNCTIOn:
    SCAR Code:
    Function CheckForEnt: Boolean;

     var
       ent : array [0..2] of integer;
       entsTPA: TPointArray;
       Counter, I: Integer;
    Begin
                 Ent[0] := 3363674;
                 Ent[1] := 1979638;
        SRLStatsNeedSent;
        If Not (LoggedIn) Then Exit;
        Counter := 0;
        While Counter < 8 Do
        Begin
         for i := 0 to 2 do
          if   FindColorsSpiralTolerance(X, Y, EntsTPA, Ent[i], MSX1, MSY1, MSX2, MSY2, 10) then
           begin
            for I := 0 to 0 do
             MMouse(TreeTPA[i].x, TreeTPA[i].y, 3, 3);
           writeln('found ENT ');
            i := GetColor(86 + Counter, 17);
            Counter := Counter + 1;
           If SimilarColors(i, 119764, 60) Then
            Begin
                Result := true;
                Writeln('We found an ent!! Trying to avoid now..');
                If FindSymbol(x, y, 'fish') Then
                    Mouse(x, y, 3, 3, true);
                Flag;
                writeln('found ent so we at the fish symbol for the hell of it');
                wait(10000);
                If Not FindSymbol(x, y, 'fish') Then
                Begin
                    writeln('waiting atm since ent here lalalala and no fish symbol');
                     Mouse(391, 242, 10, 10, true);
                    FTWait(60 + Random(5));
                    Begin
                        Writeln('Whew! We avoided the ent.. Carrying on with chopping');
                        Exit;
                    End;
                End;
            End;
            Result := false;
        End;
      End;
     end;

    AND I WAS JUST WONDERING CAN SOMEONE GIVE ME TEHRE WORKING ENT FINDER since i suck at making ent finding. and btw do i get the colors of the trunk and the leaves or the FINDUPTEXT?
    THANKS!

  2. #2
    Join Date
    Jul 2007
    Location
    Ottawa, Canada
    Posts
    930
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    FindColorsSpiralTolerance(x, y: Integer; var Points: TPointArray; color, xs, ys, xe, ye: Integer; Tolerance: Integer);

    ur problem is that FindColorsSpiralTolerance is a procedure, not a function.

    Just check the length of the TPA after you run the proc to see if it caught anything
    ~ Metagen

  3. #3
    Join Date
    Apr 2008
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default same

    had the same problem...

  4. #4
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    Also there are arrays 0 and 1 so it would be
    SCAR Code:
    for i:= 0 to 1 do


    But i guess it doesn't matter that much.

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

    Default

    Quote Originally Posted by NaumanAkhlaQ View Post
    Also there are arrays 0 and 1 so it would be
    SCAR Code:
    for i:= 0 to 1 do


    But i guess it doesn't matter that much.
    If that was the problem, wouldn't you get invalid Number of "[ERROR]: Line blah:Invalid Number of Parameters in script blah blah blah..."?

  6. #6
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    ahhem

    But i guess it doesn't matter that much.

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

    Default

    Whoops, missed that line, sowwy...

  8. #8
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    Ill settle in gp

    Lol

    @ P1NKY dont use that ent finder, use SRL's .

  9. #9
    Join Date
    Dec 2006
    Location
    Program TEXAS home of AUTOERS
    Posts
    7,934
    Mentioned
    26 Post(s)
    Quoted
    237 Post(s)

    Default

    Quote Originally Posted by NaumanAkhlaQ View Post
    Ill settle in gp

    Lol

    @ P1NKY dont use that ent finder, use SRL's .
    srl's isnt that good? or have they updated it :P

  10. #10
    Join Date
    Sep 2007
    Posts
    415
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Dude Richard View Post
    If that was the problem, wouldn't you get invalid Number of "[ERROR]: Line blah:Invalid Number of Parameters in script blah blah blah..."?
    he'd get [runtime error] out of range Blah..and it is that important considering it's kind of like preventitive failure
    Quote Originally Posted by That guy that wrote forefeathers
    <munklez>haha im too lazy, girls annoy me
    <munklez> they always wanna like, do stuff
    <munklez> and i just wanna program
    <munklez> and they always take all my money

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
  •