Yoko

All sides of Injection
It is currently 2026-01-17 04:24:50

All times are UTC+02:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
 Post subject: clicking an npc
PostPosted: 2004-06-26 21:41:35 
Offline

Joined: 2004-05-10 07:35:04
Posts: 16
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"))


Top
   
 Post subject:
PostPosted: 2004-06-26 23:24:23 
Offline
Expert!

Joined: 2004-04-25 11:11:07
Posts: 359
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)

_________________
Без труда не выловишь и рыбку из пруда,
А без пруда не выловишь её и с трудом...


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 2 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited