Yoko

All sides of Injection
It is currently 2025-12-17 21:33:08

All times are UTC+02:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Проверочка
PostPosted: 2009-04-08 18:13:20 
Offline
User avatar

Joined: 2009-03-23 18:05:30
Posts: 29
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

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

_________________
Image


Top
   
 Post subject:
PostPosted: 2009-04-08 18:19:23 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
uo.objAtLayer("Horse")

_________________
YokoInjection CodeSweeper
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Skype: d119060


Top
   
 Post subject:
PostPosted: 2009-04-08 19:04:06 
Offline
User avatar

Joined: 2009-03-23 18:05:30
Posts: 29
мм... так скрипт получается на много проще
Кому интересно, вот что получилось:
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

_________________
Image


Top
   
 Post subject:
PostPosted: 2009-04-08 20:04:56 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
UO.gethp() == 0

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

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

_________________
YokoInjection CodeSweeper
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Skype: d119060


Top
   
 Post subject:
PostPosted: 2009-04-11 23:36:21 
Offline
User avatar

Joined: 2009-03-23 18:05:30
Posts: 29
Мне хватает UO.getHP == 0 :)

_________________
Image


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 5 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:  
Powered by phpBB® Forum Software © phpBB Limited