Jump to content

Recommended Posts

Posted
Can you admins make it possible to add players to ignore list while inside battleground (cross realm)? At the moment that is not possible, maybe having different ignore lists one for the main realm and another for the cross realm? the option just doesnt work inside cross realm, there is ways around it and still being able to ignore indirectly moving chat boxes away but would be better with the direct option, thanks
Posted (edited)

1st the macro to get an actual target name (target > press a macro > select the name > copy)

/run local name = UnitName("target");ChatFrame_OpenChat("/w "..name.."", chatFrame);
2nd the code to paste somewhere in one of your addons that you are using or read this https://wowpedia.fandom.com/wiki/Create_a_WoW_AddOn_in_15_Minutes (use Interface: 50400 for your TOC file)
local AuthorTable = {
"name1","name2","name3",
"name4",
"name5","name6",
}
local AuthorFilter = function(self, event, msg, author)
	for i = 1, #AuthorTable do
		if string.match(author, AuthorTable[i]) then
			return true
		end
	end
end
ChatFrame_AddMessageEventFilter("CHAT_MSG_CHANNEL", AuthorFilter)
ChatFrame_AddMessageEventFilter("CHAT_MSG_PARTY", AuthorFilter)
ChatFrame_AddMessageEventFilter("CHAT_MSG_PARTY_LEADER", AuthorFilter)
ChatFrame_AddMessageEventFilter("CHAT_MSG_RAID", AuthorFilter)
ChatFrame_AddMessageEventFilter("CHAT_MSG_RAID_LEADER", AuthorFilter)
ChatFrame_AddMessageEventFilter("CHAT_MSG_RAID_WARNING", AuthorFilter)
ChatFrame_AddMessageEventFilter("CHAT_MSG_INSTANCE_CHAT", AuthorFilter)
ChatFrame_AddMessageEventFilter("CHAT_MSG_INSTANCE_CHAT_LEADER", AuthorFilter)
ChatFrame_AddMessageEventFilter("CHAT_MSG_SAY", AuthorFilter)
ChatFrame_AddMessageEventFilter("CHAT_MSG_YELL", AuthorFilter)
ChatFrame_AddMessageEventFilter("CHAT_MSG_WHISPER", AuthorFilter)
ChatFrame_AddMessageEventFilter("CHAT_MSG_EMOTE", AuthorFilter)
ChatFrame_AddMessageEventFilter("CHAT_MSG_TEXT_EMOTE", AuthorFilter)

 

Simply add new names in AuthorTable (follow the format)

Not sure if the code is well optimized especially for heavy shit that sometimes occur in the chat.

And i would recommend to disable speech clouds above players as well (can toggle somewhere in your interface options).

 

updated with some links

1) https://wowpedia.fandom.com/wiki/API_ChatFrame_AddMessageEventFilter

2) https://wowpedia.fandom.com/wiki/Category:API_namespaces/C_ChatInfo (some API are not exists in mop client - read patch changes for every API at first)

Edited by Ink_Forever
updated code visuals to new forum
Posted
i dont understand the "paste somewhere in one of your addons that you are using"

any .lua file

Posted (edited)
Quote
And i would recommend to disable speech clouds above players as well (can toggle somewhere in your interface options).

Macro to toggle this option

/run if GetCVar("chatBubbles") == "0" then SetCVar("chatBubbles", 1) else SetCVar("chatBubbles", 0) end
Sqeer said:
any .lua file

any .lua file that will be running i.e. paste the code in the .lua file used by addon that you are actually using (not into blizzard interface addon tho).

Edited by Ink_Forever
update code visuals to new forum
Posted
any .lua file

 

and what is .lua? idk about computers things

 

- - - Updated - - -

 

any .lua file that will be running i.e. paste the code in the .lua file used by addon that you are actually using (not into blizzard interface addon tho).

 

i dont understand lol, do i have to paste that inside one addon folder for it to work with the names of players i want to not see or what is it? i more or less understood what that script do

Posted (edited)
i dont understand lol' date=' do i have to paste that inside one addon folder for it to work with the names of players i want to not see or what is it? i more or less understood what that script do[/quote']

in the code of the file with the extension .lua

open with notepad++

 

if you are interested, find out what lua is - there is google. It is a very simple scripting programming language.

 

I think u heard about LUA SCRIPTS

https://en.wikipedia.org/wiki/Lua_(programming_language)

 

 

Example in my computer: C:\PandaWoW 5.4.8\Interface\AddOns\infBanner\infBanner.lua

lua file path

it can be any lua file from the addons folder

 

- - - Добавлено - - -

 

btw, I made a separate addon for you https://www.mediafire.com/file/6n8s09ged5hfoeb/ByWarlockenjoyer.zip/file

Edited by Sqeer
Posted
Macro to toggle this option

/run[color=#0000ff] if[/color] GetCVar("chatBubbles") == "0" [color=#0000ff]then[/color] SetCVar("chatBubbles", [color=#ff8c00]1[/color]) [color=#0000ff]else[/color] SetCVar("chatBubbles",[color=#ff8c00] 0[/color]) [color=#0000ff]end[/color]

 

- - - Добавлено - - -

 

 

any .lua file that will be running i.e. paste the code in the .lua file used by addon that you are actually using (not into blizzard interface addon tho).

 

i see inside some addons there is .lua extensions, this for example: https://imgur.com/a/FXey3z4

 

- - - Updated - - -

 

is there where i could paste:

 

local AuthorTable = {

"name1","name2","name3","name99",

}

local AuthorFilter = function(self, event, msg, author)

for i = 1, #AuthorTable do

if strmatch(author, AuthorTable) then

return true

end

end

end

ChatFrame_AddMessageEventFilter("CHAT_MSG_CHANNEL", AuthorFilter)

ChatFrame_AddMessageEventFilter("CHAT_MSG_PARTY", AuthorFilter)

ChatFrame_AddMessageEventFilter("CHAT_MSG_PARTY_LEADER", AuthorFilter)

ChatFrame_AddMessageEventFilter("CHAT_MSG_RAID", AuthorFilter)

ChatFrame_AddMessageEventFilter("CHAT_MSG_RAID_LEADER", AuthorFilter)

ChatFrame_AddMessageEventFilter("CHAT_MSG_RAID_WARNING", AuthorFilter)

ChatFrame_AddMessageEventFilter("CHAT_MSG_INSTANCE_CHAT", AuthorFilter)

ChatFrame_AddMessageEventFilter("CHAT_MSG_INSTANCE_CHAT_LEADER", AuthorFilter)

ChatFrame_AddMessageEventFilter("CHAT_MSG_SAY", AuthorFilter)

ChatFrame_AddMessageEventFilter("CHAT_MSG_YELL", AuthorFilter)

ChatFrame_AddMessageEventFilter("CHAT_MSG_WHISPER", AuthorFilter)

ChatFrame_AddMessageEventFilter("CHAT_MSG_EMOTE", AuthorFilter)

ChatFrame_AddMessageEventFilter("CHAT_MSG_TEXT_EMOTE", AuthorFilter)"

 

and just write the names of people i dont want to see their texts?

 

- - - Updated - - -

 

anyway, couldn't devs make the ignore function work inside cross realm?

Posted
anyway' date=' couldn't devs make the ignore function work inside cross realm?[/quote']

I don't think it's necessary for many people. And if necessary - there is a crutch in the form of a lua addon

But ur need the opinion of the developer / administrator on this matter

Posted
Надо перезаливать) не поправил strmatch на string.match

Updated. Used another file host (think better)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...