Results 1 to 9 of 9

Thread: Autocolor

  1. #1
    Join Date
    Aug 2008
    Location
    !!LOL!!
    Posts
    247
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Autocolor

    i have been trying to make a perfect auto color function but keep failing,my problem is with the range, sometime the range is too big and sometimes its too small depending the colors of alkharid im trying to auto color the pink part ofthe bank on the MM PLZ Pplz plz help me im in desperate need of it

  2. #2
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I don't know how you're attempting to auto color, or how most people do now, but back when I SCAR scripted I would try any of these:

    -Static DTM with a good amount of tolerance.

    -Dynamic DTM with tolerance increases until color found then pick that color.

    -Make a bitmap then call AutoColorThis to get the color out of that bitmap.

    -FindColorsSpiralTolerance. then do if GetArrayLength(T) > 5 (5 of the colors found) then it's probably right. Something like that.

    -A simple FindColorTolerance could do the trick. if(FindColorTolerance(x,y,ColorEstimate..etc.))the n Color := GetColor(x,y);



    Hope I helped some. Good luck!

  3. #3
    Join Date
    Aug 2008
    Location
    !!LOL!!
    Posts
    247
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks ill try some of those

  4. #4
    Join Date
    Jul 2007
    Location
    Right now? Chair.
    Posts
    8,488
    Mentioned
    3 Post(s)
    Quoted
    12 Post(s)

    Default

    SRL / Scripting Tools / ACA 2 ;

    cts 2 is your best option

    ~RM

    I & I know Zion. It is in the spirit, body and mind of every one of us
    RMouse(obj: TMSIObject): boolean;

  5. #5
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Rasta Magician View Post
    SRL / Scripting Tools / ACA 2 ;

    cts 2 is your best option

    ~RM
    This generation is so spoiled. We had to do things the hard way back when I was a kid

  6. #6
    Join Date
    Feb 2007
    Location
    PA, USA
    Posts
    5,240
    Mentioned
    36 Post(s)
    Quoted
    496 Post(s)

    Default

    lol, now we can get something done in a day

  7. #7
    Join Date
    Jul 2007
    Location
    Ottawa, Canada
    Posts
    930
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I never used ACA... i usually just wrote extravagant color comparison functions
    ~ Metagen

  8. #8
    Join Date
    Aug 2008
    Location
    !!LOL!!
    Posts
    247
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks guys
    EDIT> I know how to make a cts function to search for items and click on ms but noit mm could some1 help me?
    Last edited by hackncrack1; 05-07-2009 at 10:40 PM.

  9. #9
    Join Date
    Apr 2009
    Location
    California!
    Posts
    280
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Tell me if this helps:


    You have to tell it the places to look:

    msx1, msy1, msx2, msy2, (This would look in the Main Screen for what you are looking for.)
    mmx1, mmy1, mmx2, mmy2, (This would look in the Mini Map for what you are looking for.)
    mix1, miy1, mix2, miy2, (This would look in the Main Inventory for what you are looking for.)

    Example:
    SCAR Code:
    FindColorTolerance(x, y, Your Color, mmx1, mmy1, mmx2, mmy2, 10);
    That would find the color in the MiniMap.
    10 is the tolerance, if you still have trouble finding the color then make the tolerance higher.

    After you have found the color you need to have it click on it. I think you know how to do that, But if not..
    SCAR Code:
    Mouse(x, y, 2, 2, True);
    2, 2 is the amount of random pixles it can move away from the color.
    If you want it to click on it exactly, make it (0, 0) but i would just make it (1, 1).

    For more info see Getting started to learn to script
    Hope this helps.


    Edit: This is probably not what you are looking for lol (i'm still a noob XD)
    Last edited by Mystic; 05-08-2009 at 07:34 AM.
    ~Penguin
    Semi-active
    http://i44.tinypic.com/33vk9aq.jpg
    SELL AUTOED GOODS AT MID-MAX! DON'T LET PRICES FALL AND GIVE US LESS PROFIT. (Put this in your sig)

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
  •