SRL Archive - First Scripts

my1st basicscript


Scaper

2007-11-04 18:30:36


======================================================================================================
+~+ SCAR 3.12~DIVI,SRL4 +~+
======================================================================================================

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
{How to use: setup right below, that explains most of it please rember its my 1st script ever,
note that this Basicautocuter won't work most area surronded by lots of trees i prefer to chop willows that are bulked together
+~+~+~+~+~+~+~+~+~drops every 27 ore normaly! [WATCH TO LOADS]!!+~+~+~+~+~+~+~+~+
You can have Axe equipped/unequiped as it auto clicks jus have the right wcin lvl for the axe,don't wear any valuable items!!
follow guied lines click play and enjoy remember to post progs bugs and anything else related
I TAKE NO RESPONSIBILTY IF U GET BANNED USE AT YOUR OWN RISK NO ANTI/BAN/RANDOM AT PRESENT.
IF U WANT TO FLAME ME ON ANYTHING PLZ REMBER THIS IS MY 1ST SCRIPT AND OPEN TO SUGGESTIONS ALL WILL BE CREDITED WHEN IM COMFORTABLE ABOUT IT
I STRONGLY ADVISE TO AUTO PROBLY I MEEN WITH: CHAR CB LVL ABOVE 10 NOT DEFAULT CLOTHES:}


Program myfirsteverscript;

Const
startupwait = 9000;//how long before script starts after compiling
treecolor1 = 5933691;// set 3 tree colors ~CTRL+ALT+P
treecolor2 = 2192739;// set 3 tree colors ~CTRL+ALT+P
treecolor3 = 3768947;// set 3 tree colors ~CTRL+ALT+P =colorpicker for those of u who dont no.
choppinginterval = 9000;// time before chopping each log
drop = true; // do you wanna drop? if false set logs to chop to 28

logstochop = 27;//how many Logs to cut,//Watch the first 1or2 loads before changing this//

{.include SRL/SRL.scar}

Function FindFastRandoms: Boolean;// credits to Wt-Fakawi
var
i: Integer;
begin
for i:=0 to 9 do
begin
case I of
0: If FindTalk then
begin
FindNormalRandoms;
end;
1: If FindDead then
Result := True;
2: If FindMod then
Result := True;
3: If FindMime then
Result := True;
4: If FindMaze then
Result := True;
5: If FindQuiz then
Result := True;
6: If FindDemon then
Result := True;
7: begin
if NoGameTab then
begin
Result := True;

Logout;
Exit;
end;
end;
8: begin
if InBlack then
begin
Result := True;
Logout;
Exit;
end;
end;
9: RC;
end;
FindFight;
FindFightEx;
end;
end;

Procedure NoRandoms;
begin
FindTalk;
FindNormalRandoms;
FindFastRandoms;
SolvePinball;
if (FindFight = true) then
begin
RunAwayDirection('n');
wait(10000+Random(5000));
RunBack;
end;
end;

Procedure _1stbasicautocutter_;

var
i, x, y: integer;
Begin
cleardebug;
writeln('1st basic autocutter will begin soon,post comments bugs and ')
writeln('All comments on the site were u got this')
writeln('_1st basic autocutter_ has no futer updates as yet. Procced to site for futer updates')
writeln('thanx for tresting and posting proggies')

wait(startupwait+random(1000))
Repeat
NoRandoms;
i:= i + 1
if (drop = true) then
Dropall;
Cleardebug;
//======================================================== //
writeln('~+~You sucessfully chopped~+~= ' + inttostr(i))
writeln('~+~You sucessfully dropped~+~= ' + inttostr(i))
writeln('Hopefully this script has been working for ' + timerunning)
//==========================================================//


If (FindColor(x, y, treecolor1, 0, 0, 517, 337)) or
(FindColor(x, y, treecolor2, 0, 0, 517, 337)) and
(FindColor(x, y, treecolor3, 0, 0, 517, 337))then
mmouse(x,y,2,2)
mouse(x,y,1,1,true)
wait(choppinginterval+random(15000))
Until i = logstochop


Writeln('script has worked for ' + timerunning)
Writeln('logs chopped ' + inttostr(i))
Writeln('logs dropped ' +inttostr(i))
End;

Begin
setupsrl
_1stbasicautocutter_
End.

Sebo

2007-11-04 19:36:40

Um, it's ok, but I wouldn't use it :D, No anti-randoms/ban, and bassically no randomness! :O, well I'l cut you some slack on this since it's your first, just keep trying hard, and read those tutorials!

Zach1188

2007-11-04 20:18:07

I would recommend using FindColorSpiralTolerance to find a tree, otherwise it will always find trees in the top left of you screen and you'll wind up navigating away from where you need to be. With FindColorSpiralTolerance, you can make it start looking in the center of the screen first. If you need help let me know.

Shuttleu

2007-11-05 05:10:43

quite a nice script but my question is why do you need a random amount of time when you start the script

wait(startupwait+random(1000))

why not just

wait(startupwait)

although you could just take out the startupwait altogether so it gets straight on with the script :D
you should also put some anti randoms in as well
add this into the script

Function FindFastRandoms: Boolean;// credits to Wt-Fakawi
var
i: Integer;
begin
for i:=0 to 9 do
begin
case I of
0: If FindTalk then
begin
FindNormalRandoms;
end;
1: If FindDead then
Result := True;
2: If FindMod then
Result := True;
3: If FindMime then
Result := True;
4: If FindMaze then
Result := True;
5: If FindQuiz then
Result := True;
6: If FindDemon then
Result := True;
7: begin
if NoGameTab then
begin
Result := True;

Logout;
Exit;
end;
end;
8: begin
if InBlack then
begin
Result := True;
Logout;
Exit;
end;
end;
9: RC;
end;
FindFight;
FindFightEx;
end;
end;

Procedure NoRandoms;
begin
FindTalk;
FindNormalRandoms;
FindFastRandoms;
SolvePinball;
if (FindFight = true) then
begin
RunAwayDirection('n');
wait(10000+Random(5000));
RunBack;
end;
end;
so it should look something like this

{ ~~~~_my1stbasicscript_BY~~~~
~~~ _Scaper123_ ~~~
+~+~+~+~+~+~+~_1.0_+~+~+~+~+~+~+~+
+_________+~~~~~~~~~~~~~~~~~~~~+_________+
~ [email]Scaper_2007@msn.com[/email] ~
======================================================================================================
+~+ SCAR 3.12~DIVI,SRL4 +~+
======================================================================================================

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
How to use: setup right below, that explains most of it please rember its my 1st script ever,
note that this Basicautocuter won't work most area surronded by lots of trees i prefer to chop willows that are bulked together
+~+~+~+~+~+~+~+~+~drops every 27 ore normaly! [WATCH TO LOADS]!!+~+~+~+~+~+~+~+~+
You can have Axe equipped/unequiped as it auto clicks jus have the right wcin lvl for the axe,don't wear any valuable items!!
follow guied lines click play and enjoy remember to post progs bugs and anything else related
I TAKE NO RESPONSIBILTY IF U GET BANNED USE AT YOUR OWN RISK NO ANTI/BAN/RANDOM AT PRESENT.
IF U WANT TO FLAME ME ON ANYTHING PLZ REMBER THIS IS MY 1ST SCRIPT AND OPEN TO SUGGESTIONS ALL WILL BE CREDITED WHEN IM COMFORTABLE ABOUT IT
I STRONGLY ADVISE TO AUTO PROBLY I MEEN WITH: CHAR CB LVL ABOVE 10 NOT DEFAULT CLOTHES:}


Program myfirsteverscript;

Const
startupwait = 9000;//how long before script starts after compiling
treecolor1 = 5933691;// set 3 tree colors ~CTRL+ALT+P
treecolor2 = 2192739;// set 3 tree colors ~CTRL+ALT+P
treecolor3 = 3768947;// set 3 tree colors ~CTRL+ALT+P =colorpicker for those of u who dont no.
choppinginterval = 9000;// time before chopping each log
drop = true; // do you wanna drop? if false set logs to chop to 28

logstochop = 27;//how many Logs to cut,//Watch the first 1or2 loads before changing this//

{.include SRL/SRL.scar}

Function FindFastRandoms: Boolean;// credits to Wt-Fakawi
var
i: Integer;
begin
for i:=0 to 9 do
begin
case I of
0: If FindTalk then
begin
FindNormalRandoms;
end;
1: If FindDead then
Result := True;
2: If FindMod then
Result := True;
3: If FindMime then
Result := True;
4: If FindMaze then
Result := True;
5: If FindQuiz then
Result := True;
6: If FindDemon then
Result := True;
7: begin
if NoGameTab then
begin
Result := True;

Logout;
Exit;
end;
end;
8: begin
if InBlack then
begin
Result := True;
Logout;
Exit;
end;
end;
9: RC;
end;
FindFight;
FindFightEx;
end;
end;

Procedure NoRandoms;
begin
FindTalk;
FindNormalRandoms;
FindFastRandoms;
SolvePinball;
if (FindFight = true) then
begin
RunAwayDirection('n');
wait(10000+Random(5000));
RunBack;
end;
end;

Procedure _1stbasicautocutter_;

var
i, x, y: integer;
Begin
cleardebug;
writeln('1st basic autocutter will begin soon,post comments bugs and ')
writeln('All comments on the site were u got this')
writeln('_1st basic autocutter_ has no futer updates as yet. Procced to site for futer updates')
writeln('thanx for tresting and posting proggies')

wait(startupwait+random(1000))
Repeat
NoRandoms;
i:= i + 1
if (drop = true) then
Dropall;
Cleardebug;
//======================================================== //
writeln('~+~You sucessfully chopped~+~= ' + inttostr(i))
writeln('~+~You sucessfully dropped~+~= ' + inttostr(i))
writeln('Hopefully this script has been working for ' + timerunning)
//==========================================================//


If (FindColor(x, y, treecolor1, 0, 0, 517, 337)) or
(FindColor(x, y, treecolor2, 0, 0, 517, 337)) and
(FindColor(x, y, treecolor3, 0, 0, 517, 337))then
mmouse(x,y,2,2)
mouse(x,y,1,1,true)
wait(choppinginterval+random(15000))
Until i = logstochop


Writeln('script has worked for ' + timerunning)
Writeln('logs chopped ' + inttostr(i))
Writeln('logs dropped ' +inttostr(i))
End;

Begin
setupsrl
_1stbasicautocutter_
End.
kk hope this helps you:D

guirong13

2007-11-05 05:43:28

after you get anti ban and anti randoms ill try it out for you :) anyway its looking good and gl in future :)

Scaper

2007-11-05 08:13:47

ok thanx peeps u dont get anywere if u dont post ur scripts etc thanx for the pointers ;)

edit: i put the antinrandoms in

Shuttleu

2007-11-05 13:08:48

i see you have put the antirandoms in then
it makes me soooooo happy for someone to do one of my suggestions for once:D

Scaper

2007-11-05 19:33:55

From: shuttleu
i see you have put the antirandoms in then
it makes me soooooo happy for someone to do one of my suggestions for once:D


maybe coz ur so nice u wouldnt mind settin me an antiban up if u dont mind ill credit u for it in my script:(h):

Narcle

2007-11-05 22:15:31

FindFastRandoms can be replaced with FindNonInventoryRandoms in Rev #6. No need to use more lines up.

Also please use
 
for your script, instead of code.

Scaper

2007-11-06 10:02:32

ok thanx for the pointer ;)

Scaper

2007-11-06 12:44:21

will some1 plz right me an anti ban i have got a great deal done but at the moment i am busy so cant do i am hoping to update this script as im working a great deal on things

all will be credited

Metagen

2007-11-06 12:58:51

If you are doing a great deal at the moment, someone else writing it for you wont help anyone tbh. Currently theres tons of autowoodcutters atm. You should learn to build it yourself when you are less busy :)

Scaper

2007-11-06 13:35:06

From: metagen
If you are doing a great deal at the moment, someone else writing it for you wont help anyone tbh. Currently theres tons of autowoodcutters atm. You should learn to build it yourself when you are less busy :)


m8 im busy it gunna be a 3 in 1 script im jus very very busy learnin 1 or 2 more things and updatin i realy cud do with a lil help if not it's not a problem at all to do my self

Why2u

2007-11-07 09:16:28

It's ok, but I wouldn't use it alot.

Scaper

2007-11-07 11:28:47

i no it jus basic jus a lil somthing im on working on major things for it it is realy gunna be alot alot better check bk soon

welcome

2007-11-07 16:08:45

Great first script, looks like your having the same problems as me with the randoms I need to keep studying those tuts!

Scaper

2007-11-07 19:12:27

thanx for the feedback m8 thanx

Shuttleu

2007-11-08 16:00:09

so what sort of antiban where you thinkin about
a auto responder or what?

Scaper

2007-11-08 17:03:47

umm…what would u say would work best m8??..ill give credit were credit due ;)

what ever m8 if ur making im not complaining:D;)

Shuttleu

2007-11-10 12:23:31

how about a auto responder and a tab clicker that clicks on diff tabs then hovers over things in that tab

Scaper

2007-11-11 12:08:03

sure m8;)

im jus a lil busy with revision at the mo so if u can ull be a great help;)

i got a few things to add it'll be crdited my and your script if u want if u sort them things out

Shuttleu

2007-11-12 12:17:17

kk will get started on it straight away:D

Scaper

2007-11-12 12:59:45

ok thanx m8 ur great;)

Shuttleu

2007-11-14 19:10:03

np just been a littlebit busy at mo but should get started later today

soccnut

2007-11-14 20:10:51

Will disguising Scar as another program help?

I have seen a few scripts that use the disguise function

gummi

2007-11-14 21:14:50

is this the one where u can get band easily?

Smartzkid

2007-11-14 21:25:19

 If (FindColor(x, y, treecolor1, 0, 0, 517, 337)) or
(FindColor(x, y, treecolor2, 0, 0, 517, 337)) and
(FindColor(x, y, treecolor3, 0, 0, 517, 337))then
begin
mmouse(x,y,2,2)
mouse(x,y,1,1,true)
wait(choppinginterval+random(15000))
end;

Begins and ends. Very important. Without them, it will click even if it doesn't find the color.

 If (FindColor(x, y, treecolor1, 0, 0, 517, 337)) or
(FindColor(x, y, treecolor2, 0, 0, 517, 337)) and
(FindColor(x, y, treecolor3, 0, 0, 517, 337))then
begin
mmouse(x,y,2,2)
GetMousePos(x, y);
mouse(x,y,0,0,true)
wait(choppinginterval+random(15000))
end;

That way, you won't get the possible one pixel shift before clicking.

Shuttleu

2007-11-19 05:44:34

i been away on holiday so i havent worked on the antiban much scince then but i will post it later tonight about what i have