SRL Archive - OSR Help

Draynor...


Element17

2012-04-29 01:04:50

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?



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.

x[Warrior]x3500

2012-04-29 01:31:14

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

Element17

2012-04-29 01:46:25

From: x[Warrior]x3500
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

x[Warrior]x3500

2012-04-29 02:36:56

From: 14578
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):

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;

Element17

2012-04-29 12:09:12

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++

x[Warrior]x3500

2012-04-29 16:31:21

From: 14578
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.php?t=70704&page=2#post1001517

Element17

2012-04-29 20:51:45

What is the difference if you don't mind me asking? I haven't used your version yet.

x[Warrior]x3500

2012-04-29 20:57:12

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.

Element17

2012-04-30 01:23:08

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.