Some units in Zangarmarsh are 'herb-skinned' using herbalism. How can I check if I can perform this action on unit using lua or memory reads?
Some units in Zangarmarsh are 'herb-skinned' using herbalism. How can I check if I can perform this action on unit using lua or memory reads?
You need to check creature's type flags.
Code:HERBLOOT = 0x100 MININGLOOT = 0x200 ENGINEERLOOT = 0x8000
Last edited by Sacred; 03-06-2014 at 05:39 PM.
Thanks, but where can I find it? I can't see it in unit fields.
I'm pretty sure these flags are at [[unitBase+0x9B4]+0x4C]
[unitBase+0x9B4] points to creaturecache, you can read here some other info, such as creature's name, type, rank, family etc.
Last edited by Sacred; 03-06-2014 at 05:44 PM.