Results 1 to 9 of 9

Thread: Question about SCAR/pascal

  1. #1
    Join Date
    Feb 2008
    Posts
    517
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default Question about SCAR/pascal

    Hey, I started scripting a year ago but never got very far, as I returned to scrip for other programs, but my interest has returned to SCAR, and I was wondering if there was anything such as structs or classes that would make the programing easier and more object oriented rather than the classic procedural approach.

  2. #2
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Records are as close as you are going to get to OOP. It's not even true OOP.

  3. #3
    Join Date
    Feb 2008
    Posts
    517
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Also, could anyone point me toward some good tutorials that aren't for complete newbs but give you all of the functions that can be used.

    Things such as like max x/y values on the screen when SCAR targets a runescape client, would need this to get relative positions of specific things using math, instead of image finding which is a lengthy and inefficient process.

  4. #4
    Join Date
    Dec 2008
    Posts
    2,813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    What, what're you trying to do, Feroc1ty?

  5. #5
    Join Date
    Feb 2008
    Posts
    517
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    I'm going to create a personal autoer, which I might donate to the community, as of now at least, if I remain interested in scar I might create a pre-processor for it in c++ (which I'm learning at the same time) that would give it more of an OOP approach.

    Currently I need to do the basics, I need to get max x/y values of the window, than I need a function which gets a color integer from specific coordinates, so I can see if there is any pattern in runescapes random color offset, which if i found a pattern i would eliminate the need to use color picker before the start of the script.

  6. #6
    Join Date
    Dec 2008
    Posts
    2,813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Just select RS as the target window.. I think that's what you're getting at.. if you select RS as the target window, the coords will be the same on any computer..

    I'm still really confused on what you're trying to do. Haha

  7. #7
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    from what i could see, you want the width, and hieght of the client? also, if you want to get a color of a specific point w/o the color picker, i think theres a function in srl/ scar that can do that, like
    SCAR Code:
    var C : integer;
    begin
      C:= getcolor(xcord, ycord);
    writeln(inttostr(C));
    end;
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  8. #8
    Join Date
    Feb 2008
    Posts
    517
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by akwardsaw View Post
    from what i could see, you want the width, and hieght of the client? also, if you want to get a color of a specific point w/o the color picker, i think theres a function in srl/ scar that can do that, like
    SCAR Code:
    var C : integer;
    begin
      C:= getcolor(xcord, ycord);
    writeln(inttostr(C));
    end;
    Yes, I want the width and height of the client.

  9. #9
    Join Date
    Dec 2008
    Posts
    2,813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    procedure GetClientDimensions(var Width, Height: Integer);
    Get client width and height.

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
  •