gethp

Ask for help

Moderators: Murderator+, Murderator

Post Reply
virussino
Posts: 22
Joined: 2004-10-02 14:37:13

gethp

Post 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?
flake
Expert!
Posts: 746
Joined: 2004-08-11 23:56:17
Location: The Citadel
Contact:

Post by flake »

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

Re: gethp

Post 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() возвращает только собственные хиты.
virussino
Posts: 22
Joined: 2004-10-02 14:37:13

Post 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 :|
virussino
Posts: 22
Joined: 2004-10-02 14:37:13

Post by virussino »

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: Уфа

Re: gethp

Post 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() возвращает только собственные хиты.

Да ????
Не знал.
У мня почему то на спаринге на ДРВ определяет ХП противника.
Сделал дело - флуди смело !!!
Solaire
Posts: 163
Joined: 2005-05-21 07:12:12
Location: DRW

Re: gethp

Post by Solaire »

Askaneli wrote:Да ????
Не знал.
У мня почему то на спаринге на ДРВ определяет ХП противника.

Читер. :D В новостях даже писали, что теперь это не работает. Давно уже. Писало всегда 256 хитов. Хотя сейчас, может, опять включили, но с чего бы вдруг?
Yoko
Site Admin
Posts: 1964
Joined: 2004-04-03 16:49:38
Contact:

Re: gethp

Post 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)
virussino
Posts: 22
Joined: 2004-10-02 14:37:13

Post by virussino »

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 »

Здаровье пета видно только после того как инжа показала его на экране
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>")
Post Reply