Hi,
I'm making an add-on intended to assist with blue mage and I would really like to have a function to return the family of a given (targeted) mob.. There is this property of get_mob that I have seen:
windower.ffxi.get_mob_by_target('t').mob_type
I've tested it using the InfoReplacer addon (%mob_type command), and it always returns None as a result of it failing somehow? I'm assuming anyway after a quick look at the InfoReplacer code. I tested it on several different mobs.
I have achieved getting the mob family in a reasonably decent way by parsing wiki source using luasocket and an http.request, but it would obviously be much nicer if there was an windower api based way of doing this.
Questions:
A: Does mob_type == family ?
B: If so, how do I get a string value of the family from this function
C: If it isn't possible, is using luasocket to read the wiki an acceptable method for a windower addon?
Cheers