SRL Archive - First Scripts

Auto Wood Cutter


Hasslarn

2007-09-23 13:51:52

Hi im on my Fourth Project
it's took time for all to work
but whit the_rs_monkey guide it worked! Thnx alot for u guide
Here is the code its as hes but this is just a BETA i will fix some new stuffs in v.1

Coming in Version 1
- Anti Ban
- Auto Responder
- Find Randoms
- Invrandoms

If i need to add something just pm me and i will try!

Here is the code
{.Script Info:
# ScriptName = TreeChopper
# Author = Hasslarn
# Description = A AutoChopper
# Version = BETA
# Date = 22/9 16;34
# Comments = Thanx to The_Rs_monkey guide!
/Script Info}
program New;
{.include SRL/SRL.scar}

const
LoadsPerPlayer = 10; //Amounts of loads per player before switching.
TreeColor = 0; //Fill in the treecolor here.
WaitPerTree = 5000; //the time to wait while we are chopping the tree in Miliseconds.
procedure DeclarePlayers;
begin
SetupPlayers;

Players[0].Name := 'Player Name';
Players[0].Pass := 'Player password';
Players[0].Nick := '3-5 words of the name';
Players[0].Active := True;


Players[0].Name := 'Player Name';
Players[0].Pass := 'Player password';
Players[0].Nick := '3-5 words of the name';
Players[0].Active := True;


Players[0].Name := 'Player Name';
Players[0].Pass := 'Player password';
Players[0].Nick := '3-5 words of the name';
Players[0].Active := True;

LoadPlayerArray;
end;

procedure ChopTree;
var
x, y, MyMark : integer;
begin
if not Loggedin then Exit;
MarkTime(MyMark);
repeat
if FindObj(x, y, 'hop', TreeColor, 30) then
begin
Mouse(x, y, 0, 0, False);
if ChooseOption('hop') then
begin
//increase 1 to the total tree chop - if we had one
Wait(WaitPerTree);
Exit; //We clicked chop, now we can exit this procedure.
end;
end;
if TimeFromMark(MyMark) > (2 * 60 * 100) then
begin
Logout;
Exit;
end;
until false
end;

begin
SetupSRL;
DeclarePlayers;
if LoggedIn then Logout;
LoginPlayer;
repeat
ChopTree;
if InvFull then
begin
DropToPosition(2, 28);
Inc(Players[CurrentPlayer].Banked);
if Players[CurrentPlayer].Banked mod LoadsPerPlayer = 0 then
begin
NextPlayer(True);
end;
end;
if not Loggedin then NextPlayer(False);
until false
end.


or just download it….

Scottjc16

2007-09-23 14:39:22

question, is it normal tree chopper?? what does it cut?

Hasslarn

2007-09-23 16:43:05

evry tree

TreeColor = 0;       //Fill in the treecolor here.

just get the treecolor

mal1t1a

2007-09-23 19:21:28

Hmmmm, i'll test this script out and edit my post when done

kottonmouth

2007-09-23 19:55:07

nice script needs a little work on the randoms tho

digital.demise

2007-09-23 22:06:58

I found it a good script. oblivious to randoms though.

bmbm873

2007-09-23 23:21:07

i am having trouble with line 31

And then i will just complitle delete it and it will say that the word END; is messed up

wiilweer

2007-09-24 01:17:56

ill try this script, looks like a good one

Hasslarn

2007-09-24 03:42:24

From: bmbm873
i am having trouble with line 31

And then i will just complitle delete it and it will say that the word END; is messed up


Check at this Tut for errors
http://www.villavu.com/forum/showthread.php?t=6413?t=7421
made by jud

it will help you its easy 2

bmbm873

2007-09-24 16:27:59

Thank you very much Hasslarn see im just a little new to all this LOL

HyperSecret

2007-09-24 17:51:03

you should have some isuptext somewhere so that it only cuts certain trees, so players dont get stuck clicking on a tree where they cant cut…

pain_train

2007-09-24 20:40:30

when getting attacked for whatever reason from a random, does it run away?

Hasslarn

2007-09-25 09:55:47

pain im my comp is fucked up right now but i think it will run away

ratchet jr2

2007-09-25 20:10:50

nevermind i fixed it, very nice

mchl_faust

2007-09-27 20:55:54

what if i wanna just use 1 player how do i do that

repz

2007-09-28 05:16:29

i am really new to all of this shit.
i mean. what to put in player for it to work.
or whats your settings? ;)

pain_train

2007-09-28 16:10:01

2 questions…where does it cut and i read thru the script but didnt see anything about banking.

dropper

2007-09-28 16:21:24

i cant open it !! how can i just open it from my desktop?using what program?

12345678

2007-09-28 17:08:40

ncie script XD

Packo

2007-09-30 02:02:01

i allways got these problem when i try to start an script:
Include file C:\Program Files\SCAR 3.12\includes\SRL\SRL.scar does not exist.
Failed when compiling

whats that mean? that i need download somthing that i havent? ;/

Star_Player

2007-10-02 07:33:42

can sum1 tell me how to sue scar or sum thing -.- i opened the script then pressed play da lil green arrow and nothin happened do i gotta do sum thin firsT?

Scotland

2007-10-02 11:27:10

Nice script. I do think you should update it, to work with randoms.

LOL?

2007-10-02 11:46:12

Packo, have you downloaded srl 4.0?

~ LOL? ~

Packo

2007-10-02 13:05:50

ofcs i have, :/

Packo

2007-10-02 13:07:02

aw, ops that problem was befor i downloaded an SCRL, srry guy's.

my problem fixed. :)

persianG

2007-10-06 04:31:22

does the scripts banks the logs?? and how do he knows what you want to cut??

Naum

2007-10-06 05:11:19

Use isuptext.Good script but needs serious attention.

->{Nauman}<-

flip_up

2007-10-07 23:23:03

i got it working…but read post under..sorry didnt see edit button be4

nerdy

2007-10-08 09:48:38

I'll need to try this, looks so good:)

dzidek01

2007-10-08 12:42:44

nice job

flip_up

2007-10-08 19:53:37

gg script…what if i just use one player? can u post a script for that?

pysco56

2007-11-03 14:03:35

does this script bank?

iunseeni

2007-11-03 15:11:53

From: dropper
i cant open it !! how can i just open it from my desktop?using what program?


http://www.freddy1990.com/scar.php

Is the download site to download SCAR which you need to open and run SCAR. I would advise you to look through some guides about SCAR and SRL to get to know about them.

papa_roach_0

2007-11-07 16:27:17

trust me i get it all the time…im new to this scripting as well…Ive been with computers along time but for some reason have always trailed HTML instead…Hasslarn im gonna give your script a shot…looks good.

yurmomsmom9

2007-12-31 18:21:48

didnt work for me,
came up with this error message

Line 18: [Error] (16008:1): Unknown identifier 'SetupPlayers' in script C:\Documents and Settings\Owner\Desktop\Woodcutter By HAsslarn.scar

anyone else get this problem??

Firebrand

2007-12-31 22:35:20

Are You Guys Spamming To get up your post counts ??

If so your pretty pitiful, there are many good guides on compiling and running scar/SRL. Also theres this wonderful thing called the "SEARCH" button some of you Leechers's would do good to learn how to use it :D

STOP LEECHING AND LEARN TO SCRIPT !!!

Josh28

2008-01-02 21:06:07

its not working im gonna try another one