Adblock breaks this site

find colo x,y,no#,0,0,100,200

Discussion in 'Archives' started by heretich4rl3y, May 6, 2007.

  1. heretich4rl3y

    heretich4rl3y Member
    Banned

    Joined:
    May 6, 2007
    Posts:
    80
    Referrals:
    0
    Sythe Gold:
    0
    find colo x,y,no#,0,0,100,200

    I need a guide to using the if(findcolor.....) command...im absolutely clueless.
    i even made an autoburyer using co ordinates lol..
     
  2. Town

    Town Grand Master
    Scar Programmers

    Joined:
    Jan 21, 2007
    Posts:
    3,776
    Referrals:
    3
    Sythe Gold:
    5
    find colo x,y,no#,0,0,100,200

    FindColor(x,y,TheColor,X1,Y1,X2,Y2): Boolean;

    When it finds the color in the box made with (X1,Y1) and (X2,Y2) then it will save the coordinates it found it in as x and y and will result true.

    The first 2 parameters will always be x and y or else some other variables. First, you have to figure out the color you are looking for. Lets say your color is 55555. Next, you have to figure out where you want Scar to look for the color. That will be in between the points (X1, Y1) and (X2, Y2). If Scar finds the color 55555 inbetween (X1, Y1) and (X2, Y2) then it will result true.

    Then, you can say

    Code:
    if FindColor(x, y, 55555, 255, 255, 355, 355) Then
    begin
    If it found the color then it will do the things after begin.

    There is also FindColorSpiral, which is about the same except it looks using a spiral. FindColorTolerance, which will look for the color using a tolerance, FindColorTolerance(x, y, Color, X1, Y1, X2, Y2, Tolerance). Or FindColorSpiralTolerance which looks for a color with a tolerance in a spiral, FindColorSpiralTolerance(x, y, Color, X1, Y1, X2, Y2, Tolerance).
     
  3. WhoCares357

    WhoCares357 Forum Addict

    Joined:
    Jan 21, 2007
    Posts:
    608
    Referrals:
    1
    Sythe Gold:
    0
    find colo x,y,no#,0,0,100,200

    I can't fricking post on these. Idk why... And now it posts... I had a whole explanation ready two hours ago. Thanks for doing it Town.
     
  4. heretich4rl3y

    heretich4rl3y Member
    Banned

    Joined:
    May 6, 2007
    Posts:
    80
    Referrals:
    0
    Sythe Gold:
    0
    find colo x,y,no#,0,0,100,200

    thnx anyone man
     
  5. heretich4rl3y

    heretich4rl3y Member
    Banned

    Joined:
    May 6, 2007
    Posts:
    80
    Referrals:
    0
    Sythe Gold:
    0
    find colo x,y,no#,0,0,100,200

    ok so how would i use it in an autominer?
     
< Mirc help! Doesn't work; No ones there? | $Selling Lvl 90.. Rune Pure!!!Rune Gloves $ >


 
 
Adblock breaks this site