| Yoko http://forum.yoko.com.ua/ |
|
| clicking an npc http://forum.yoko.com.ua/viewtopic.php?f=1&t=687 |
Page 1 of 1 |
| Author: | nagger [ 2004-06-26 21:41:35 ] |
| Post subject: | clicking an npc |
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")) |
|
| Author: | Lord Ruslan Nightmare [ 2004-06-26 23:24:23 ] |
| Post subject: | |
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) |
|
| Page 1 of 1 | All times are UTC+02:00 |
| Powered by phpBB® Forum Software © phpBB Limited https://www.phpbb.com/ |
|