gerauchert
2008-08-20 01:20:09
Im trying to make my script kill guards using reflection and it is having issues…
It will click the guard sometimes, but other times it will just click the main screen repeatedly where there are no guards in sight. Ive been using this in Falador by the main gate. Any thoughts?
It will click the guard sometimes, but other times it will just click the main screen repeatedly where there are no guards in sight. Ive been using this in Falador by the main gate. Any thoughts?
Function R_ClickGuard: Boolean;
var
Guard: TNPC;
begin
if(not(LoggedIn))then Exit;
FindNPC('Guard',Guard);
TileToMS(Guard.Tile,0);
Mouse(x,y,4,4,False);
if(ChooseOption('ttack'))then
begin
Result := True;
Exit;
end else
Result := False;
end;