Thread Tools Display Modes
08-20-24, 01:48 AM   #1
Walkerbo
A Frostmaul Preserver
 
Walkerbo's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 270
Ignore/unignore for targets on a different realm

Hi all

I am trying to ignore/unignore target players.
Lua Code:
  1. C_FriendList.AddOrDelIgnore(UnitName("target"))
This works only on targets in the same realm, but not on any target from a different realm.
Even for those realms that are shared.

I have tried to search if I can ignore using the target GUID yet I can't find anything in the API.

Is there a way that I can get this working?
__________________
"As someone once told me, frames are just special types of tables, and tables are special types of pointers."
Fizzlemizz
  Reply With Quote
08-20-24, 02:55 AM   #2
Walkerbo
A Frostmaul Preserver
 
Walkerbo's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 270
After cleaning my eyes out with bleach, I had another read and got it working.
Lua Code:
  1. local name, realm = UnitFullName("target")
  2. if realm == nil then
  3.    targetName = name
  4. else
  5.    targetName = (name.."-"..realm)
  6. end
  7.  
  8. C_FriendList.AddOrDelIgnore(targetName)
__________________
"As someone once told me, frames are just special types of tables, and tables are special types of pointers."
Fizzlemizz
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Ignore/unignore for targets on a different realm


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off