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"))
clicking an npc
Moderators: Murderator+, Murderator
-
- Expert!
- Posts: 359
- Joined: 2004-04-25 11:11:07
- Contact:
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)
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)
Без труда не выловишь и рыбку из пруда,
А без пруда не выловишь её и с трудом...
А без пруда не выловишь её и с трудом...