PDA

View Full Version : How to Use SRL succesfully and where to save it



Sdcit
02-17-2006, 12:26 AM
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
02-21-2006, 10:29 PM
is there any difference between SRL and SRl?

XxKanexX
02-22-2006, 04:55 AM
No.. He just didn't capitalize the last letter :p

maxzzz
03-09-2006, 04:02 PM
In what mini include can I find something like this: GetHp??

Jag024
03-10-2006, 12:32 AM
This will help a lot of people. I had some confusion when I first looked @ it. :)

SmarterChild
03-10-2006, 06:16 PM
I am still confused:p

BraK
03-12-2006, 02:09 AM
<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
03-12-2006, 02:25 AM
wrong, you have to hace

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

Monkmonk693
03-27-2006, 10:10 PM
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
03-28-2006, 02:05 AM
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
03-28-2006, 10:19 PM
Still doesn't work :mad: It says there's an error in the line where the {include SRL/SRL.scar} is.

Spky
03-28-2006, 10:34 PM
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
03-28-2006, 11:23 PM
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
03-29-2006, 02:37 AM
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
03-29-2006, 07:26 PM
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
03-29-2006, 07:31 PM
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,57 4,100,10)
MoveMouseSmooth(e,f)
ClickMouse(e,f,false)
wait(1000)
ChooseOption('Attack Lesser Demon')
wait(10000)
until(false)
end;
end.

phantombmx
03-29-2006, 09:38 PM
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,57 4,100,10)
Mouse(e,f,0,0,false)
wait(1000)
PopUp('Attack Lesser Demon')
wait(10000)
until(false)
end;
end.

Monkmonk693
03-30-2006, 01:07 AM
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
03-30-2006, 01:18 AM
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
03-30-2006, 02:36 AM
Thank you for your help....and good luck with your scripts!:D

Miitchyy
05-14-2006, 10:24 AM
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
05-14-2006, 10:25 AM
http://img134.imageshack.us/img134/4015/untitled5bp.jpg

Miitchyy
05-14-2006, 10:34 AM
i still dont get it i dont have that srl.scar thing and the other stuff

The Un-Named
05-14-2006, 10:38 AM
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
05-14-2006, 10:53 AM
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
05-14-2006, 11:38 AM
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
05-15-2006, 06:32 AM
Woot i got it working! but i went on another computer but i get what u said to do ty for ur help

newguy45
05-23-2006, 04:52 AM
lol not the intermost user frindlyness :rolleyes:

Tidus122005
06-25-2007, 01:20 AM
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
09-06-2007, 12:49 AM
i will be using this in the future

Derkel
09-06-2007, 12:54 AM
Kudos for you