Thread Tools Display Modes
Prev Previous Post   Next Post Next
02-05-22, 01:20 AM   #1
joejoe317
A Defias Bandit
Join Date: Feb 2022
Posts: 2
Filter/replace System messages in ChatFrame

Hello, I have dipped my toe in development of addons because of the current Zero to Hero challenges with PVP where players try and keep anonymous on stream while starting fresh characters and trying to get 2400 rating in arena while only using LFG.

Currently I have modified and added significantly to an addon that a streamer named Xaryu has been using. I have mostly changed most information such as nameplates, chat, craftet items, enemy names etc..

One main issue with chat right now is that I can change the players names etc, however when people queue for arena system messages are used for events such as "LFG_ROLE_CHECK_ROLE_CHOSEN"..

I have found the way blizzard implements this and they use ChatFrame_DisplaySystemMessageInPrimary to print out the player name etc. If I try and use the role check event in ChatFrame_AddMessageEventFilter this does not product any prints.

If I register a frame, it will print on a registered event, but only after the system already printed it. The function name they have for these checks (which I assume is a function for on selection) is called LFGEventFrame_OnLoad.

My entire approach and thought may be incorrect as I am currently in the mindself of being able to return back the correct information on AddMessageEventFilter for other events such as say, whispers etc...

My main goal is to basically loop through the party and my current self, if its me then replace my name with a variable NewName created at the start of the file.. If it's anyone else then just use their class name.
  Reply With Quote
 

WoWInterface » Developer Discussions » General Authoring Discussion » Filter/replace System messages in ChatFrame


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