PDA

View Full Version : Can't click a npc



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

jstemper
06-17-2016, 06:08 PM
it clicks the tile it is on, so if the npc if always moving then it really won't be accurate unless you make it try again
also make sure you are on default zoom

Wesnoth
06-17-2016, 07:39 PM
it clicks the tile it is on, so if the npc if always moving then it really won't be accurate unless you make it try again
also make sure you are on default zoom

It was the zoom... feeling pretty stupid now lol, thanks very much man! For moving npcs I will use the instant click or speed up the mouse, but it's working now on Lowe.