Page 1 of 1
gethp
Posted: 2005-06-09 15:07:41
by virussino
hi
UO.Print( str( UO.GetHP( "0x0002BA90" ) ) ) ; my horse
if it is full hp or dead....return 0
else it works
I must understand if it is dead or alive I can?
Posted: 2005-06-09 15:46:42
by flake
Code: Select all
If UO.GetHP( "0x0002BA90" ) == 0 Then
UO.Print( 'Horse is dead! God bless her soul!' )
EndIf
Re: gethp
Posted: 2005-06-09 16:51:14
by Solaire
virussino wrote:hi

UO.Print( str( UO.GetHP( "0x0002BA90" ) ) ) ; my horse
if it is full hp or dead....return 0

else it works
I must understand if it is dead or alive I can?
На каком шарде? А то на некоторых (дрв, например), GetHP() возвращает только собственные хиты.
Posted: 2005-06-09 19:03:59
by virussino
flake wrote:Code: Select all
If UO.GetHP( "0x0002BA90" ) == 0 Then
UO.Print( 'Horse is dead! God bless her soul!' )
EndIf
it does not go well, why the horse has ALL HP return always 0
shard is uodreams (italy) .. RunUO

Posted: 2005-06-10 13:55:39
by virussino
pls help
how I can understand if alive or dead?
ps: sorry for eng

Re: gethp
Posted: 2005-06-10 13:58:59
by Askaneli
Solaire wrote:virussino wrote:hi

UO.Print( str( UO.GetHP( "0x0002BA90" ) ) ) ; my horse
if it is full hp or dead....return 0

else it works
I must understand if it is dead or alive I can?
На каком шарде? А то на некоторых (дрв, например), GetHP() возвращает только собственные хиты.
Да ????
Не знал.
У мня почему то на спаринге на ДРВ определяет ХП противника.
Re: gethp
Posted: 2005-06-10 18:12:47
by Solaire
Askaneli wrote:Да ????
Не знал.
У мня почему то на спаринге на ДРВ определяет ХП противника.
Читер.

В новостях даже писали, что теперь это не работает. Давно уже. Писало всегда 256 хитов. Хотя сейчас, может, опять включили, но с чего бы вдруг?
Re: gethp
Posted: 2005-06-13 23:05:36
by Yoko
virussino wrote:if it is full hp or dead....return 0

really strange... never seen such thing
check also uo.getmaxhp in this moments
(to check is it alive uo.getgraphic may be enough)
Posted: 2005-06-24 20:22:43
by virussino
I did not use getstatus.......
hour works
uo.getstatus("finditem")
wait(300)
if uo.gethp(object)==0 then
............
endif
Posted: 2005-07-10 11:32:57
by Mamoru
Здаровье пета видно только после того как инжа показала его на экране
a horse 25/25 HP (2y)
Обычно после вытаскивания лайфбара животного.
скриптого это делает uo.getstatus("<name>")
pets life can by get by uo.gethp() only after opening pets lifebar by manual draging or by uo.getstatus("<name>")