Wesnoth
06-17-2016, 05:50 PM
program test;
{$DEFINE SMART}
{$i reflection/Reflection.simba}
procedure openShop;
var
Lowe: tReflectNpc;
point: tPoint;
begin
if Lowe.Find('Lowe') then
begin
Point := Lowe.GetMsPoint;
Reflect.Mouse.Move(Point, 2, 2);
Reflect.Mouse.Click(MOUSE_LEFT);
end;
end;
begin
Reflect.Setup;
openShop;
end.
It always clicks somewhere around the npc, but never clicks it. I tried with other npcs and the same stuff happened (managed to click once out of 20+ tries). Tried with a non moving npc and same results ffs
{$DEFINE SMART}
{$i reflection/Reflection.simba}
procedure openShop;
var
Lowe: tReflectNpc;
point: tPoint;
begin
if Lowe.Find('Lowe') then
begin
Point := Lowe.GetMsPoint;
Reflect.Mouse.Move(Point, 2, 2);
Reflect.Mouse.Click(MOUSE_LEFT);
end;
end;
begin
Reflect.Setup;
openShop;
end.
It always clicks somewhere around the npc, but never clicks it. I tried with other npcs and the same stuff happened (managed to click once out of 20+ tries). Tried with a non moving npc and same results ffs