Results 1 to 6 of 6

Thread: GetColor

  1. #1
    Join Date
    Jan 2009
    Posts
    53
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default GetColor

    Hey,

    If anyone is so kind could you please post a working example of a GetColor function.
    Cuz I cant get it to work.

    I want it to be like this:

    SCAR Code:
    Program New;

    Procedure ColorGet;
     Begin
      GetColor ( x, y );
     End;

    Procedure ColorFind;
     Begin
      ColorGet;
      if ( GetColor ( x, y ) = 17374 { Example } ) then
      begin
       //Do something
      end else
      begin
       //Do something else
      end;
     End;

    Begin
     ColorFind;
    End.

    Thanks,

    Fort Ash
    I was born to cheat on Hero

  2. #2
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    SCAR Code:
    If Not GetColor(0, 0) = 5676457 Then

    Getcolor needs to be defined by co-ordinates which you would use GetMousePos to do

  3. #3
    Join Date
    Jan 2009
    Posts
    53
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hey,

    Thanks for the quick reply.
    Can you please put it into a Script example.

    [Edit] And yes I know, x, y were just as an example of coordinates. [ Edit ]

    Fort Ash
    I was born to cheat on Hero

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

    Default

    Never put spaces between the params and the function.

    Use GetColor(), not GetColor ().

    SCAR Code:
    program New;

    procedure ColorFind;
    begin
      if GetColor(60, 60) = 17374 then
      begin
        // Do something
      end else
        begin
          // Do something else
        end;
    end;


    begin
      ColorFind;
    end.

  5. #5
    Join Date
    Jan 2009
    Posts
    53
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hey,

    Ok thx I'll try it out.

    Fort Ash
    I was born to cheat on Hero

  6. #6
    Join Date
    Jan 2009
    Posts
    53
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hey,

    Hehehe, pardon me.
    I asked you about a working script .
    Thanks anyways !

    Fort Ash
    I was born to cheat on Hero

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. GetColor problem
    By rogeruk in forum OSR Help
    Replies: 2
    Last Post: 02-24-2008, 10:35 PM
  2. Need some advice with getcolor command
    By Negaal in forum OSR Help
    Replies: 15
    Last Post: 07-13-2007, 05:41 PM

Posting Permissions

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