SRL Archive - SRL Archives

No tolerance on LinearWalk


Bobarkinator

2008-04-12 20:58:04

So just letting people know that their is no tolerance on LInearWalk, their is tolerance on LinearWalkEx but none on LinearWalk, and I'm sure people want it.

Edit: And now that I see it, their is no tolerance on RadialWalk either, you can't always autocolor so its good to have some tolerance.

Cazax

2008-04-12 21:33:45

Yes, no tolerance in RadialRoadWalk, RadialWalk and LinearWalk, only in LinearWalkEx and RadialWalkEx, so you have to autocolor.

Wizzup?

2008-04-13 05:01:31

{*******************************************************************************
function RadialWalkEx(var tpa: TPointArray; cx, cy, TheColor, tol: Integer; StartRadial, EndRadial: Integer; Radius: Integer): Boolean;
By: Nielsie95
Description: Finds TheColor from StartRadial to EndRadial for Radius Distance.
Valid Arguments:
tpa: Result points.
StartRadial/EndRadial: Any number between 0-720. 0=N,90=E,180=S,270=W.
Radius: Distance from the centre of minimap, i.e. how far away the mouse clicks. Use numbers 20-72
*******************************************************************************}

This function supports tolerance. It returns a TPointArray of all the points.
RadialWalk and RadialRoadWalk use this function. I suggest you do the same. :)
The reason we do not change RadialWalk's parameters is because nearly every script uses Radial Walk. Which was the hardest part when we were rewriting RadialWalk, providing backwards compatibility. :)

Santa_Clause

2008-04-13 08:58:11

From: Bobarkinator
So just letting people know that their is no tolerance on LInearWalk, their is tolerance on LinearWalkEx but none on LinearWalk, and I'm sure people want it.

Edit: And now that I see it, their is no tolerance on RadialWalk either, you can't always autocolor so its good to have some tolerance.


LinearWalkEx is LinearWalk with tolerance.
RadialWalkEx is RadialWalk with tolerance.

Wizzup?

2008-04-13 12:50:48

From: Santa_Clause
LinearWalkEx is LinearWalk with tolerance.
RadialWalkEx is RadialWalk with tolerance.


Not entirely true,
The ex variants return a TPointArray sorted the way RadialWalk/LinearWalk would find their points.
Array[0] = First point that RW/LW would find.

The non-ex variants also click, wait for flag etc. :)

Bobarkinator

2008-04-13 15:06:54

From: Wizzup?
{*******************************************************************************
function RadialWalkEx(var tpa: TPointArray; cx, cy, TheColor, tol: Integer; StartRadial, EndRadial: Integer; Radius: Integer): Boolean;
By: Nielsie95
Description: Finds TheColor from StartRadial to EndRadial for Radius Distance.
Valid Arguments:
tpa: Result points.
StartRadial/EndRadial: Any number between 0-720. 0=N,90=E,180=S,270=W.
Radius: Distance from the centre of minimap, i.e. how far away the mouse clicks. Use numbers 20-72
*******************************************************************************}

This function supports tolerance. It returns a TPointArray of all the points.
RadialWalk and RadialRoadWalk use this function. I suggest you do the same. :)
The reason we do not change RadialWalk's parameters is because nearly every script uses Radial Walk. Which was the hardest part when we were rewriting RadialWalk, providing backwards compatibility. :)


Ya I saw that when looking through. Just thought it would be easier just to put tol on RadialWalk