Yoko
http://forum.yoko.com.ua/

Проверочка
http://forum.yoko.com.ua/viewtopic.php?f=3&t=14678
Page 1 of 1

Author:  Egrace [ 2009-04-08 18:13:20 ]
Post subject:  Проверочка

If [меня скинули с коня] then
Code:
Sub Mount()
VAR DistChar
uo.set( 'finddistance', '1' )
start:
If [меня скинули с коня] then ##сюда смотреть
UO.findtype('0x00E2', '-1', '1')
wait(10)
if UO.findcount() > 0 then
DistChar = UO.GetDistance( 'finditem' )
 repeat
   wait(10)
 until DistChar <= 1
wait(10)
  UO.useobject('finditem')
endif
endif
goto start
end sub

Как заменить [меня скинули с коня]??

Author:  Destruction [ 2009-04-08 18:19:23 ]
Post subject: 

uo.objAtLayer("Horse")

Author:  Egrace [ 2009-04-08 19:04:06 ]
Post subject: 

мм... так скрипт получается на много проще
Кому интересно, вот что получилось:
Code:
Sub Mount()
uo.deletejournal()
uo.Print('КОНЯ ПОКАЖИ ')
uo.Exec('addobject Horse')
while uo.Targeting()
wait(100)
wend
repeat
 repeat
   wait(10)
 until uo.objAtLayer("Horse")
 if UO.getdistance('Horse') <= 1 then
  UO.useobject ('Horse')
 endif
until UO.gethp() == 0
endsub

Author:  Destruction [ 2009-04-08 20:04:56 ]
Post subject: 

UO.gethp() == 0

Не показатель смерти.

Показатель смерти - uo.dead()

Author:  Egrace [ 2009-04-11 23:36:21 ]
Post subject: 

Мне хватает UO.getHP == 0 :)

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/