Ask for help
Moderators: Murderator+ , Murderator
virussino
Posts: 22 Joined: 2004-10-02 14:37:13
Post
by virussino » 2005-06-09 15:07:41
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?
flake
Expert!
Posts: 746 Joined: 2004-08-11 23:56:17
Location: The Citadel
Contact:
Post
by flake » 2005-06-09 15:46:42
Code: Select all
If UO.GetHP( "0x0002BA90" ) == 0 Then UO.Print( 'Horse is dead! God bless her soul!' ) EndIf
Solaire
Posts: 163 Joined: 2005-05-21 07:12:12
Location: DRW
Post
by Solaire » 2005-06-09 16:51:14
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() возвращает только собственные хиты.
virussino
Posts: 22 Joined: 2004-10-02 14:37:13
Post
by virussino » 2005-06-09 19:03:59
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
virussino
Posts: 22 Joined: 2004-10-02 14:37:13
Post
by virussino » 2005-06-10 13:55:39
pls help
how I can understand if alive or dead?
ps: sorry for eng
Askaneli
Sphere expert
Posts: 1143 Joined: 2004-10-01 08:27:38
Location: Уфа
Post
by Askaneli » 2005-06-10 13:58:59
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() возвращает только собственные хиты.
Да ????
Не знал.
У мня почему то на спаринге на ДРВ определяет ХП противника.
Сделал дело - флуди смело !!!
Solaire
Posts: 163 Joined: 2005-05-21 07:12:12
Location: DRW
Post
by Solaire » 2005-06-10 18:12:47
Askaneli wrote: Да ???? Не знал. У мня почему то на спаринге на ДРВ определяет ХП противника.
Читер.
В новостях даже писали, что теперь это не работает. Давно уже. Писало всегда 256 хитов. Хотя сейчас, может, опять включили, но с чего бы вдруг?
Yoko
Site Admin
Posts: 1964 Joined: 2004-04-03 16:49:38
Contact:
Post
by Yoko » 2005-06-13 23:05:36
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)
virussino
Posts: 22 Joined: 2004-10-02 14:37:13
Post
by virussino » 2005-06-24 20:22:43
I did not use getstatus.......
hour works
uo.getstatus("finditem")
wait(300)
if uo.gethp(object)==0 then
............
endif
Mamoru
Posts: 45 Joined: 2005-07-10 11:26:37
Post
by Mamoru » 2005-07-10 11:32:57
Здаровье пета видно только после того как инжа показала его на экране
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>")