Results 1 to 8 of 8

Thread: SRL Includes...

  1. #1
    Join Date
    Nov 2006
    Posts
    120
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default SRL Includes...

    wow this really takes me back to noobie land. It's been awhile since i've scripted but i was wanting an autotyper....just something simple so i could sit and watch for people to trade with me without having to peck away at the keyboard. after reading through the SRL manual thing i came up with this.

    SCAR Code:
    program New;
    {.include SRL\SRL\core\Text.scar}

    procedure Talk;
    begin
    sendtext('Buying all coal 100ea');
    end;

    begin
    repeat
    talk;
    wait(2000);
    until(1=2)
    end.

    the error i get is : Line 112: [Error] (114:34): Unknown identifier 'UpChars' in script C:\Program Files\SCAR 2.03\includes\SRL\SRL\core\Text.scar

    So i'm assuming (without opening the include) that it needs an include to run... or i'm just not including the right files...or i'm retarded....

    Now i know this script is not up to standards but it took me no more than 2 minutes. I just want to get this to work soon. Any help would be appreciated. Or at least point me in the right direction.

    Thanks!

    Ransom

  2. #2
    Join Date
    Jun 2006
    Posts
    1,492
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Add SetupSRL at the beginning of your main loop.

  3. #3
    Join Date
    Nov 2006
    Posts
    120
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    still no luck

    SCAR Code:
    begin
    SetupSRL;
    repeat
    talk;
    wait(2000);
    until(1=2)
    end.

    Ransom

  4. #4
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    change the (l=2) to isfkeydown(12) , that will go until you press f12

  5. #5
    Join Date
    Jun 2006
    Posts
    1,492
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    instead of

    Code:
    {.include SRL\SRL\core\Text.scar}
    make it

    Code:
    {.include SRL\SRL.scar}
    along with setupSRL in the main loop.

    and btw, noobie land! that happened to me once lol

  6. #6
    Join Date
    Nov 2006
    Posts
    120
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hehe like i said i made it in a few mins and an infinte loop just sounded good =D

    I should just put IsKeyDown(Ctrl+Alt+S); lol.

    Anyway thanks a ton for your help all of you. I havn't worked with includes that much and i'm totally new to SRL so this is awesome to be learning new stuff.

    Thanks again!

    Ransom


    p.s. works now. =D

  7. #7
    Join Date
    Oct 2006
    Posts
    888
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Autotyper? Use ShortKeys Lite... It owns... But I don't know about detectability...

    http://www.shortkeys.com/lite.htm

  8. #8
    Join Date
    Nov 2006
    Posts
    120
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by solarwind View Post
    Autotyper? Use ShortKeys Lite... It owns... But I don't know about detectability...

    http://www.shortkeys.com/lite.htm
    lol i would use something like that....but for 2 mins of scripting and some learning along the way it's more worth the hard route to me.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Cut em includes!!!
    By Raskolnikov in forum Research & Development Lounge
    Replies: 11
    Last Post: 12-19-2007, 12:27 AM
  2. Includes
    By jonny3558 in forum OSR Help
    Replies: 14
    Last Post: 10-30-2007, 01:11 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
  •