Results 1 to 8 of 8

Thread: Need some woodcutting help

  1. #1
    Join Date
    Mar 2009
    Location
    Illinois
    Posts
    292
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Need some woodcutting help

    Okay so I'm working on my members application and its a woodcutter, but I would like not to use reflection for this one part, but it would make things so much easier..., but anywho, how could I figure out if my character is currently woodcutting or not? Reflection:
    SCAR Code:
    procedure WhileWoodcutting;
    begin
      While(characterMoving)do wait(10);
      Wait(1000+random(1000));
      While(characterAnimating)do
      begin
        FindNormalrandoms;
        AntiBan;
        Wait(500+random(250));
      end;
    end;

    But how would I do it with color

  2. #2
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Here's what I did. I made a separate function that searches for the color of the tree in a 20 x 20 pixel box. If the amount of colors in that box is less than 8, then the tree is cut down. Here is what I use:

    SCAR Code:
    function Cut_TreeCutDown: Boolean;
    var
      TPA : TPointArray;
    begin
      if not LoggedIn then Exit;
      ColorToleranceSpeed(2);
      SetColorSpeed2Modifiers(0.18, 0.28);
      FindColorsTolerance(TPA, 4481105, TP.x - 10, TP.y - 10, TP.x + 10, TP.y + 10, 14);
      if(Length(TPA) < 8)then
      begin
        //Writeln('Length inside box: ' + IntToStr(Length(TPA)));
        Result := True;
      end;
      SetColorSpeed2Modifiers(0.2, 0.2);
      ColorToleranceSpeed(1);
    end;

    You can also have the script search for the color of the axe handle after your character starts chopping the tree, and when it doesn't find the handle, then the player isn't chopping, and should click again. I've never actually used this method, so I don't know exactly if it would work well or not.

    Another thing I would suggest is to look at other woodcutting scripts, and see what they did, I've learned a lot that way. However, if you're making the script reflection anyway, you should use animations. I would much rather see a reflection script that works flawless, than a color script that works 80% of the time.

    Good luck with your next application, and I hope I helped.

    Cheers!

  3. #3
    Join Date
    Mar 2009
    Location
    Illinois
    Posts
    292
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ok that sounds well rather intresting, yet difficult haha, but thank you very much I was going to try to make it 100% non-reflection but we'll see how that goes

  4. #4
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by All that is man View Post
    Ok that sounds well rather intresting, yet difficult haha, but thank you very much I was going to try to make it 100% non-reflection but we'll see how that goes
    To be honest, you would be better off to go with a 100% color script for your application. There are a lot of people out there that vote an instant "No", simply because someone uses reflection.

  5. #5
    Join Date
    Mar 2009
    Location
    Illinois
    Posts
    292
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Coh3n View Post
    There are a lot of people out there that vote an instant "No", simply because someone uses reflection.
    Which sucks very majorly.

  6. #6
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    Quote Originally Posted by Coh3n View Post
    To be honest, you would be better off to go with a 100% color script for your application. There are a lot of people out there that vote an instant "No", simply because someone uses reflection.
    yeah, =\ i would use reflection to wait while cutting, and i wouldnt say no because of this one small line
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  7. #7
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by Awkwardsaw View Post
    yeah, =\ i would use reflection to wait while cutting, and i wouldnt say no because of this one small line
    That could be frowned upon because it's a difficult part in a woodcutting script, and if the scripter just gives up and takes the easy way out, that's not very appealing on their application. Also, it doesn't make much sense to have one a small part of your script reflection, does it?

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

    Default

    • Find Tree
    • Click Tree
    • Wait until tree has gone or time lapsed of X seconds
    • - Run AntiBan
    • - Run AntiRandoms
    • Wait untill tree is back or time is up.
    • Repeat.


    That will work

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

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
  •