View Single Post
02-25-19, 03:41 PM   #4
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,871
You know the realms your characters are on, couldn't you run a nameplate scan for characters on the same realm(s) and compare those, storing the results?

Lua Code:
  1. SLASH_AAAAA1 = "/aa"
  2. SlashCmdList["AAAAA"] = function(msg)
  3.     for i=1, 40 do
  4.         local name, realm = UnitName("NamePlate"..i)
  5.         if realm then
  6.             local realmRelationship = UnitRealmRelationship("NamePlate"..i)
  7.             print(name, realm, realmRelationship)
  8.         end
  9.     end
  10. end

Something a bit more elegant <cough> and automated could be put together and build your db over time/characters I'm sure.

Edit: Too much time on my hands.
Lua Code:
  1. local f = CreateFrame("Frame", "FizzleNamePlateInspector", UIParent)
  2. f:RegisterEvent("UNIT_NAME_UPDATE")
  3. f:RegisterEvent("NAME_PLATE_UNIT_ADDED")
  4. f:SetScript("OnEvent", function(self, event, ...)
  5.     local arg1 = ...
  6.     local name, realm = UnitName(arg1)
  7.     if realm then
  8.         local realmRelationship = UnitRealmRelationship(arg1)
  9.         print(name, realm, realmRelationship)
  10.     end
  11. end)
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 02-25-19 at 04:35 PM.
  Reply With Quote