Yoko

All sides of Injection
It is currently 2025-12-22 15:05:29

All times are UTC+02:00




Post new topic  Reply to topic  [ 10 posts ] 
Author Message
 Post subject: gethp
PostPosted: 2005-06-09 15:07:41 
Offline

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


Top
   
 Post subject:
PostPosted: 2005-06-09 15:46:42 
Offline
Expert!
User avatar

Joined: 2004-08-11 23:56:17
Posts: 746
Location: The Citadel
Code:
If UO.GetHP( "0x0002BA90" ) == 0 Then
  UO.Print( 'Horse is dead! God bless her soul!' )
EndIf


Top
   
 Post subject: Re: gethp
PostPosted: 2005-06-09 16:51:14 
Offline
User avatar

Joined: 2005-05-21 07:12:12
Posts: 163
Location: DRW
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() возвращает только собственные хиты.


Top
   
 Post subject:
PostPosted: 2005-06-09 19:03:59 
Offline

Joined: 2004-10-02 14:37:13
Posts: 22
flake wrote:
Code:
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 :|


Top
   
 Post subject:
PostPosted: 2005-06-10 13:55:39 
Offline

Joined: 2004-10-02 14:37:13
Posts: 22
pls help :(
how I can understand if alive or dead?

ps: sorry for eng :|


Top
   
 Post subject: Re: gethp
PostPosted: 2005-06-10 13:58:59 
Offline
Sphere expert
User avatar

Joined: 2004-10-01 08:27:38
Posts: 1143
Location: Уфа
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() возвращает только собственные хиты.

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

_________________
Сделал дело - флуди смело !!!


Top
   
 Post subject: Re: gethp
PostPosted: 2005-06-10 18:12:47 
Offline
User avatar

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

Читер. :D В новостях даже писали, что теперь это не работает. Давно уже. Писало всегда 256 хитов. Хотя сейчас, может, опять включили, но с чего бы вдруг?


Top
   
 Post subject: Re: gethp
PostPosted: 2005-06-13 23:05:36 
Offline
Site Admin
User avatar

Joined: 2004-04-03 16:49:38
Posts: 1964
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)


Top
   
 Post subject:
PostPosted: 2005-06-24 20:22:43 
Offline

Joined: 2004-10-02 14:37:13
Posts: 22
I did not use getstatus.......

hour works


uo.getstatus("finditem")
wait(300)
if uo.gethp(object)==0 then
............
endif


Top
   
 Post subject:
PostPosted: 2005-07-10 11:32:57 
Offline

Joined: 2005-07-10 11:26:37
Posts: 45
Здаровье пета видно только после того как инжа показала его на экране
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>")


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 10 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 3 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