View Single Post
02-18-20, 12:09 PM   #4
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,871
A general idea.
Code:
local unit = "player"
local name = UnitName(unit)
local realm = GetRealmName()
print(unit, name, "from", realm)
for i=1, 4 do
	unit = "party"..i
	if UnitExists(unit) then
		name, realm = UnitName(unit)
		if not realm then
			realm = GetRealmName()
		end
		print(unit, name, "from", realm)
	end
end
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 02-18-20 at 02:07 PM.
  Reply With Quote