How to get attributes of a pet in UO Steam

Share your guides, how-tos, FAQs, and so forth. This is not for support -- post questions in General Discussion.
Post Reply
User avatar
Tanya
Posts: 1796

How to get attributes of a pet in UO Steam

Post 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.
Peerless Hunter
Guide to Whammy - viewtopic.php?f=10&t=314
My youtube channel - /watch?v=sx5zGCbILtA
Weekly Bedlam Spawns - viewtopic.php?f=2&t=9131
User avatar
Gargl Kark
Posts: 484

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

Post 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.
Whammy | Timezone: GMT+2

2020-09-17: SALE | Jewels List
User avatar
Tanya
Posts: 1796

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

Post 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.
Peerless Hunter
Guide to Whammy - viewtopic.php?f=10&t=314
My youtube channel - /watch?v=sx5zGCbILtA
Weekly Bedlam Spawns - viewtopic.php?f=2&t=9131
User avatar
Gargl Kark
Posts: 484

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

Post 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.
Whammy | Timezone: GMT+2

2020-09-17: SALE | Jewels List
gonthrax
Posts: 254

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

Post 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)!
Post Reply