Page 1 of 1

How to get attributes of a pet in UO Steam

Posted: February 22nd, 2017, 6:41 pm
by Tanya
How? Is it possible?
I was reading the documentation and found that is possible to check player attributes, resistances and status.
I need to find attributes of a pet: hp, strength, skills and resists.
So I am looking how to take the data from the pop-up after I use animal lore on a pet.

Re: How to get attributes of a pet in UO Steam

Posted: February 22nd, 2017, 7:31 pm
by Gargl Kark
idk, but maybe try this:
  • open stats via animal lore
  • identify gump serial of animal stats
  • check gump by serial for content
  • process content in UOSteam
No idea if this works, but that's roughly the concept of all scripts that rely on gump content.

Re: How to get attributes of a pet in UO Steam

Posted: February 22nd, 2017, 9:44 pm
by Tanya
Thanks

so far I found that this works:

if @ingump 'any' 'Hits'
sysmsg 'test1'
endif
if @ingump 'any' '600/600'
sysmsg 'test2'
endif
if @ingump @property 'Hits'
sysmsg 'test3'
endif

or can use id of gump 0x934529aa

In worst case I can find Hp and strength of a pet with a Brute-force search,
But can't find a way to find a value of resists
because a name of a property and a value of a property are not in the same string.

Re: How to get attributes of a pet in UO Steam

Posted: February 23rd, 2017, 5:29 am
by Gargl Kark
right.
means that you only can search if all values are below or above a threshold, but it will not give precise results.
I do not think it can get better with UOSteam.

Re: How to get attributes of a pet in UO Steam

Posted: February 23rd, 2017, 5:08 pm
by gonthrax
Gargl is correct. This is just a major limitation of steam. While you have full access to the value of all properties you cannot print the value of those properties. The only way is to, as you put it, brute force the value. If > 1 then this, if > 2 then that, if > 3 something else etc.

It is cause for much frustration on my part, I just want a print(alias)!