Results 1 to 9 of 9

Thread: Draynor...

  1. #1
    Join Date
    Jun 2007
    Posts
    532
    Mentioned
    1 Post(s)
    Quoted
    68 Post(s)

    Default Draynor...

    I think trying to find the stairs or doors in Draynor is impossible. Not really but I'm finding it difficult. Everything is so similar in color. I have gotten a the door color done very well, but does anyone have a good color for the stairs?



    Simba Code:
    Function FindStairs(var x, y: Integer): Boolean;
    Var
      CTS, I: Integer;
      StairTPA: TPointArray;
      ATPA: Array of TPointArray;
    Begin
    If(Not(LoggedIn))Then Exit;
    CTS := GetColorToleranceSpeed;
    ColorToleranceSpeed(2);
    SetColorSpeed2Modifiers(0.36, 1.43);
    FindColorsSpiralTolerance(MSCX, MSCY, StairTPA, 2964543, MSX1, MSY1, MSX2, MSY2, 3);
    ATPA := TPAToATPAEx(StairTPA, 10, 10);


      For I := 0 To High(ATPA) Do
      Begin
        MiddleTPAEx(ATPA[i], x, y);
        MMouse(x, y, 2, 2);
        If(IsUpTextMultiCustom(['imb', 'up'])) Then
        Begin
          Writeln('Found Stairs');
          GetMousePos(x, y);
          Result := True;
          Break;
        End;
      End;
    End;

    Is what I'm using to find the stairs. Its finds them sometimes, but it miss-clicks a lot.
    Finished B.S. Program in Radiology!!

    Projects: A big one! Total secret! hehe

  2. #2
    Join Date
    Jan 2009
    Location
    Turlock/LA, California
    Posts
    1,494
    Mentioned
    3 Post(s)
    Quoted
    66 Post(s)

    Default

    locate door on MM and move to that location. autocolor/ATPA the object using findcolorsspiraltolerance() from mscx, mscy. that would be your best bet

  3. #3
    Join Date
    Jun 2007
    Posts
    532
    Mentioned
    1 Post(s)
    Quoted
    68 Post(s)

    Default

    Quote Originally Posted by x[Warrior]x3500 View Post
    locate door on MM and move to that location. autocolor/ATPA the object using findcolorsspiraltolerance() from mscx, mscy. that would be your best bet

    I've already taken care of the door and using ACA isn't helping as everything is so similar in color. I've posted my function above using Findcolorsspiraltolerance and ATPA
    Finished B.S. Program in Radiology!!

    Projects: A big one! Total secret! hehe

  4. #4
    Join Date
    Jan 2009
    Location
    Turlock/LA, California
    Posts
    1,494
    Mentioned
    3 Post(s)
    Quoted
    66 Post(s)

    Default

    Quote Originally Posted by 14578 View Post
    I've already taken care of the door and using ACA isn't helping as everything is so similar in color. I've posted my function above using Findcolorsspiraltolerance and ATPA
    well a 10,10 in your tpa-atpa conversion is too small for a door or stairs probably. but if you selected your colors carefully in aca v3, then you will still get a lot of results, but more accurate ones. if you are standing right next to the object, and it doesnt find it, then try changing your size of the atpas or even do a new autocolor.

    edit: i just went out of my way, created my own autocolor, and this function works perfectly for me (its your function, just slightly modified):
    Simba Code:
    Function FindStairs(): Boolean;
    Var
      CTS, I: Integer;
      StairTPA: TPointArray;
      ATPA: Array of TPointArray;
      x,y:integer;
    Begin
    If(Not(LoggedIn))Then Exit;
    CTS := GetColorToleranceSpeed;
    ColorToleranceSpeed(2);
    SetColorSpeed2Modifiers(0.36, 1.43);
    FindColorsSpiralTolerance(MSCX, MSCY, StairTPA, autocolorfunc, MSX1, MSY1, MSX2, MSY2, 3);
    ATPA := TPAToATPAEx(StairTPA, 40, 40);


      For I := 0 To High(ATPA) Do
      Begin
        MiddleTPAEx(ATPA[i], x, y);
        MMouse(x, y, 2, 2);
        wait(200+random(100));
        If(IsUpTextMultiCustom(['imb', 'up'])) Then
        Begin
          Writeln('Found Stairs');
          GetMousePos(x, y);
          Result := True;
          Break;
        End;
      End;
    End;
    Last edited by x[Warrior]x3500; 04-29-2012 at 06:43 AM.

  5. #5
    Join Date
    Jun 2007
    Posts
    532
    Mentioned
    1 Post(s)
    Quoted
    68 Post(s)

    Default

    Well thank you very much! I didn't know there was aca v3. I'll have to check that out, but again thank you. Rep++
    Finished B.S. Program in Radiology!!

    Projects: A big one! Total secret! hehe

  6. #6
    Join Date
    Jan 2009
    Location
    Turlock/LA, California
    Posts
    1,494
    Mentioned
    3 Post(s)
    Quoted
    66 Post(s)

    Default

    Quote Originally Posted by 14578 View Post
    Well thank you very much! I didn't know there was aca v3. I'll have to check that out, but again thank you. Rep++
    use my modified version of aca v3 : http://villavu.com/forum/showthread....=2#post1001517

  7. #7
    Join Date
    Jun 2007
    Posts
    532
    Mentioned
    1 Post(s)
    Quoted
    68 Post(s)

    Default

    What is the difference if you don't mind me asking? I haven't used your version yet.
    Finished B.S. Program in Radiology!!

    Projects: A big one! Total secret! hehe

  8. #8
    Join Date
    Jan 2009
    Location
    Turlock/LA, California
    Posts
    1,494
    Mentioned
    3 Post(s)
    Quoted
    66 Post(s)

    Default

    difference between v2 and v3 -
    v2 - the most common, has a bug with the hue mod (iirc), has other bugs.
    v3 - the successor, still in development. fixes most bugs. more accurate autocolor values. added CIELab values.

    differences between v3 and my version of v3 -
    my version - well if you just looked at it, visually you will find many differences. i added an autocolor function generator, a color information page, and reformatted the client page. i have also fixed even more bugs found in v3. i also added the "add color" feature.

  9. #9
    Join Date
    Jun 2007
    Posts
    532
    Mentioned
    1 Post(s)
    Quoted
    68 Post(s)

    Default

    That sounds nice man, I would rep you but I've already done that and I have to rep other people before I can again haha, but I just opened it for a second wasn't able to really use it or look. I'm in Finals week and been busy with that. Thanks again tho.
    Finished B.S. Program in Radiology!!

    Projects: A big one! Total secret! hehe

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
  •