View Single Post
12-02-12, 09:22 PM   #15
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 1,060
This will return whether a guid is a player.. tonumber(sourceGUID:sub(5,5), 16) % 8 == 0

You could probably get away with just this: sourceGUID:sub(5,5) == '8'

You can use this to test it in-game..
Lua Code:
  1. /run print((UnitGUID('target')):sub(5,5) == '8')

Last edited by semlar : 12-02-12 at 09:29 PM.
  Reply With Quote