SRL Archive - Research & Development Lounge

Smart Blind Clicking


Cazax

2009-01-12 12:36:01

Note: This is not Blind clicking in SMART.

Blind clicking is not a safe way to walk, because the minimap rotates and that will mess up the click, so it isn't a good idea.
But i made a function that creates a blind point of the minimap, using degrees and radius, not X and Y like a normal blind click would do.

Function BlindPoint(D, R : Integer): TPoint;
Var
D2 : Integer;
Begin
D2 := D - Round(rs_GetCompassAngleDegrees);
Result.X := MMCX + Round(R * Cos(Radians(D2 - 90)));
Result.Y := MMCY + Round(R * Sin(Radians(D2 - 90)));
End;
D - Degrees: The degrees(0..360) of the blind point(the same as RW).

R - Radius: The distance from the center of the minimap to the blind point.

Example: If we want to click in the red box, here are the specifications:
Degrees: 180 (approx.)
Radius: 55 (approx.)

So, how our functions would look like?
Function WalkThere: Boolean;
Var
TP : TPoint;
Begin
TP := BlindPoint(180, 55);
Result := MFF(TP.X; TP.Y, RandomX, RandomY);
End;
Note: MFF means Mouse Find Flag (From FlagChat.scar).

Enjoy your blind-clicking :)

noidea

2009-01-12 12:46:12

Even with switching worlds and stuff, it would still click in the red box every time?

Cazax

2009-01-12 12:47:40

From: noidea
Even with switching worlds and stuff, it would still click in the red box every time?

Yes it would, thats the idea. It is like Tile walking, but without reflection.

Quickmarch

2009-01-12 12:59:09

hmm seems a very good idea :)

Boreas

2009-01-12 13:32:45

Minimap rotation will mess this up just the same, unless you offset the degrees by the angle that the minimap is off*. However getting that angle could prove difficult. If you are successful in that, you could also use regular X and Ys that are corrected by this angle.


*off from where it was when you decided what D and R to use.

Cazax

2009-01-12 13:36:40

From: Boreas
Minimap rotation will mess this up just the same, unless you offset the degrees by the angle that the minimap is off*. However getting that angle could prove difficult. If you are successful in that, you could also use regular X and Ys that are corrected by this angle.


*off from where it was when you decided what D and R to use.


I forgot to do the - rs_GetCompassAngleDegrees, fixed.

randy marsh

2009-01-12 14:13:06

what dos blind clicking/ what dos it do?