SRL Archive - OSR Help

TPA walking


CephaXz

2012-05-12 23:55:34

I found that sps is not always accurate. I started using radialwalk, which is pretty much accurate for me. It's been about one month since I started learning, so I guess its time to move on.

//I heard TPA is a better walking method, but I didn't find any tutorials of tpa walking nor finding any scripts that use it. So my guess is that TPA walking is also using radialwalking, but using CTS2 to find the colors? I'd be glad if someone would guide me on this, or link me to a script that uses it so I can learn from the script.
EDIT: New question. Is there any method to use color found using CTS2 with hue and sat mod and use it in radialwalk?

Thank you.

DeiJaiVui

2012-05-12 23:56:53


CephaXz

2012-05-12 23:59:24

From: DeiJaiVui


Congrats on finding one. And stop posting that image everywhere.

Valithor

2012-05-13 00:14:13

From: CephaXz
I heard TPA is a better walking method… I'd be glad if someone would guide me on this, or link me to a script that uses it so I can learn from the script.

Thank you.


Hey CephaXz, I'm not exactly sure if this is what you are getting at, but I thought I would share this straight from the include.

From: SRL Include
TPAWalk
~~~~~~~

.. code-block:: pascal

function TPAWalk(color, tol, offsetX, offsetY: integer; sortFrom: TPoint): boolean;

Uses a simple TPA sorting method to walk to a spot on the minimap.
* color: the color to be found on the minimap
* tol: the tolerance on color
* offsetX: the offset to click on the X coordinate of the found color
* offsetY: the offset to click on the Y coordinate of the found color
* sortFrom: the point on the minimap to sort found colors from


An example code that they show in the include looks like this…
  if (not TPAWalk(1234567, 10, 0, 0, point(MMX1, MMY1)) then
if (not radialWalkTolerance({parameters here}) then
writeln('failed to TPA and radial walk');


Maybe try looking at THIS THREAD for further ideas on how it's used.
I really don't know any more theory besides what I just shared with you. Sorry. I hope it helps though. :)

CephaXz

2012-05-13 00:22:02

Thanks! Didn't know there's already a function like that. I'll try reading through it.

Gucci

2012-05-13 00:25:49

From: DeiJaiVui


If you have something helpful to post then post, don't spam other peoples threads.

CephaXz

2012-05-13 00:28:02

I tried looking at the function, it doesn't use radius and things that radialwalk uses. I think I'll change my question here.

Is there any method to use color found using CTS2 with hue and sat mod and use it in radialwalk?

punkd

2012-05-13 02:12:25

add me on skype yeshayem2

CephaXz

2012-05-13 03:03:54

Thanks to punkd! Problem was solved, still using sps!

punkd

2012-05-13 03:05:51

No problem! Enjoy!
Resolved.