ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   AddOn Search/Requests (https://www.esoui.com/forums/forumdisplay.php?f=165)
-   -   [Request] Chat Contact Notificaiton Spam Filter (https://www.esoui.com/forums/showthread.php?t=2002)

heyguyslol 07/20/14 04:31 PM

[Request] Chat Contact Notificaiton Spam Filter
 
I am sick of seeing in my chat when my contacts/friends switch chars or go on/offline. It's literally turned into spam because most of us use mules and have hirelings so we have to switch chars several times so when u have friends that all do this the chat notifications are spamming up my chat.

Is there an AddOn or way to disable these notifications? I don't care when my contacts go on/offline or when they switch chars it's really very annoying.

Garkin 07/20/14 04:54 PM

I don't know if there is an addon, but this line of code should disable firend status changes:

Lua Code:
  1. ZO_PreHook(ZO_ChatSystem_GetEventHandlers(), EVENT_FRIEND_PLAYER_STATUS_CHANGED, function() return true end)

EDIT:
Another method:
Lua Code:
  1. ZO_ChatSystem_AddEventHandler(EVENT_FRIEND_PLAYER_STATUS_CHANGED, function() end)

heyguyslol 07/20/14 08:08 PM

Quote:

Originally Posted by Garkin (Post 10725)
I don't know if there is an addon, but this line of code should disable firend status changes:

Lua Code:
  1. ZO_PreHook(ZO_ChatSystem_GetEventHandlers(), EVENT_FRIEND_PLAYER_STATUS_CHANGED, function() return true end)

EDIT:
Another method:
Lua Code:
  1. ZO_ChatSystem_AddEventHandler(EVENT_FRIEND_PLAYER_STATUS_CHANGED, function() end)

Tyvm, but how and where do I input this code? sorry I'm not experienced with stuff like this.

Garkin 07/21/14 04:26 AM

1 Attachment(s)
If you wnat to use this code, copy&paste it to the very end of any .lua file in your addons folder.


If you prefer making a new addon:
  • In your Addons folder create folder named "SilentFriends".
  • create text file "SilentFriends.txt" and copy&paste this text to the file:
    Code:

    ## APIVersion: 100007

    SilentFriends.lua

  • create text file "SilentFriends.lua" and copy&paste this text to the file:
    Lua Code:
    1. EVENT_MANAGER:RegisterForEvent("SilentFriends", EVENT_PLAYER_ACTIVATED, function(event)
    2.     EVENT_MANAGER:UnregisterForEvent("SilentFriends", event)
    3.     EVENT_MANAGER:UnregisterForEvent("ChatSystem_OnEventId" .. EVENT_FRIEND_PLAYER_STATUS_CHANGED, EVENT_FRIEND_PLAYER_STATUS_CHANGED)
    4.     ZO_ChatSystem_GetEventHandlers()[EVENT_FRIEND_PLAYER_STATUS_CHANGED] = nil
    5. end)

EDIT:
Addon is attached, so just download and install it the same way as any other addons.

heyguyslol 07/21/14 02:05 PM

Tyvm Garkin


All times are GMT -6. The time now is 03:50 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI