WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   AddOn Search/Requests (https://www.wowinterface.com/forums/forumdisplay.php?f=6)
-   -   LF addon to monitor chat for world boss groups (https://www.wowinterface.com/forums/showthread.php?t=46089)

tednik 03-21-13 04:22 PM

LF addon to monitor chat for world boss groups
 
I was looking for a add on that would monitor chat for keywords like galleon, sha, and the other world bosses im not sure if any exist or if not maybe someone would be interested in making one.

Phanx 03-21-13 04:28 PM

Can't you just use ChatAlerts and tell it to alert you on those words?

tednik 03-21-13 04:39 PM

i will try it but i was looking for something along the lines that pops a message in the middle of the screen i use elv_ui and not sure if it will work

ChatAlerts will not work it just monitors channels like guild party it will not monitor general zone chat

Phanx 03-21-13 05:51 PM

Did you actually try it? There's nothing in the description that says it can't monitor numbered channels like General or Trade. You might be thinking of BrokerChatAlerts which is a totally separate addon.

tednik 03-21-13 06:54 PM

1 Attachment(s)
yes i did try it it only has check boxes and no way to enter in custom channels i uploaded a screenshot of its main option and yes i looked through them all it can only monitor preset channels that have been coded in to the addon

10leej 03-21-13 06:55 PM

Wouldn't boss speech show up as emote?

Phanx 03-21-13 08:56 PM

He wants something that will alert him when someone talks in General chat saying Sha/Galleon/whatever is up.

Okay, ChatAlerts looks pretty useless then... why would you write a chat alert addon that can't actually monitor the channels that are hardest to monitor on your own? :rolleyes:

Anyway, this will monitor numbered channels for messages containing "sha" or "galleon" and re-print those messages to the UIErrorsFrame. Should work unless ElvUI is breaking the UIErrorsFrame, though that wouldn't surprise me, since ElvUI seems to break everything and be imcompatible with everything and its author refuses to fix any and all compatibility issues.

Code:

local words = { -- MUST BE LOWERCASE
    "sha",
    "galleon",
}
ChatFrame_AddMessageEventFilter("CHAT_MSG_CHANNEL", function(_, _, message, _, _, _, _, _, channelID)
    if channelID == 0 or type(channelID) ~= "number" then return end -- ignore custom channels
    local lowermessage = strlower(message)
    for i = 1, #words do
        if strfind(lowermessage, words[i]) then
            UIErrorsFrame:AddMessage(message, 1, 0.75, 0.75)
        end
    end
end)

Use http://addon.ziuo.net/ to turn it into an addon if you don't know how.

Torhal 03-22-13 12:31 AM

Quote:

Originally Posted by Phanx (Post 275016)
Okay, ChatAlerts looks pretty useless then... why would you write a chat alert addon that can't actually monitor the channels that are hardest to monitor on your own? :rolleyes:

I have several channels all in their own tab. The default UI only flashes the whisper tab when it has activity. Pretty simple reasoning, I think.

tednik 03-22-13 11:48 AM

Quote:

Originally Posted by Phanx (Post 275016)
He wants something that will alert him when someone talks in General chat saying Sha/Galleon/whatever is up.

Okay, ChatAlerts looks pretty useless then... why would you write a chat alert addon that can't actually monitor the channels that are hardest to monitor on your own? :rolleyes:

Anyway, this will monitor numbered channels for messages containing "sha" or "galleon" and re-print those messages to the UIErrorsFrame. Should work unless ElvUI is breaking the UIErrorsFrame, though that wouldn't surprise me, since ElvUI seems to break everything and be imcompatible with everything and its author refuses to fix any and all compatibility issues.

Code:

local words = { -- MUST BE LOWERCASE
    "sha",
    "galleon",
}
ChatFrame_AddMessageEventFilter("CHAT_MSG_CHANNEL", function(_, _, message, _, _, _, _, _, channelID)
    if channelID == 0 or type(channelID) ~= "number" then return end -- ignore custom channels
    local lowermessage = strlower(message)
    for i = 1, #words do
        if strfind(lowermessage, words[i]) then
            UIErrorsFrame:AddMessage(message, 1, 0.75, 0.75)
        end
    end
end)

Use http://addon.ziuo.net/ to turn it into an addon if you don't know how.

Thank you very much for the code i will use it till i can find something or i can get someone to code something more to suit my needs

Quote:

Originally Posted by Torhal (Post 275023)
I have several channels all in their own tab. The default UI only flashes the whisper tab when it has activity. Pretty simple reasoning, I think.

Maybe Torhal can add this option in to his ChatAlerts if i ask him nicely


All times are GMT -6. The time now is 08:12 AM.

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