View Single Post
08/21/14, 09:46 AM   #6
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
Originally Posted by Ayantir View Post
I tried those 2 lines of code Garkin, and it seems they doesn't work (Those notifs are really annoying)

https://www.dropbox.com/s/a3zvv16n1n...%20-%200.1.zip

Maybe i make someting wrong
Try to unregister it later - for example when addon is loaded of when player is activated. It is possible that you are trying to unregister it before it gets registered.


I have tried to update Thurisaz Guild Info to block raid notifications, but I didn't have time to test it yet.
https://www.dropbox.com/s/349xrkiqwb...dInfo-0.57.zip

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)
  Reply With Quote