Yoko

All sides of Injection
It is currently 2025-12-08 20:44:42

All times are UTC+02:00




Post new topic  Reply to topic  [ 8 posts ] 
Author Message
 Post subject: UO.GetHP
PostPosted: 2007-11-17 00:23:01 
Offline

Joined: 2005-07-28 20:31:08
Posts: 25
I wanna know when the target is dead, but I tryed with UO.GetHP and didn't find the answer.
Someone can help me with this problem?

[]'s

_________________
Image
Image
Image


Top
   
 Post subject:
PostPosted: 2007-11-17 02:19:39 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
Hmm.. May be uo.getGraphic can helps you?

_________________
YokoInjection CodeSweeper
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Skype: d119060


Top
   
 Post subject:
PostPosted: 2007-11-17 17:04:30 
Offline

Joined: 2005-07-28 20:31:08
Posts: 25
Destruction wrote:
Hmm.. May be uo.getGraphic can helps you?


How it will be?

I've tryed with Uo.GetHP() like this:

Code:
UO.gethp('0x000000')
if uo.gethp() == 0 then
 uo.say('blablabla')
endif


[]'s

_________________
Image

Image

Image


Top
   
 Post subject:
PostPosted: 2007-11-17 18:03:37 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
Injectioner wrote:
Scripts Writer wrote:
Code:
sub Test_Hp()
var id=0x00000000
if uo.GetHp('id') == 0 then
  if uo.GetName('id')=="" then
    uo.Click('id')
  end if
  uo.Print(uo.GetName('id')+' is dead.')
end if   
end sub


Didn't work... O.o'


I'm sorry. I wrote wrong scp.

I think u won't see value hp of character by him id. U can see only % from GetHp/MaxHp. Look it in scp where player attack dragon until low hp and then heal him.

2Also u can try to see type of character by uo.GetGraphic. If hp==0 then the character,- ghost. Type of ghost != Type of human.

*sorry for my clumsy english*


Top
   
 Post subject:
PostPosted: 2007-11-17 18:14:17 
Offline

Joined: 2005-07-28 20:31:08
Posts: 25
No problem... ;]
Thank you, I will find this script and try do it.

[]'s

_________________
Image

Image

Image


Top
   
 Post subject:
PostPosted: 2007-11-17 18:18:24 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
Injectioner wrote:
No problem... ;]
Thank you, I will find this script and try do it.

[]'s


I advise u to use Destruction example with uo.GetGraphic


Top
   
 Post subject:
PostPosted: 2007-11-17 22:50:14 
Offline

Joined: 2005-07-28 20:31:08
Posts: 25
When someone die, the graphic changes?
If the answer is yes, how may I do to save one graphic and start to verify the graphic of the same person, but without lose the first graphic that I have taken.

[]'s

_________________
Image

Image

Image


Top
   
 Post subject:
PostPosted: 2007-11-17 23:12:47 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
uo.GetGraphic return type of object.
Make two var: type of human & type of ghost and compare with it


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 1 guest


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