Results 1 to 8 of 8

Thread: Just got started, need some help!

  1. #1
    Join Date
    Aug 2007
    Posts
    19
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Just got started, need some help!

    I've just gotten into scripting, and I need a little help with the SRL procedure MMouse...

    My script looks like this:

    program MMouseTest;

    procedure MMouse;
    begin
    MMouse(352,1009,10,10);
    end;

    begin
    MMouse
    end.


    My debug box says:

    Line 5: [Error] (5:23): Invalid number of parameters in script


    I'm not sure what the numbers after the coordinates are, but it says they must be integers, so I just filled them in with 10's, maybe this is the problem?

    Any help is appreciated, thanks in prehand

  2. #2
    Join Date
    Apr 2007
    Location
    UK
    Posts
    2,295
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Dont call your procedure the same as the MMouse procedure..

    {************************************************* ******************************
    procedure MMouse(x, y, rx, ry: integer);
    By: Benland100
    Description: Moves the mouse.
    ************************************************** *****************************}
    SCAR Code:
    procedure test;
    begin
      MMouse(350,500,2,2);
    end;

    Rogeruk's Al-Kharid Tanner V1.1 [Released]
    Rogeruk's Barbarian Crafter [Coming Soon]
    Rogeruk's Guild Fisher [Coming Soon]
    !! - Taking Requests - !!

  3. #3
    Join Date
    Aug 2007
    Posts
    19
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ok, now I've changed some stuff: The name of the script, the procedure, and the MMouse procedure all now have different names, and I've changed the 10's to 2's.

    My script now looks like this:

    program MMouseTest;

    procedure MMouseTestProcedure;
    begin
    MMouse(352,1009,2,2);
    end;

    begin
    MMouse
    end.


    And I get this error in the debug box:

    Line 5: [Error] (5:1): Unknown identifier 'MMouse' in script


    As always, any help is appreciated

  4. #4
    Join Date
    Apr 2007
    Location
    UK
    Posts
    2,295
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Sorry, thought you had more than that.

    SCAR Code:
    program MMouseTest;
    {.include SRL\SRL.scar}

    procedure MMouseTestProcedure;
    begin
      MMouse(352,1009,2,2);
    end;

    begin
      SetupSRL;
      MMouseTestProcedure;
    end.

    Try that.

    Rogeruk's Al-Kharid Tanner V1.1 [Released]
    Rogeruk's Barbarian Crafter [Coming Soon]
    Rogeruk's Guild Fisher [Coming Soon]
    !! - Taking Requests - !!

  5. #5
    Join Date
    Aug 2007
    Posts
    19
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks, it worked now, would you mind explaining me what you did, and what the two numbers after the coordinates means?

  6. #6
    Join Date
    Dec 2006
    Location
    Sweden
    Posts
    10,812
    Mentioned
    3 Post(s)
    Quoted
    16 Post(s)

    Default

    The 2 numbers are random offset. So you don't be banned for clicking in same spot over and over.


    Send SMS messages using Simba
    Please do not send me a PM asking for help; I will not be able to help you! Post in a relevant thread or make your own! And always remember to search first!

  7. #7
    Join Date
    Apr 2007
    Location
    UK
    Posts
    2,295
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You require to include SRL.scar to use SRL functions/procedure.
    You need to call SetupSRL if you are using SRL.

    SCAR Code:
    MMouse(55,194,3,5);
    Moves mouse to X of 55, and Y of 194. With a random X of 3 and Y of 5.
    So it will move to either X 55 to X 58.

    Understand?

    Rogeruk's Al-Kharid Tanner V1.1 [Released]
    Rogeruk's Barbarian Crafter [Coming Soon]
    Rogeruk's Guild Fisher [Coming Soon]
    !! - Taking Requests - !!

  8. #8
    Join Date
    Aug 2007
    Posts
    19
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yes, I understand all now, thank you very much

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. A Little help getting started
    By Novanext in forum OSR Help
    Replies: 4
    Last Post: 09-26-2008, 12:08 AM
  2. just started
    By aznsensation in forum Who Are You ? Who ? Who ?
    Replies: 1
    Last Post: 07-05-2008, 05:38 PM
  3. Please Help Me Getting Started.
    By XxtOmxX in forum OSR Help
    Replies: 14
    Last Post: 06-02-2007, 06:34 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
  •