Results 1 to 10 of 10

Thread: Need Help...

  1. #1
    Join Date
    Oct 2007
    Location
    SoCal
    Posts
    31
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Need Help...

    How do you create an Anti-Ent thingy for a woodcutting script? I have no clue where to start.

  2. #2
    Join Date
    Jun 2007
    Location
    Greenville, SC
    Posts
    1,149
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    there is a built-in ent finder in SRL =P
    an example to use:
    SCAR Code:
    program new;
    {.include SRL/SRL.scar}
    {.include SRL/SRL/skill/WoodCutting.scar}
    //stuff here
    procedure chop;
    begin
      abc//chopping stuff
      FindEnt(x, y, True);// x and y are your coord variables and true will make the script avoid the ent (false for not to avoid...)
      123//more stuff here like random finding
    end;

    begin
      SetupSRL;
      abc2//Blah Blah Blah
    end.

  3. #3
    Join Date
    Mar 2007
    Location
    Netherlands->Amersfoort.
    Posts
    1,615
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    function FindEnt(fx, fy: Integer; AvoidWhenFound: Boolean): Boolean;
    By: Sumilion
    Description: Will look for an Ent and avoid if found.
    ''FindEnt(x, y, True);''

    x and y = are the coordinates where the tree is your currently copping.
    true = does it needs to walk away from the tree and wait till the ent is gone?

  4. #4
    Join Date
    Oct 2007
    Location
    SoCal
    Posts
    31
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)
    When I enter it in it says:

    Unknown identifier 'FindEnt' in script C:\Program Files\SCAR 3.12\Scripts\Draynor Wood Cutter and Banker.scar

    How do you fix that?

  5. #5
    Join Date
    Aug 2007
    Location
    Australia
    Posts
    133
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    {.include SRL/Skill/Woodcutting.scar}
    Quote Originally Posted by The Un-Named View Post
    You can do this a few times before mods catch on...

    "oh fuck, I think the icecream truck just knocked a kid over, brb".

  6. #6
    Join Date
    Mar 2007
    Location
    Netherlands->Amersfoort.
    Posts
    1,615
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    {.include SRL/SRL/Skill/woodcutting.scar}

    jou need to include woodcutting

    edit: lol

  7. #7
    Join Date
    Oct 2007
    Location
    SoCal
    Posts
    31
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Now it says:

    Include file C:\Program Files\SCAR 3.12\includes\SRL\Skill\Woodcutting.scar does not exist.

    Ugggg.....

  8. #8
    Join Date
    Mar 2007
    Location
    Netherlands->Amersfoort.
    Posts
    1,615
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    {.include SRL/SRL/Skill/woodcutting.scar}

    call 2 times srl/srl. atm you have only srl/

  9. #9
    Join Date
    Sep 2007
    Posts
    27
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    read the whole script

    i think its stand there

  10. #10
    Join Date
    Oct 2007
    Location
    SoCal
    Posts
    31
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)
    got it to work! thanks!

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
  •