Results 1 to 6 of 6

Thread: SRL includes

  1. #1
    Join Date
    Mar 2008
    Posts
    84
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default SRL includes

    ok i know this sounds stupid but what does the script in core and skill folders do?
    I found many useful functions in the scripts so can i just copy and paste them into my own script ?
    I've just started to learn to script T.T

  2. #2
    Join Date
    Feb 2009
    Posts
    1,447
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Put in:
    {.include srl/srl.scar}

    in your script.
    Then you just have to copy the name of the function into the script and edit it so it fits your script.

  3. #3
    Join Date
    Sep 2008
    Location
    Not here.
    Posts
    5,422
    Mentioned
    13 Post(s)
    Quoted
    242 Post(s)

    Default

    Quote Originally Posted by emuleuser12345 View Post
    ok i know this sounds stupid but what does the script in core and skill folders do?
    I found many useful functions in the scripts so can i just copy and paste them into my own script ?
    I've just started to learn to script T.T
    you could do that or, you just include them...examples:
    {.Include SRL/SRL/Reflection/Reflection.Scar}
    {.include Srl/Srl/Skill/Woodcutting.scar}
    {.include Srl/Srl/Misc/Trade.scar}

  4. #4
    Join Date
    Mar 2008
    Posts
    84
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    what can I do if I'd like to know that my script is working after I've finished part of it?
    Or I could only check it after I've finished the whole script?

  5. #5
    Join Date
    Feb 2006
    Posts
    3,044
    Mentioned
    4 Post(s)
    Quoted
    21 Post(s)

    Default

    Quote Originally Posted by emuleuser12345 View Post
    what can I do if I'd like to know that my script is working after I've finished part of it?
    Or I could only check it after I've finished the whole script?
    you can test it, when you add the FINISHED Prodecures / Functions in your main loop.

  6. #6
    Join Date
    Mar 2008
    Posts
    84
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I've wrote a script :

    Program smelter;
    {.include SRL/SRL.Scar}

    var x,y: integer;

    procedure banking;
    begin
    wait(500+random(150));
    openbankfast('akb');
    if(findcolortolerance(x,y,8355977,-166,-257,99,108,3))then
    begin
    mouse(x,y,3,3,false);
    Chooseoption('All');
    end;
    closebank;
    end;

    procedure walkingtofurnace;
    begin
    if (findsymbol(x,y,'kebab shop'))then
    begin mouse(x,y,0,0,true);
    writeln('walking to furnace...');
    wait(8000+random(1000));
    end;
    if (findsymbol(x,y,'furnace'))then
    begin mouse(x,y,0,0,true);
    wait(7000+random(1000));
    end;
    end;

    begin
    repeat SetupSRL;
    wait(3000);
    until(false);
    end.

    but it ended like this:
    file access error
    Successfully compiled (1744 ms)
    Successfully executed

    what is the reason??
    Last edited by zealkctro; 03-25-2009 at 09:03 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •