SRL Archive - OSR Help

How can I ignore my own character


VastlySuperior

2012-08-27 12:25:07

Hi

I know this was posted a while back, but try as I may to find that post again I just can`t. I`m looking for a way in which I can Ignore my own character while searching for an object.

I`m searching for tin ore and seeing as the pickaxe I`m using has the same color as the tin ore I get a lot of searching on my own character. How can I exclude the search from around my own character just wide enough to ignore myself?

Thanks for the replies.

Benny

2012-08-27 12:31:33

Are you not able to change the pickaxe? that would be the easiest?

E: if using ACA why not use different tolerances and stuff

Kasi

2012-08-27 12:33:09

if not PointinBox(Point) then
begin
//do stuff, check for uptext move mouse etc.
end;

Le Jingle

2012-08-27 12:34:29


//...
var
TPA, PlayerBox: TPointArray;
begin
PlayerBox := TPAFromBox(IntToBox(240, 130, 275, 185));
ClearTPAFromTPAWrap(TPA, PlayerBox, {var}TPA);
//...
That functionality should take the TPA you found, clear the TPA around your character and spit out the original TPA w/o the Player Box TPA. ({var} TPA is what you end up with) Hope this helps

VastlySuperior

2012-08-28 13:35:27

Thanks for all the Input, I have used what Le Jingle have suggested and it works fine.

speedster

2012-10-29 07:32:02

Yep ClearTPAfromWrap is a nice function :D just have been made aware of it.