How do you create an Anti-Ent thingy for a woodcutting script? I have no clue where to start.![]()
How do you create an Anti-Ent thingy for a woodcutting script? I have no clue where to start.![]()
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.
''FindEnt(x, y, True);''SCAR Code:function FindEnt(fx, fy: Integer; AvoidWhenFound: Boolean): Boolean;
By: Sumilion
Description: Will look for an Ent and avoid if found.
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?
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?
{.include SRL/SRL/Skill/woodcutting.scar}
jou need to include woodcutting
edit: lol![]()
Now it says:
Include file C:\Program Files\SCAR 3.12\includes\SRL\Skill\Woodcutting.scar does not exist.
Ugggg.....
SCAR Code:{.include SRL/SRL/Skill/woodcutting.scar}
call 2 times srl/srl. atm you have only srl/
read the whole script
i think its stand there![]()
got it to work! thanks!
There are currently 1 users browsing this thread. (0 members and 1 guests)