Yoko

All sides of Injection
It is currently 2024-03-28 20:32:45

All times are UTC+02:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: 2010-11-12 15:09:50 
Offline
User avatar

Joined: 2010-10-01 16:47:41
Posts: 75
FindType'ом я нашел вещь на земле, как мне узнать ее координаты?
Или вывести на экран ,info на нее?

_________________
Все мы славные ребята, простые русские парни, железные люди с деревянными головами...


Top
   
PostPosted: 2010-11-13 09:14:25 
Offline
User avatar

Joined: 2010-10-01 16:47:41
Posts: 75
uo.info('finditem')
Uo.Print(uo.info('finditem'))
опробованы и не работают...

_________________
Все мы славные ребята, простые русские парни, железные люди с деревянными головами...


Top
   
PostPosted: 2010-11-13 14:18:31 
Offline
User avatar

Joined: 2009-05-28 09:58:28
Posts: 2802
Location: Иваново
1) http://yoko.com.ua/help/
2) тебе нужны uo.textopen() и uo.textprint(text)
3) выглядеть будет примерно вот так:

Code:
sub main()
var type = 'тип предмета'
var x,y
   uo.FindType(type, -1, 'ground')
   if uo.FindCount() then
           x = uo.getX( 'finditem')
           y = uo.getY( 'finditem')
      uo.textopen()
           uo.textprint( 'X=' + str( x ) + ', Y=' + str( y ) )
    endif
endsub

_________________
Image
YokoInjection CodeSweeper
Ошибка "Unhandled exception in parser"
Стрелялка для олдов.


Top
   
PostPosted: 2010-11-13 14:20:08 
Offline
User avatar

Joined: 2009-05-28 09:58:28
Posts: 2802
Location: Иваново
чето не могу подредактировать свой пост

uo.textprint( 'Mon info: x ' + str( uo.getX( mon ) ) + ', y ' + str( uo.getY( mon ) ) + ', dst ' + str( uo.getDistance( mon ) ) + ', hp ' + str( uo.getHP( mon ) ) + ', mhp ' + str( uo.getMaxHP( mon ) ) )

_________________
Image
YokoInjection CodeSweeper
Ошибка "Unhandled exception in parser"
Стрелялка для олдов.


Top
   
PostPosted: 2010-11-13 18:20:08 
Offline
User avatar

Joined: 2010-10-01 16:47:41
Posts: 75
Вот спасибо. Я был близок... )))

_________________
Все мы славные ребята, простые русские парни, железные люди с деревянными головами...


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 6 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