SRL Archive - First Scripts

Skills Teak Power Chopepr


SkillsUnknown

2012-08-20 12:26:08

Over the past few days I've been working on the script sort of off and on. This script is more of my try at scripting and any help would be appreciated.

While running this script any special logs you get will screw with the progress report and you MUST keep your hatchet in your first inventory slot or the script will drop it. Also it supports the inferno adze but the hatchet also messes with the progress report.

Feel free to post proggies and thanks for any help you can give me :thumbsup:

NKN

2012-08-20 13:24:53


case random(5) of
0:MakeCompass(RandomRange(-25, -55));
1:MakeCompass(RandomRange(25, 55));
2:MakeCompass(RandomRange(-115, -155));
3:MakeCompass(RandomRange(115, 155));
4:MakeCompass(RandomRange(-205, -245));
5:MakeCompass(RandomRange(205, 245));
6:MakeCompass(RandomRange(-295, -335));
7:MakeCompass(RandomRange(295, 335));
Goes up to 5, you have 6 and 7 that won't ever be called.

repeat
Cutting;
AntiBan;
CompassFailsafe;
AddLogs;
Dropping;
Progress;
until (false)
Make it: Until(AllPlayerActive)

SkillsUnknown

2012-08-20 15:04:00

Thanks for the advice I'll fix it now :D

tehq

2012-08-20 15:15:46

From: NKN

case random(5) of
0:MakeCompass(RandomRange(-25, -55));
1:MakeCompass(RandomRange(25, 55));
2:MakeCompass(RandomRange(-115, -155));
3:MakeCompass(RandomRange(115, 155));
4:MakeCompass(RandomRange(-205, -245));
5:MakeCompass(RandomRange(205, 245));
6:MakeCompass(RandomRange(-295, -335));
7:MakeCompass(RandomRange(295, 335));
Goes up to 5, you have 6 and 7 that won't ever be called.


5 will never be called either.
program new;
begin
writeln(random(5));
end.

Great first script, Skills.

SkillsUnknown

2012-08-20 21:22:22

Also with the
case random(5) of
0:MakeCompass(RandomRange(-25, -55));
1:MakeCompass(RandomRange(25, 55));
2:MakeCompass(RandomRange(-115, -155));
3:MakeCompass(RandomRange(115, 155));
4:MakeCompass(RandomRange(-205, -245));
5:MakeCompass(RandomRange(205, 245));
6:MakeCompass(RandomRange(-295, -335));
7:MakeCompass(RandomRange(295, 335));

I thought it meant that there was a 1 in 5 chance of those 7 happening. Thanks for clearing it up for me :P

Peanuts

2012-08-21 01:19:47

From: SkillsUnknown
Also with the
case random(5) of
0:MakeCompass(RandomRange(-25, -55));
1:MakeCompass(RandomRange(25, 55));
2:MakeCompass(RandomRange(-115, -155));
3:MakeCompass(RandomRange(115, 155));
4:MakeCompass(RandomRange(-205, -245));
5:MakeCompass(RandomRange(205, 245));
6:MakeCompass(RandomRange(-295, -335));
7:MakeCompass(RandomRange(295, 335));

I thought it meant that there was a 1 in 5 chance of those 7 happening. Thanks for clearing it up for me :P


It rolls an invisible dice. Since you have (5) it rolls 0-4. (because 0 counts as 1..)

N the 'dice' lands on one of those numbers.. and then it'll just do that one number it landed on.

That's why its good for anti ban…
So every time you do anti ban.. a different thing happens..
looks very lifelike.


*Wonders what a 5 sided die would look like*

riwu

2012-08-21 03:11:53

Or you can just do MakeCompass(random). And it's usually put together with ur Antiban procedure. You should indent after statements like 'repeat', 'then' (if a begin isn't followed) too. Looks clean for a first script though :)