Yoko
http://forum.yoko.com.ua/

I need to see object's hit points in %
http://forum.yoko.com.ua/viewtopic.php?f=3&t=10245
Page 1 of 1

Author:  Potkan [ 2006-12-01 08:02:35 ]
Post subject:  I need to see object's hit points in %

I need to see object's hit points in % beacuse i'm trying to make some healing script and i don't want to use a bandage every XXX ms.

Author:  Nmy [ 2006-12-01 08:42:32 ]
Post subject:  Re: I need to see object's hit points in %

Potkan wrote:
I need to see object's hit points in % beacuse i'm trying to make some healing script and i don't want to use a bandage every XXX ms.

search for any sparring script and you will find a good example

Author:  Edred [ 2006-12-01 10:09:24 ]
Post subject:  Re: I need to see object's hit points in %

Potkan wrote:
I need to see object's hit points in % beacuse i'm trying to make some healing script


Code:
UO.Print(str(100*UO.GetHP('laststatus')/UO.GetMaxHP('laststatus'))+'%')

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/