This is just a short Tut on how to use the Case/Of commands. First of all here is an example of what a Case/Of command is.....
SCAR Code:
procedure ProcedureNameHere;
begin
begin
DefineAge := Random (6)
Case DefineAge of
0 : thing2
1 : thing2
2 : thing3
3 : thing4
4 : thing5
5 : thing6
end;
end;
The Case/Of command is useful when you want SCAR to do one(or two or whatever number) of things from a list you have provided. For this Tut we will only be covering doing one random thing. We will be making a anti - ban procedrue.
Step 1 : Open the Anti Ban file in the SRL include (there are many examples of Case/Of commands in this include)
Step 2: Make a list of anti ban procedures you want for your anti ban procedure (ex. LeaveScreenEvery, or HoverSkill)
Step 3: Oncle you have chosen your procedures/functions you can start making your own anti ban function (you should have 10+ well banlenced functions in your script)
Step 4: Open SCAR to begin wrinting your function (include SRL)
Step 5: Writing the proedure
NOTE: In scar the numbers start at 0 so if you have 6 procedures it'll go 0,1,2,3,4,5
SCAR Code:
procedure //ProcedureNameHere;
var
random : integer;//define variables here (thanks for the heads up LaBo! =P)
begin
case random() of //put number of procedures fom the include you'll be using in between()
0: //Antiban thing one
1://Antiban thing two
2://Antiban thing three ect.
end;
AND YOUR DONE!!! CONGRATZ! YOU CAN USE Case/Of COMMANDS!!!
heres a example by LaBo!
SCAR Code:
procedure ProcedureNameHere;
var
DefineAge: integer;
begin
ClearDebug;
DefineAge := Random (6)
Case DefineAge of
0 : writeln('Case number 0(zero).');
1 : writeln('Case number 1(one).');
2 : writeln('Case number 2(two).');
3 : writeln('Case number 3(three).');
4 : writeln('Case number 4(four).');
5 : writeln('Case number 5(five).');
end;
end;
Need any more help just read my Siggy h):
If i need to add more just post it or PM me and i'll add to it....I kinda rushed this