clicking an npc

General Injection issues

Moderators: Murderator+, Murderator

Post Reply
nagger
Posts: 16
Joined: 2004-05-10 07:35:04

clicking an npc

Post 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"))
Lord Ruslan Nightmare
Expert!
Posts: 359
Joined: 2004-04-25 11:11:07
Contact:

Post 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)
Без труда не выловишь и рыбку из пруда,
А без пруда не выловишь её и с трудом...
Post Reply