Results 1 to 13 of 13

Thread: findent :/

  1. #1
    Join Date
    Jan 2007
    Posts
    268
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default findent :/

    hi the new function findent by sumilion is not working on my script!

    i put findent; and it says:

    Line 133: [Error] (12585:8): Invalid number of parameters in script C:\Program Files\SCAR 3.11\Scripts\beta4yewnoaxeloose.scar

    do i have to put likr findent(something,something) ????

    if yes give me like an example some1 plz!

  2. #2
    Join Date
    Jan 2007
    Location
    Illinois.. >.<
    Posts
    1,158
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yea, you do. Here's the new code, hopefully you will be able to figure it out.

    SCAR Code:
    function FindEnt(fx, fy: Integer; AvoidWhenFound: Boolean): Boolean;
    var
      arUpTextEntColorPoints: TPointArray;
      x, y, EntTime, tcts: Integer;
    begin
      if not(LoggedIn)then
        Exit;
      GetMousePos(x, y);
      if(x <> fx)or(y <> fy)then
        MMouse(fx, fy, 0, 0);
      if(IsUpText('Chop'))then
      begin
        tcts := GetColorToleranceSpeed;
        ColorToleranceSpeed(2);
        SetColorspeed2Modifiers(0.4, 0.4);
        FindColorsTolerance(arUpTextEntColorPoints, 51657, 80, 6, 127, 20, 5);
        Result := Length(arUpTextEntColorPoints) > 10;
        ColorToleranceSpeed(tcts);
      end;
      if(Result)then
      begin
        WriteLn('Ent Found!!');
        if(AvoidWhenFound)then
        begin
          Writeln('Waiting for it to go away.');
          MarkTime(EntTime);
          while(TimeFromMark(EntTime) < 35000)do
            if(Random(20) > 15)then
              IdleTime(500, 500, 0.4)
            else
              Wait(500 + Random(500));
          EntsAvoided := EntsAvoided + 1;
        end;
      end;
    end;

  3. #3
    Join Date
    Aug 2007
    Posts
    429
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Edit : nvm

  4. #4
    Join Date
    Jan 2007
    Posts
    268
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    guys i know where to find the procedure inside srl woodcutting. the thing is that i dont know if in my scipt i have to put it like:

    FindEnt;

    or like

    FindEnt(something);


    u see waht i mean? thx

  5. #5
    Join Date
    Jan 2007
    Location
    Illinois.. >.<
    Posts
    1,158
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You should be able to find out what to put in the function from that code. I'll be a little more specific, its in this line:

    SCAR Code:
    function FindEnt(fx, fy: Integer; AvoidWhenFound: Boolean): Boolean;

    I'm trying to help you by not directly giving you the answers. If you still dont get what im saying, ill explain it to you directly. Good luck!

  6. #6
    Join Date
    Jan 2007
    Posts
    117
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    chris do you know whether theyve updated the srl findent procedure? -the only one never worked reliably after all the updates.
    No Signature Assigned.

  7. #7
    Join Date
    Jan 2007
    Location
    Illinois.. >.<
    Posts
    1,158
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Not really sure. I think they did, but im not sure...

  8. #8
    Join Date
    Apr 2007
    Location
    UK
    Posts
    2,295
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SRL4 FindEnt seems to work pretty good.

    Rogeruk's Al-Kharid Tanner V1.1 [Released]
    Rogeruk's Barbarian Crafter [Coming Soon]
    Rogeruk's Guild Fisher [Coming Soon]
    !! - Taking Requests - !!

  9. #9
    Join Date
    Jan 2007
    Posts
    268
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    chris i dont get it tell me plz, because ok yea integer... wat integer i put there fx, fy? ok avoid whenfound wtf am i supposed to do ?

    i dnt get it

  10. #10
    Join Date
    Jan 2007
    Posts
    268
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    oop nvm helped me alot lool i figured out it like

    FindEnt(x, y, true);

    lol wat a noob i am thanks dude

  11. #11
    Join Date
    Jan 2007
    Location
    Illinois.. >.<
    Posts
    1,158
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    No problem. Try not to double post though

  12. #12
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    2,984
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    And yes its different, i threw my FindEnt at it and this is the result.
    Administrator's Warning:


  13. #13
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    nice thanks foer the findent
    ~Hermen

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. FindEnt help
    By Zeta in forum OSR Help
    Replies: 7
    Last Post: 10-07-2007, 07:05 PM
  2. FindEnt;
    By steth1010 in forum OSR Help
    Replies: 4
    Last Post: 05-10-2007, 03:11 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
  •