Page 1 of 1

gethp not working

Posted: 2004-07-28 09:35:36
by supermudo
the function uo.GetHP() can´t seem to work....
i defined an object "dude" for my sparring dude at the objects tab, but teh code:
Code:

Code: Select all

var x = 0 
x = uo.gethp("dude")
uo.print(str(x))



prints only 0´s to client

what am i doing wrong?

Posted: 2004-07-28 22:40:00
by Yoko
Track World in Main tab

Posted: 2004-07-29 01:28:04
by supermudo
didn´t work....

is it right the method of calling the uo.GetHP() function?

if i put any string ie. uo.getHP("gewgegegege")
it returns 0 anyway.

how do i pass objects correctly to it?

Posted: 2004-07-29 23:00:01
by Yoko
supermudo wrote:didn?t work....

is it right the method of calling the uo.GetHP() function?

if i put any string ie. uo.getHP("gewgegegege")
it returns 0 anyway.

how do i pass objects correctly to it?


you will get health of object gewgegegege defined in objects tab

Posted: 2004-07-30 08:21:19
by supermudo
it realy doesn´t work, my dll is from Build 305.01
maybe it has any bug on gethp?