Page 1 of 1

clicking an npc

Posted: 2004-06-26 21:41:35
by nagger
Can someone help me with left clicking an npc?

i was trying something like this but it dont work.

UO.LClick(str(uo.getx("npc")),str(uo.gety("npc")))

UO.LClick(uo.getx("npc"),uo.gety("npc"))

Posted: 2004-06-26 23:24:23
by Lord Ruslan Nightmare
uo.click("Serial of NPC") - if you want to emulate "click" to see name.
If you want to really click NPC with mouse (for example, to call pop-up menu), then you need to project world coorditanes ( uo.getx(), uo.gety(), uo.getz() ) to screen (projection formula is experimental), and then uo.lclick() on them. BUT this will NOT give you 100% precision (why - you'll understand as soon, as you'll write project-function)