SRL Archive - RS3 Outdated / Broken Scripts

Auto Array maker!!!!! v1


Bramble

2007-01-28 01:15:17

for turning your list of information into arrays,i have successfully used this on a 4800 long array :-)

instructions for use
1.make sure your cursor is on the line above where ur first piece of the array starts
2.setup the name of ur array in array maker, and list how many pieces of data u are turning into array, ex:= in mine there was 14 total pieces of data

program autoarraymaker;
{.include srl/srl.scar}
var howmanyinarray,number:integer;ArrayName:string;
begin
setupsrl;
activateclient;
wait(5000);
HowManyInArray:=14;//this is total amount, not array number max;
ArrayName:='Color'; // before the open bracket in ur array
repeat
keydown(40);
keyup(40);
keydown(36);
keyup(36);
sendkeys(ArrayName+'['+inttostr(number)+']:=');
keydown(35);
keyup(35);
sendkeys(';');
number:=number+1;
wait(3);
until (number=howmanyinarray)
end.

ex:=
program new;

procedure setup;
begin ///put ur cursor on this line
5789791
5855584
5921377
5987170
6052963
6118756
6184549
6250343
6316136
6381929
6447722
6513515
6579308
6645101
end;

turns that into this

program new;

procedure setup;
begin ///put ur cursor on this line
Color[0]:=5789791;
Color[1]:=5855584;
Color[2]:=5921377;
Color[3]:=5987170;
Color[4]:=6052963;
Color[5]:=6118756;
Color[6]:=6184549;
Color[7]:=6250343;
Color[8]:=6316136;
Color[9]:=6381929;
Color[10]:=6447722;
Color[11]:=6513515;
Color[12]:=6579308;
Color[13]:=6645101;
end;

nooby noobster

2007-03-05 19:23:21

lol, this might sound really noobish, but what is an array?

IEatJ00erBaybees

2007-03-05 20:21:04

An array is used while SCAR scripting. You can use it to set up more than one player while Runescape macroing. And this is a very odd idea, but very helpful as well!

Gosh, macros could be used for everything! That's what I believe makes them so exciting, because they can do virtually anything you want, and you can be extremely creative with them, as you are in this. :)

nooby noobster

2007-03-05 20:30:56

ieatjooer, ty. Yeah i see how that could be helpful. My friend is a pretty big macroer, and he told me he did that. He just didnt use the name array. Thanks.:)

SonOfSheep

2007-03-06 16:25:40

I have a question. Why include srl? So you can put it in the srl scripts section? lol you dont use a single srl function other than setupsrl. So what's the point of putting it in there and causing a second of lag during compile time?

Boreas

2007-03-06 22:54:38

From: SonOfSheep
I have a question. Why include srl? So you can put it in the srl scripts section? lol you dont use a single srl function other than setupsrl. So what's the point of putting it in there and causing a second of lag during compile time?


I dunno bout bramble, but my SCAR is set so that it automatically has

program New;
{.include SRL/SRL.scar}

begin
SetupSRL;
end.
at startup. And it lags for less than half a second for me :p

rkroxpunk

2007-04-02 10:42:34

From: Boreas
I dunno bout bramble, but my SCAR is set so that it automatically has

program New;
{.include SRL/SRL.scar}

begin
SetupSRL;
end.
at startup. And it lags for less than half a second for me :p


wuh? how did you set it up to do that?

Boreas

2007-04-02 12:41:51

See my FAQ for link to tut by freddy