Hello guys,
i am struggling with finding objects and NPC's with ID.
For example i want to click on a portal with this script sample:
Simba Code:
procedure findPortal;
var
portal: TReflectObject;
i: integer;
p: TPoint;
begin
i := 14892;
p := Point(257, 263);
Reflect.Mouse.Move(p, 5, 5);
Reflect.Mouse.Click(MOUSE_LEFT);
Sleep(2000);
if portal.Find(objGame,i,40) then
begin
Reflect.Mouse.Move(portal.GetMSPoint, 5, 5);
reflect.mouse.Click(MOUSE_LEFT);
sleep(2000);
end;
end;
It just seems to not really click directly onto the object but a few pixels away from it, sometimes it clicks on the portal by accident, but pretty rare. The same thing with finding NPC's with pretty mcuh the same script. Prett furstatrating since everything is working smooth right now. Help would be appreachiated