Results 1 to 4 of 4

Thread: Need a Function?

  1. #1
    Join Date
    Jul 2008
    Location
    Canada
    Posts
    1,612
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Need a Function?

    I need a FindObj function that is good for finding willow tree's or certain colors....(if it has tolerance it is good 2).
    Any idea?

  2. #2
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Custom TPA's?
    Quote Originally Posted by irc
    [00:55:29] < Guest3097> I lol at how BenLand100 has become noidea
    [01:07:40] <@BenLand100> i'm not noidea i'm
    [01:07:44] -!- BenLand100 is now known as BenLand42-
    [01:07:46] <@BenLand42-> shit
    [01:07:49] -!- BenLand42- is now known as BenLand420
    [01:07:50] <@BenLand420> YEA

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

    Default

    FindObjTPA or custom TPA's would probably be the best answer .

  4. #4
    Join Date
    Jul 2008
    Location
    Canada
    Posts
    1,612
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    procedure ChopTree;
    var
        X,Y: Integer;
        CuttingTime: integer;
        Tries: integer;
    begin
      MarkTime(CuttingTime);
      MakeCompass('S');
      repeat
        if FindObjCustom(x , y, ['Wil', 'low'], [1989969, 3760987, 2844763], 7) then
         begin
           Mouse(x,y,0,0,false);
           if(IsUpText('Chop'))then
             Wait(5000 + (random(150)));
             ChooseOption('hop')
           if (not (FindObjCustom(x, y, ['Wil', 'low'], [1989969, 3760987, 2844763], 7))) then
               Wait(100+random(100));
               Tries := Tries + 1;
               if(Tries = 50)then
               begin
                 Writeln ('Willow Logs not found. Switching Players..');
                 Logout;
                 NextPlayer(False);
                 Exit;
               end;
           end;
      until(InvFull) or (TimeFromMark(CuttingTime) > 800000+random(60000));
    end;
    I have something like this right now that find the willow, but, it keep clicking chopwillow chopwillow over and over again, how would i make it stop doing that and wait for the willow to be "chopped"?
    Also anyone know a good FindAxe function?

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 02-27-2008, 05:20 PM
  2. Replies: 2
    Last Post: 02-26-2008, 08:26 PM
  3. Any function that does this?
    By shadowpwner in forum OSR Help
    Replies: 2
    Last Post: 08-14-2007, 03:15 AM
  4. [FUNCTION] FindDoorColour: integer; By ZephyrsFury [FUNCTION]
    By ZephyrsFury in forum Research & Development Lounge
    Replies: 10
    Last Post: 07-27-2007, 08:45 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
  •