SRL Archive - Outdated Tutorials

How to Use SRL succesfully and where to save it


Sdcit

2006-02-16 19:26:32

Okay, theres some confusion:

1. First download SRL.

2. Open the includes folder

3. Create a new folder titled SRL

4. Put everything, SRl, Core, and Misc in that folder


5. Heres a map:

Includes>SRL Folder>ANOTHER SRL Folder and SRL.scar>misc,core,skill

I've noticed some mighty confusion. to include SRl for example, do


{.include SRL\SRL.scar}

not {.include SRL.scar}

then put


SetUpSRL;

in your main loop

Also, if you look carefully, in SRl.scar, when you load it, it loads everything in the core folder.
This means it will load


{.include srl\srl\core\Globals.scar}
{.include srl\srl\core\Users.scar}
{.include srl\srl\core\Math.scar}
{.include srl\srl\core\MouseFlag.scar}
{.include srl\srl\core\GameTab.scar}
{.include srl\srl\core\Text.scar}
{.include srl\srl\core\AutoTalk.scar}
{.include srl\srl\core\Color.scar}
{.include srl\srl\core\BitMap.scar}
{.include srl\srl\core\Symbol.scar}
{.include srl\srl\core\Inventory.scar}
{.include srl\srl\core\DTM.scar}
{.include srl\srl\core\Timing.scar}
{.include srl\srl\core\Login.scar}
{.include srl\srl\core\Object.scar}
{.include srl\srl\core\Bank.scar}
{.include srl\srl\core\MapWalk.scar}
{.include srl\srl\core\AntiRandoms.scar}
{.include srl\srl\core\AntiBan.scar}

by itself when you put {.include SRL/SRL.scar} and SetupSRL

You must include Everything yourself. That means you have to do something like

{.include SRl/SRl/kill/ining.scar}

to get the procedures/ functions in the mining. Many of the "mini includes" have there own setup procedures, but always have {.include SRL/SRL.scar} first and SetUpSRL in your mainloop. Please read the manual too for these other setup procedures

ilyaostr

2006-02-21 17:29:05

is there any difference between SRL and SRl?

XxKanexX

2006-02-21 23:55:57

No.. He just didn't capitalize the last letter :p

maxzzz

2006-03-09 11:02:36

In what mini include can I find something like this: GetHp??

Jag024

2006-03-09 19:32:52

This will help a lot of people. I had some confusion when I first looked @ it. :)

SmarterChild

2006-03-10 13:16:02

I am still confused:p

BraK

2006-03-11 21:09:49

<includes>
——————
srl.scar
<srl>
——————

<srl> /////holds core misc and skil folders that are also in this folder/////
<misc>
<skill>
<scripts>
<core>
<charsnpc>
srl.scar ///// same as in other folder/////



this is how i have it setup what is wrong????

Sdcit

2006-03-11 21:25:49

wrong, you have to hace

Includes>SRK (FOLDER)>SRl(FOLDER)>Core and misc and skill

Monkmonk693

2006-03-27 17:10:51

Line 4: [Error] (5:1): Unknown identifier 'Rar' in script C:\Program Files\SCAR 2.03\Scripts\magictrainer.scar

That message comes up when I run my script. After skipping all the fluff at the top this is what I have:

begin
{.include SRL\SRL.scar}
SetUpSRL;

I have the SRL in my includes folder, but it still doesn't work. Help please:eek:

XxKanexX

2006-03-27 21:05:28

From: Monkmonk693
Line 4: [Error] (5:1): Unknown identifier 'Rar' in script C:\Program Files\SCAR 2.03\Scripts\magictrainer.scar

That message comes up when I run my script. After skipping all the fluff at the top this is what I have:

begin
{.include SRL\SRL.scar}
SetUpSRL;

I have the SRL in my includes folder, but it still doesn't work. Help please:eek:


{.include SRL\SRL.scar}

begin
SetupSRL;
end.

Monkmonk693

2006-03-28 17:19:26

Still doesn't work :mad: It says there's an error in the line where the {include SRL/SRL.scar} is.

Spky

2006-03-28 17:34:31

From: Monkmonk693
Still doesn't work :mad: It says there's an error in the line where the {include SRL/SRL.scar} is.


Remember the dot, {.include SRL\SRL.scar} not {include SRL\SRL.scar}

Monkmonk693

2006-03-28 18:23:12

From: Spky
Remember the dot, {.include SRL\SRL.scar} not {include SRL\SRL.scar}



I have the dot I just forgot to put it in the post.


STILL DOESN'T WORK, THIS IS DRIVING ME INSANE!!!!!!:mad: :mad: :mad: :mad:

XxKanexX

2006-03-28 21:37:00

From: Monkmonk693
I have the dot I just forgot to put it in the post.


STILL DOESN'T WORK, THIS IS DRIVING ME INSANE!!!!!!:mad: :mad: :mad: :mad:

Calm down.

What error are you getting?


{.Include SRL/SRL.scar}

begin
SetupSRL;
end.

Try that, if it compiles and executes, it's working.

Monkmonk693

2006-03-29 14:26:13

lol i was just kidding about the insane thing…. And when I run what you said it says Error line 1(with the {.include SRL/SRL.scar}) 'begin' expected in script.

And if i do it like this:
begin
{.include SRL/SRL.scar}
SetUpSRL;
end;

It says:
Line 4: [Error] (5:1): Unknown identifier 'Rar' in script C:\Program Files\SCAR 2.03\Scripts\magictrainer.scar

Monkmonk693

2006-03-29 14:31:37

Here's my script so far, if anyone can tel me whats wrong that would be great.


program New;

{.include SRL/SRL.scar}
Var SpellColor,x,y,a,b,c,d,e,f,g,h,i,j:integer;
begin
SetUpSRL;
end;
begin
SpellColor:= 974//Please pick spell color–it's not automatic
a:= 682
b:= 417
c:= 839
d:= 635
g:= 714
h:= 638
MoveMouseSmooth(a,b)
ClickMouse(a,b,true)
wait(750)
MoveMouseSmooth(c,d)
ClickMouse(c,d,true)
wait(1000)
FindColor(x,y,SpellColor,680,447,858,603)
MoveMouseSmooth(x,y)
ClickMouse(x,y,true)
wait(2000)
MoveMouseSmooth(g,h)
ClickMouse(g,h,true)
wait(2000)
end;
begin
repeat
FindColoredAreaTolerance(e,f,330582,286,400,507,574,100,10)
MoveMouseSmooth(e,f)
ClickMouse(e,f,false)
wait(1000)
ChooseOption('Attack Lesser Demon')
wait(10000)
until(false)
end;
end.

phantombmx

2006-03-29 16:38:02

jeez monkmonk! lots of problems.. i fixed it up and added basic spacing standards..

considering you are using srl.. use Mouse(x,y,rx,ry:integer; left:boolean) where rx and ry are the random and left is what button to click (true for left, false for right)

i would recommend doing simpler things before you try doing things for RS as it might get you banned fairly easily

umm what else.. each begin has a matching end.. so if you see a begin just scroll straight down and you should see an end in the same letter column..

also try using procedures.. just re-read the scar manual a few times.. another thing is using random numbers for your wait.. so type
Wait(500+Random(50))
this will give you a wait time of 500-550..

heres the cleaned up code as well as i could

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

var
SpellColor,a,b,c,d,e,f,g,h:integer;

begin
SetUpSRL;
begin
SpellColor:= 974//Please pick spell color--it's not automatic
a:= 682
b:= 417
c:= 839
d:= 635
g:= 714
h:= 638
Mouse(a,b,0,0,true)
wait(750)
Mouse(c,d,0,0,true)
wait(1000)
FindColor(x,y,SpellColor,680,447,858,603)
Mouse(x,y,0,0,true)
wait(2000)
Mouse(g,h,0,0,true)
wait(2000)
end;
begin
repeat
FindColoredAreaTolerance(e,f,330582,286,400,507,574,100,10)
Mouse(e,f,0,0,false)
wait(1000)
PopUp('Attack Lesser Demon')
wait(10000)
until(false)
end;
end.

Monkmonk693

2006-03-29 20:07:13

1st of all i wasn't actually going to use the script lol….. i was just bored and I thought it would be a good thing to get into. And second, the SRL doesn't work and I wanted to know if i had included it wrong or whatever……O and thanks for the script lol :D :D

phantombmx

2006-03-29 20:18:58

i didnt figure you would use it.. but still.. i tried :D umm not really sure what was wrong but just make sure you got the SetupSRL; at the beginning of the main loop.. {.include SRL\SRL.scar} just after the program New; (or whatever your program might be called…) and then it should work

good luck ;)

Monkmonk693

2006-03-29 21:36:38

Thank you for your help….and good luck with your scripts!:D

Miitchyy

2006-05-14 06:24:03

I dont even know to get it workin when i download the SRL thingy its php and and u say stuff like .scar and core and stuff and im clueless plz help me, i bet its something easy and i look like an idiot lol

The Un-Named

2006-05-14 06:25:00

http://img134.imageshack.us/img134/4015/untitled5bp.jpg

Miitchyy

2006-05-14 06:34:07

i still dont get it i dont have that srl.scar thing and the other stuff

The Un-Named

2006-05-14 06:38:59

Go here: http://82.92.130.193/forums/attachment.php?attachmentid=389&d=1147536734

Once it's downloaded, move the whole .rar file(can't open? go to www.rarlabs.com) to your include folder, right click and click extract here. Your file structure must have the path that's in the picture I posted.

Miitchyy

2006-05-14 06:53:30

is it suppose to be a .rar file when i download it cause its a .php and it wont open in win-rar(yes i have it)

The Un-Named

2006-05-14 07:38:55

Open any file(like my computer), go to tools then folder options, go to view, scroll down until you see "Hide extentions for known file types", untick it, then click apply and ok. Then locate the .php file that is really .rar, rename it SRL2.rar then extract it.

Miitchyy

2006-05-15 02:32:20

Woot i got it working! but i went on another computer but i get what u said to do ty for ur help

newguy45

2006-05-23 00:52:07

lol not the intermost user frindlyness :rolleyes:

Tidus122005

2007-06-24 21:20:43

ok when u say 1.First download SRL. its not that freaking easy!!! i cant find an exact link to download it… if anyone can explain how to get to it or post the link i would greatly appreciate it

xFeaR

2007-09-05 20:49:59

i will be using this in the future

Derkel

2007-09-05 20:54:15

Kudos for you