Results 1 to 9 of 9

Thread: TreeDown

  1. #1
    Join Date
    Jul 2007
    Location
    Missouri
    Posts
    318
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default TreeDown

    What would be the best way to detect if a tree is down? I have a function to look for the color of the tree and the coords the color is, but it fails every time, i have changed the color several times. Its simple but should work, right?

    This is the function:
    SCAR Code:
    Function TreeDown: Boolean;
    begin
      if Not LoggedIn then Exit;
      Wait(RandomRange(50, 650));
      Result := Not FindTreeColor(tx, ty);
      if Result then WriteLn('Tree down.');
    end;

  2. #2
    Join Date
    Jun 2008
    Posts
    11
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    The easiest way is to have the mouse hover over it. Then when the uptext no longer starts with "Chop" the tree is gone.

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

    Default

    If your mouse is at the tree u could do a

    Mouse and then click it
    GetMousepos(X,Y);
    Firstcolor :=GetColor(X,Y);

    If not FirstColor = GetColor(X,y);
    ~Hermen

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

    Default

    Yea 4chan bet then you would have no antiban, and be like super detectable because your not moving at all. So no moving to compass for antiban. And it l imagine it being very bot like just to type and no have antiban. I like that procedure ikillutill though.

    noidea
    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

  5. #5
    Join Date
    Jun 2008
    Posts
    11
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Uhh.. the whole point of antiban is to act like a human. When you chop a tree do you move the mouse around randomly? Most people sit there and wait for it to disappear. Antiban doesn't have to happen every few seconds because that isn't realistic. -.-

  6. #6
    Join Date
    May 2007
    Location
    Ohio
    Posts
    2,296
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Reflection Pl0x?

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

    Default

    Well, I don't play rs a ton but when I do I sit there and randomly movew the mouse around trying to amuse my self if not looking on this site Or is it just me?

    noidea
    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

  8. #8
    Join Date
    Jul 2007
    Location
    Missouri
    Posts
    318
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Well, reflection is pretty much out of the question for me because i haven't tried using it yet. The function is used to find out if the color i originally clicked on is still their, so i believe thats what you were explaining hermpie. i still can't get it to work.... grrr... i appreciate everyones effort to try to help me out .

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

    Default

    Lets use a TPA!

    SCAR Code:
    Function TreeDown: Boolean;

    var
      colors1 : TPointArray;
      colors2 : TIntegerArray;

    begin
      if Not LoggedIn then Exit;
      Wait(RandomRange(50, 650));
      FindColorsSpiralTolerance(x, y, colors1, treecolor, MSx1, MSy1, MSx2, MSy2, 5); // <- these are probably wrong parameters you know what i mean though
      for i := 0 to High(Colors1) do
        Colors2[i] := GetColor(Colors1[i].x, Colors1[i].y);
      ClearSameIntegersAndTPA(Colors2, Colors1);
      repeat
        Wait(100+random(25));
        for i := 0 to High(Colors1) do
          if not(Colors2[i] := GetColor(Colors1[i].x, Colors1[i].y)) then
          begin
            result := true;
            break;
          end;
      until result;
      if Result then WriteLn('Tree down.');
    end;

    *Edit, improved code!

    Rather advanced function, but you should be able to get that to work. I don't think it does currently, but its close .

    Good luck, hope I helped!

    Nava2
    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

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
  •