SRL Archive - OSR Help

help with tpas again...


Sax

2012-11-18 13:04:40

So I have a TPA I got form a FindColorsSpiralTolerance and I want to find an NPC.

I though I could look for a box that has inside at least 30 TPoints of the TPA and then I would know that it find the NPC.

I seen the FindObjTPA but I already find the colors and I have it in my TPA so that would not do it?


Any help? :)

NKN

2012-11-18 13:12:00

You have to make your own TPA function.

Sax

2012-11-18 13:14:21

sounds good :) any hints?

Sax

2012-11-18 13:26:56

No need. I am trying to do it with TPAtoATPAEx. I think it works :D Thanks anyway :)

nokkasiili

2012-11-18 13:46:19

spiralstuff...

ATPA := TPAtoATPAEx(TPA,obj.Width,obj.Heigth)

for I:= 0 To High(ATPA) do
begin
if(obj.Min < High(ATPA[i])) then
begin
end;
end;

:spot:

Roflme

2012-11-18 13:55:10

Above or:

// FindColorSpiral
ATPA := TPAtoATPAEx(TPA, w, h);
SortATPAFrom(ATPA, Point);
For I := 0 to High(ATPA) do
begin
MiddleTPAEx(ATPA[i], x, y);
//Do more stuff here

If you need an in depth explanation to go into more detail about this, the above, or any TPA functions feel free to PM or post.