View Single Post
08/21/14, 07:41 PM   #10
circonian
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 613
Originally Posted by Garkin View Post
I'm trying a bit more complex version of this code:
Lua Code:
  1. ZO_PreHook(NOTIFICATIONS.providers[10], "BuildNotificationList", function(self)
  2.     for index = 1, GetNumRaidScoreNotifications() do
  3.         local notificationId = GetRaidScoreNotificationId(index)
  4.         RemoveRaidScoreNotification(notificationId)
  5.     end
  6. end)
Oh, and now I read your second post and see that. I'm assuming providers[10] refers to the leaderboard raid notifications. Which seems simpler than what I suggested (rewriting the BuildNotificationList function), but same principle looks like it would work. Inside your notification loop do something like this to check if its a guildMember:
Lua Code:
  1. for memberIndex = 1, numMembers do
  2.             local displayName, characterName, isFriend, isGuildMember = GetRaidScoreNotificationMemberInfo(notificationId, memberIndex)
  3. .....
and ...same as I said in above post to figure out which guild & if you want to remove the notification or not.
  Reply With Quote