Results 1 to 7 of 7

Thread: I there a way i can write procedures into a

  1. #1
    Join Date
    Jan 2007
    Posts
    580
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default I there a way i can write procedures into a

    I there a way i can write procedures into a includes script so that way i dont need to rewrite a procedure into more then one script. Example. To run the procedure opentext; all i have to do is type
    SCAR Code:
    program New;
    begin
    opentext;
    end.
    An it will get the opentext proceduer from an includes script?
    I like cats.
    Narcle's AK Smelter 1.1.6
    Run Time : 7 Hr 53 Min 5 Sec
    Total Bars : 3371
    Total XP : 58995

  2. #2
    Join Date
    Dec 2006
    Location
    Third rock from the sun.
    Posts
    2,510
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Lol. Funny you should say that.

    I did that just today.

    Lemme bring it up...

    SCAR Code:
    {*******************************************************************************
    procedure LogMeOut;
    By: Jason2gs
    Description: Used as an RC to tell the active slave to logout.
    *******************************************************************************}


    procedure LogMeOut;
    begin
      wait(500+random(200));
     if(InChat('pullout'))then
      begin
       Logout;
      end;
    end;

    It's so I can tell my slave (bot) to "Pullout" (log out) either from a different computer, or from the computer I'm autoing on, without having to stop the script alltogether.

    All you have to do is place the procedure in a SCAR script in one of the SRL include files. Like mine is... SRL/SRL/core.scar

    There's no need to put it in the {...} style though, it's already in the SRL/SRL.scar include.

  3. #3
    Join Date
    Dec 2006
    Location
    Third rock from the sun.
    Posts
    2,510
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Btw. I've had this question up for HOURS, and it's not answered yet. Do you mind taking a look at it?

    http://www.villavu.com/forum/showthread.php?t=6164

    Thanks,

    Mike

  4. #4
    Join Date
    Jan 2007
    Posts
    580
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks
    I like cats.
    Narcle's AK Smelter 1.1.6
    Run Time : 7 Hr 53 Min 5 Sec
    Total Bars : 3371
    Total XP : 58995

  5. #5
    Join Date
    Dec 2006
    Location
    Third rock from the sun.
    Posts
    2,510
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    You still have to place:

    {.include SRL/SRL.scar}

    and

    SetupSRL;

    In your script, though.

    SetupSRL; at the begining of your main loop, and {...} right under "program New;"

  6. #6
    Join Date
    Jan 2007
    Posts
    580
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yeh it worked
    I like cats.
    Narcle's AK Smelter 1.1.6
    Run Time : 7 Hr 53 Min 5 Sec
    Total Bars : 3371
    Total XP : 58995

  7. #7
    Join Date
    Dec 2006
    Location
    Third rock from the sun.
    Posts
    2,510
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Gratz

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. someone can write procedures?
    By Laimonas171 in forum RS3 Outdated / Broken Scripts
    Replies: 2
    Last Post: 12-18-2008, 04:44 PM
  2. Replies: 8
    Last Post: 05-29-2008, 07:39 PM
  3. i need people to help me write.....
    By kelly slater pro surfer in forum OSR Help
    Replies: 2
    Last Post: 08-14-2007, 02:36 AM

Posting Permissions

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