Thread Tools Display Modes
07/20/14, 04:31 PM   #1
heyguyslol
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 24
[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.
  Reply With Quote
07/20/14, 04:54 PM   #2
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
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)

Last edited by Garkin : 07/20/14 at 05:04 PM.
  Reply With Quote
07/20/14, 08:08 PM   #3
heyguyslol
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 24
Originally Posted by Garkin View Post
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.
  Reply With Quote
07/21/14, 04:26 AM   #4
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
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.
Attached Files
File Type: zip SilentFriends.zip (622 Bytes, 307 views)

Last edited by Garkin : 07/21/14 at 05:08 AM. Reason: Attached "addon"
  Reply With Quote
07/21/14, 02:05 PM   #5
heyguyslol
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 24
Tyvm Garkin
  Reply With Quote

ESOUI » AddOns » AddOn Search/Requests » [Request] Chat Contact Notificaiton Spam Filter


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