SRL Archive - Test corner

FindSpinningWheel by n3ss3s


n3ss3s

2007-10-18 07:59:41

And the coding spree continues -

this time we find the spinning wheel (63 ms)


Function FindSpinningWheel(Var SpX, SpY: Integer): Boolean;
Var
TPA, S: TPointArray;
Var
I, CTS, T: Integer;
Var
TP: TPoint;
Begin
CTS := GetColorToleranceSpeed;
ColorToleranceSpeed(2);
T := GetSystemTime;
FindColorsSpiralTolerance(MSCX, MSCY, TPA, 1138058, MSX1, MSY1, MSX2, MSY2, 10);
For I := 0 To GetArrayLength(TPA) - 1 Do
Begin
TP := TPA[i];
FindColorsTolerance(S, 1138058, TP.x - 15, TP.y - 15, TP.x + 15, TP.y + 15, 15);
If(GetArrayLength(S) >= 30)Then
Begin
MiddleTPAEx(S, SpX, SpY);
Result := True;
Break;
End;
End;
Writeln(IntToStr(GetSystemTime - T));
ColorToleranceSpeed(CTS);
End;

You may use if you credit me.

EDIT: Next one is FindFire…

King of Knives

2007-10-18 08:22:24

Dear Christ, how active are you?!

You have time to spam every forum, and script weird stuff in your craze! :P Make a script instead :D

-Knives

ZephyrsFury

2007-10-18 08:30:17

Lol they're all the same, just different colours and total number of points… ;) This guy's hoping for a scripter's cup or something.

n3ss3s

2007-10-18 08:35:14

Nono, I cant stop, I need to make a general finder! thats the only way!

to be called "n3ss3s's syndroma" in cheating history

Phew, made a general finder for monsters, that can be used for everything else too - phew.

Tooo… much… sugar…

I hope this hyperactivity goes off after I sleep one night..

rofl my hands even shake

finally breath is starting to stable..

ZephyrsFury

2007-10-18 08:38:08

… scary.. Too much birthday cake… besides a hairdresser isn't a monster…

n3ss3s

2007-10-18 08:40:42

Depends of the view.

Umm lets see, replaced coke with water, (after drank one bottle pommac and half coke xD), havent ate cookies for couple minutes, stopped killing After Eights, starts to look brighter :p

Bad side is… That there is still 1/4 bdaycake in the fridge :eek:

King of Knives

2007-10-18 08:50:40

No Don't!!!!

nielsie95

2007-10-18 09:11:50

N3ss3s: Please make one thread of all your FindObj's cause they all use the same template..

Are you sure you don't need uptext checking? :)

n3ss3s

2007-10-18 09:20:03

Yes, wipe that smile off ya face :D :D :D jks, but that template just works pretty perfect.

Im making a general object finder, so it'll hopefully be the last object finding post for a while, people can go get the FindLesserDemon, spinning wheel etc if they want some specific…

Ill go out for while, perhaps if the extra energy would get outta me..