Results 1 to 14 of 14

Thread: Help,Unkown Declaration MSX1.

  1. #1
    Join Date
    Apr 2016
    Posts
    8
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default Help,Unkown Declaration MSX1.

    Hello,So i im new to scripting,and i was trying to script with DTM,i tried to fix error by checking the forums etc,but i didn't found the answer.
    can some one help me? im using the newest SRL-6.
    Here is the script,basic.

    program Dtm;
    {$i srl-6/srl.simba}

    var
    Cape, X, Y: Integer;

    begin
    SetupSRL-6;

    Cape := DTMFromString('mbQAAAHicY2VgYNBmZmDQAGIZIDYFYiMgrm JkYOgC4k4grgPiDiBmYGBkEFdQAdMIjAkYsWAwAAA2zgPn');

    if findDTM(X, Y, MSX1, MSY1, MSX2, MSY2) Then
    begin
    WriteLn('Yay we found it!');
    moveMouse(X, Y, 7, 7);
    if isUpText('runite') then
    Mouse(x, y, 0, 0, True);
    end;
    FreeDTM(Cape);
    end.

  2. #2
    Join Date
    Oct 2012
    Posts
    1,258
    Mentioned
    40 Post(s)
    Quoted
    588 Post(s)

    Default

    You haven't set it up as a variable.

    You're going to run into more problems than that however, I highly recommend checking out these 2 guides to get a solid amount of beginner scripting knowledge.
    https://villavu.com/forum/showthread.php?t=58935 ( just these portions http://i.imgur.com/BIZigdj.png )
    https://villavu.com/forum/showthread.php?t=107757

  3. #3
    Join Date
    Jun 2013
    Location
    Scranton
    Posts
    496
    Mentioned
    5 Post(s)
    Quoted
    220 Post(s)

    Default

    In the 07 includes it is a constant (stands for mainscreen x1). If you are getting an unknown declaration error then it isn't defined in the srl-6 include. You can just change those MS coords to the actual mainscreen coord values themselves. And like acow said, you will run a lot more problems. You aren't sending the right amount of parameters to your functions (findDTM, movemouse, mouse)

  4. #4
    Join Date
    Apr 2016
    Posts
    8
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by jstemper View Post
    In the 07 includes it is a constant (stands for mainscreen x1). If you are getting an unknown declaration error then it isn't defined in the srl-6 include. You can just change those MS coords to the actual mainscreen coord values themselves. And like acow said, you will run a lot more problems. You aren't sending the right amount of parameters to your functions (findDTM, movemouse, mouse)
    So how it should be? i have read 1 topic acow linked,and the other one half,i have tried editing the script but i still get the error,or unkown declaration.
    Also i want to ask.
    i have scripted one basic script,and i selected the client(rsps) i hit run and it closes the client(the rsps,not simba). no errors or something like that,only compilied sucesfully that's it.. what's the problem could be?

  5. #5
    Join Date
    Dec 2011
    Posts
    193
    Mentioned
    5 Post(s)
    Quoted
    51 Post(s)

    Default

    Quote Originally Posted by eimas999 View Post
    SetupSRL-6;
    Heh, never thought this would compile. You've taught me something. From 1 minute of testing only doesn't throw an error in some scenarios.

    Anyway, you should only have setupSRL; That's if you're scripting for RS3. For OSRS there's a different setup and required files (you probably saw the use of MSX1 in an OSRS script). I just took a look at SRL6, you might want to look at the properties of "mainScreen", type that followed by a period "." and you'll see them.

    -

    Quote Originally Posted by eimas999 View Post
    So how it should be? i have read 1 topic acow linked,and the other one half,i have tried editing the script but i still get the error,or unkown declaration.
    Also i want to ask.
    i have scripted one basic script,and i selected the client(rsps) i hit run and it closes the client(the rsps,not simba). no errors or something like that,only compilied sucesfully that's it.. what's the problem could be?
    If this is a RSPS that's closer to OSRS (lets be honest ofc it is) then you'll most likely want to use AeroLib (Not SRL-6). The closer the client is to OSRS client the more features will work out the box. As for your closing issue, sounds like you're manually changing over to the client and the script also tries to do this. Paste whatever code you're using.

    OSRS Color Scripts: Borland_Salamanders | Borland_Iron_Ores
    Utilities & Snippets: [Color] OSBuddy Item Looting

  6. #6
    Join Date
    Apr 2016
    Posts
    8
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    If this is a RSPS that's closer to OSRS (lets be honest ofc it is) then you'll most likely want to use AeroLib (Not SRL-6). The closer the client is to OSRS client the more features will work out the box. As for your closing issue, sounds like you're manually changing over to the client and the script also tries to do this. Paste whatever code you're using.
    ehh please dont judge im new to scripting
    program ChopTree;
    {$i SRL-6/srl.simba}
    Procedure ClickTree;
    var
    X, Y: Integer;
    begin
    if FindColorTolerance(X, Y, 593937, 988, 266, 977, 245, 5) then
    mouse(X, Y, 1, 1)
    end
    begin
    MouseSpeed := 15;
    SetupSRL-6;
    End
    Last edited by eimas999; 02-25-2017 at 08:52 PM.

  7. #7
    Join Date
    Dec 2011
    Posts
    193
    Mentioned
    5 Post(s)
    Quoted
    51 Post(s)

    Default

    Post a screenshot of the server. This line near the top {$i SRL-6/srl.simba} loads a library setup for RS3 scripting.

    Also in future any RSPS help threads should go here: https://villavu.com/forum/forumdisplay.php?f=684

    Also also, help people be able to help you. Layout your posts better, include more spacing and paragraphs. Look at what tags are available such as the [SIMBA] tags. Include helpful information right away such as it's a private server, which server it is, how it looks etc...

    Simba Code:
    program ChopTree;
    {$i SRL-6/srl.simba}

    Procedure ClickTree;
    var
      X, Y: Integer;
    begin
      if FindColorTolerance(X, Y, 593937, 988, 266, 977, 245, 5) then
        mouse(X, Y, 1, 1); //semi colon
    end; //semi colon

    begin
      SetupSRL;
      MouseSpeed := 15;  //call this after setupSRL as that may assign it a value, which will overwrite yours.

      //okay this is the part of the file that the computer takes instructions from
      //everything above this section is just setting up for this part, here is where you bring it together.
      //so we need to call the ChopTree procedure you made above

      ChopTree;

      //that'll execute it once.
    end. //full stop

    Read the tutorials posted again and practice more. You're missing basic syntax, once you have the basics down you can go forward.

    OSRS Color Scripts: Borland_Salamanders | Borland_Iron_Ores
    Utilities & Snippets: [Color] OSBuddy Item Looting

  8. #8
    Join Date
    Apr 2016
    Posts
    8
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by Borland View Post
    Post a screenshot of the server. This line near the top {$i SRL-6/srl.simba} loads a library setup for RS3 scripting.

    Also in future any RSPS help threads should go here:

    Also also, help people be able to help you. Layout your posts better, include more spacing and paragraphs. Look at what tags are available such as the [SIMBA] tags. Include helpful information right away such as it's a private server, which server it is, how it looks etc...

    Simba Code:
    program ChopTree;
    {$i SRL-6/srl.simba}

    Procedure ClickTree;
    var
      X, Y: Integer;
    begin
      if FindColorTolerance(X, Y, 593937, 988, 266, 977, 245, 5) then
        mouse(X, Y, 1, 1); //semi colon
    end; //semi colon

    begin
      SetupSRL;
      MouseSpeed := 15;  //call this after setupSRL as that may assign it a value, which will overwrite yours.

      //okay this is the part of the file that the computer takes instructions from
      //everything above this section is just setting up for this part, here is where you bring it together.
      //so we need to call the ChopTree procedure you made above

      ChopTree;

      //that'll execute it once.
    end. //full stop

    Read the tutorials posted again and practice more. You're missing basic syntax, once you have the basics down you can go forward.
    so "{$i SRL-6/srl.simba}" runs the rs3 scripting so how do i make it would run osrs scripting?

  9. #9
    Join Date
    Dec 2011
    Posts
    193
    Mentioned
    5 Post(s)
    Quoted
    51 Post(s)

    Default

    Check OSRS scripts. Learn from them.

    OSRS Color Scripts: Borland_Salamanders | Borland_Iron_Ores
    Utilities & Snippets: [Color] OSBuddy Item Looting

  10. #10
    Join Date
    Apr 2016
    Posts
    8
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by Borland View Post
    Check OSRS scripts. Learn from them.
    i know that im annoying eh,but for rsps scripting you would recommend srl-6 or aerolib?
    Last edited by eimas999; 02-25-2017 at 09:23 PM.

  11. #11
    Join Date
    Dec 2011
    Posts
    193
    Mentioned
    5 Post(s)
    Quoted
    51 Post(s)

    Default

    Quote Originally Posted by eimas999 View Post
    i know that im annoying eh
    No, but the best help I can give you is the ability to let you help yourself. You're in a small group of people scripting for RSPS, so you need to be able to find your own answers as there aren't many people to ask. I don't use private servers at all, you still haven't posted a pic of what it looks like, or even a name I can google to see, so in this situation I should be asking you as you're better equipped to answer that question.

    You know SRL-6 is RS3. You know AeroLib is OSRS. Now you need to decide what suits your situation more. There might even be an include laying around for the server you're using, I don't roam the RSPS sections so I'm not sure what's available.

    OSRS Color Scripts: Borland_Salamanders | Borland_Iron_Ores
    Utilities & Snippets: [Color] OSBuddy Item Looting

  12. #12
    Join Date
    Apr 2016
    Posts
    8
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Aerolib is such a bullshit,there are like max 3-4 guides on forum about aerolib scripting,and they aren't in-depth...

  13. #13
    Join Date
    Jan 2013
    Posts
    86
    Mentioned
    0 Post(s)
    Quoted
    25 Post(s)

    Default

    Quote Originally Posted by eimas999 View Post
    Aerolib is such a bullshit,there are like max 3-4 guides on forum about aerolib scripting,and they aren't in-depth...

    https://villavu.com/forum/showthread.php?t=117106

    Really helpful guide right there for ya.

  14. #14
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    If I'm not mistaken, I believe the majority of AeroLib's documentation exists in the form of code comments and hasn't truly been replicated anywhere on the forum yet! Try opening one of the .simba files and poking around near the function you'd like to use. You'll probably find something helpful.
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Badâ„¢ before everyone gets laser pistols

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
  •