Originally Posted by Garkin
I'm trying a bit more complex version of this code:
Lua Code:
ZO_PreHook(NOTIFICATIONS.providers[10], "BuildNotificationList", function(self) for index = 1, GetNumRaidScoreNotifications() do local notificationId = GetRaidScoreNotificationId(index) RemoveRaidScoreNotification(notificationId) end 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:
for memberIndex = 1, numMembers do
local displayName, characterName, isFriend, isGuildMember = GetRaidScoreNotificationMemberInfo(notificationId, memberIndex)
.....
and ...same as I said in above post to figure out which guild & if you want to remove the notification or not.