SRL Archive - First Scripts

Cutz and Fletch


Reeces844

2007-10-18 00:06:07

Well this script is pretty good but i am testing it atm so it is not the greatest. All you need to do is have an axe wielded and a knife in the inventory. Press Run and fill out forms.

Walking is 100% So Far (Used AutoColor+RadialWalk)

Version 1.0 First Release
Version 1.1 Auto Color Fixes minor tweaks
Version 1.2 Chopping Fixed
Version 1.4 Made Auto color, Random Choice
Version 1.5 Made MultiPlayer, added Walking failsafes

yanix

2007-10-18 06:02:30

Hmm well this might be handy im gona try this at home omfg 1 post? holy crap if this works ur a bot :D

Reeces844

2007-10-19 17:49:26

Well I was hoping for more replies but i guess thats how it goes. I am still updating it.

Harry

2007-10-19 17:51:14

Where does it run? Looks nice :)

Reeces844

2007-10-20 22:37:13

Oh i forgot to put that lol, It runs in Draynor. But there is a cutting problem.:confused:.

TY and thanks for the compliment from you that is nice.

Reeces844

2007-10-21 16:01:35

Updated it… Fixed the chopping.

reece844

2007-10-24 00:43:38

Hey Reeces it looks really cool. I will test for you sometime soon.

ZaSz

2007-10-24 01:11:21

This looks good is it your first script?

Reeces844

2007-10-24 01:31:31

No not really but its my first working script. Hey also i tried to add save User and stuff but it dosn't work. But it compiles okay soo it just won't have save function.

Reeces844

2007-10-25 18:12:15

Update!!!!! I need testers Please

Pancakes

2007-10-25 19:02:51



Procedure checksB;
begin
If TreeT = 'Normal' then
Begin
Writeln('Out Of Order Try Again Later. Sorry.');
TerminateScript;
end else
If TreeT = 'Oak' then
Begin
Writeln('Out Of Order Try Again Later. Sorry.');
TerminateScript;
end;
end;
???


Procedure Choose;
var
i: Integer;
begin
for i := 1 to 2 do
begin
case I of
1: FindWaterColors;

2: FindRockColorz;
end;
end;
end;
You're making it more complicated than it needs to be…

procedure Choose;
begin
FindWaterColors;
FindRockColorz;
end;


procedure ChopTree;
begin
repeat
if not Loggedin then Exit;
begin
if not LoggedIn then Break;
FindEnt(x,y, True);
if FindObjCustom(x, y, [TreeT], [TColor1], 10) then
begin
Mouse(x-4, y, 0, 0, False);
if ChooseOption('hop') then
begin
FindTalk;
FindEnt(x,y, True);
Wait(1000+Random(500));
FindThoseRandoms;
antiz;
FindThoseRandoms;
Wait(1000 + Random(300));
end else
begin
if not FindObjCustom(x, y, [TreeT], [TColor2], 10) then
begin
WriteLn(' Cannot find' + Tree);
wait(2000+random(300));
Exit;
end;
end;
end;
end;
Until(True)
end;

Its good but I'll clean it up a little if thats cool with you :)

proceedure ChopTree;
var X, Y : Integer;
begin
//If we are not logged in then exit the procedure.
if (Not(LoggedIn)) then Exit;
//If we can't find the tree then exit the procedure.
if (Not(FindObjCustom(X, Y, [TreeT], [TColor1, TColor2], 10))) then Exit;
//Either just click on the tree, or right click and choose chop.
case Random(2) of
0: Mouse(X, Y, 3, 3, True);
1: begin
//Right click on the tree.
Mouse(X, Y, 3, 3, False);
//We have to put a wait in here, to make sure that the menu has time to pop up.
Wait(150 + Random(150));
//Now if we couldn't choose the option 'hop' (chop) then we exit the procedure.
if (Not(ChooseOption('hop'))) then Exit;
end;
end;
//Find Talking Randoms.
FindTalk;
//Find Ent at the tree.
FindEnt(X, Y, True);
//Call you randoms finding procedure.
FindThoseRandoms;
//Your antiban procedure.
antiz;
//Wait for the tree to be chopped down, there are better ways of doing this but this is simple for you :)
Wait(1500 + Random(1500));
end;

Well actually I rewrote the whole thing, thats just the way I would do it though. Maybe you could learn something from it, idk.

Overall a really nice first script, alot better than my first :) Keep working at it!

~Pancakes.

julian0

2007-10-25 19:05:36

it dosent works for me -.o

Addicted2life

2007-10-25 19:16:16

well it didnt rlly work
got the following errors after i ran it
Line 495: [Hint] (15391:5): Variable 'X' never used in script C:\DOCUME~1\OWNER~1.KZA\LOCALS~1\Temp\CutzNFletch1.4.scar
Line 495: [Hint] (15391:5): Variable 'Y' never used in script C:\DOCUME~1\OWNER~1.KZA\LOCALS~1\Temp\CutzNFletch1.4.scar
Line 6: [Hint] (14902:1): Variable 'WCLV' never used in script C:\DOCUME~1\OWNER~1.KZA\LOCALS~1\Temp\CutzNFletch1.4.scar
Out Of Order Try Again Later. Sorry.

Reeces844

2007-10-25 21:25:17

Im guessing you chose either oak or normal Sorry not working, and for the unused variables they have no affect on it.

UPDATE!!!!!! MultiPlayer and some walking failsafes.:f:

@Pankakes
I am not making it more complicated than it is. What it does inot is it randomly chooses whether to walk using the water or rock. Hehe i made the water color one so its probably a bit buggy.

Pancakes

2007-10-26 00:29:26

Yes it is more complicated than it needs to be.. that procedure isn't doing anything besides what I posted. You need to go like this:

procedure Choose;
begin
case (Random(2)) of
0: FindWaterColors;
1: FindRockColorz;
end;
end;

placebohearts

2007-10-29 07:29:29

Is this compatible with Rev6?