Currently, if I'm not mistaken there are
four location types
0 nothing, GUI or inv
1 hotspot
2 char
3 object
would it be possible to have new ones? like 4 for region? or even subdivide the type 0 to separate nothing, GUI and inv, although this could mean trouble with "legacy" games...
Well, GetLocationType is designed for interaction handling, to see what type of thing they clicked on.
If it returns 0, you can split up the result manually by using GetRegionAt, GetInvAt, and so forth.
I guess you are right, I did what I was wanting to do with just two script lines using GetRegionAt...