Ok, so I have been using a script that needs to find a NPC who is stationary at all times. Normally I just search for his head color and that works fine, but lately some people have been placing a Clan Vexillum over the NPC to intentionally mess scripts up so I decided I needed to figure out a way to get past this. This what I have come up with and it seems to work well, but I was wondering if there is a better or more accurate way to do it. Thanks!
Simba Code:
Function FindHidden(x, y: Integer): Boolean;
Var
I: Integer;
TPA: TPointArray;
ATPA: Array of TPointArray;
InvPoint: TPoint;
Begin
TPA := GetMMDotsOnMS('npc')
ATPA := TPAToATPAEx(TPA, 15, 15);
MiddleTPAEx(ATPA[i], x, y);
InvPoint := MMToMSEx(0, -20, Point(x,y));
Begin
MMouse(InvPoint.x, InvPoint.y, 0, 0);
If(WaitUpTextMulti(['Clan','Vex','illum'],700)) Then Result:= True;
End;
End;
Edit - Basically, I am saying this is my first time using GetMMDotsOnMs and MMToMSEx so I don't know if this is the best way to use them or if there are better options. Thanks!