Yoko

All sides of Injection
It is currently 2025-12-31 22:20:23

All times are UTC+02:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 2005-01-10 09:19:35 
Offline

Joined: 2004-09-16 20:11:00
Posts: 12
Команда UO.GetHP( CharTarget ) не всегда получает правильное текущее здоровье заданного чара.
Нападаюший чар отслеживает здоровье аттакуемого чара. и останавливается если оно ниже какого то определного уровня.
потом отслеживается , что здоровье аттакуемого равно его максимальному значению , и на этом этапе неправильно определеятся уровень здоровья. Что посоветуете ?

UO.WarMode( 1 )
UO.Attack( CharTarget )
Uo.Print ('Attack')
repeat
wait(1000)
UO.Print( str( UO.GetHP( CharTarget ) ) )
CheckLag()
until UO.GetHP( CharTarget ) < 100
UO.WarMode( 0 )
repeat
wait(1500)
UO.Print( str( UO.GetHP( CharTarget ) ) )
until UO.GetHP( CharTarget ) == uo.GetMaxHP( CharTarget ) //вот тут затык происходит


Top
   
PostPosted: 2005-01-10 10:53:43 
Offline
Site Admin
User avatar

Joined: 2004-04-03 16:49:38
Posts: 1964
не забудь проверить что Track World включено
bil wrote:
until UO.GetHP( CharTarget ) < 100

на некоторых шардах два пакета обновления жизни могут иметь разную шкалу.

bil wrote:
until UO.GetHP( CharTarget ) == uo.GetMaxHP( CharTarget )

на некоторых шардах последние единицы жизни не появляются или появляются долго. всегда лучше давать допуск плюс-минус несколько хитов


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 9 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