Hello.
Alerts->Select Chat Message: Check if you received a message on current selected channel.
Alerts->GM Detected: Check if a GM is on your screen (NOT INVISIBLE!) or sent a msg on current selected channel.
However, you can use two scripts, but i didn't tested them...
1. This script will check if one of "DANGER_LIST" sent one of those messages listed on "MESSAGES_WARNINGS".
local DANGER_LIST = { 'GM Guido', 'CM Guido' }
local MESSAGES_WARNINGS = { 'hello botter', 'hey botter' }
local messages = getnewmessages()
if #messages > 0 then
table.lower(DANGER_LIST)
table.lower(DANGER_LIST)
for _, msg in ipairs(messages) do
if table.find(DANGER_LIST, msg.sender:lower()) ~= nil and table.find(MESSAGES_WARNINGS, msg.content:lower()) ~= nil then
playsound('default')
flashclient()
break
end
end
end
2. This script will check if one of "DANGER_LIST" sent any message.
local DANGER_LIST = { 'GM Guido', 'CM Guido' }
local messages = getnewmessages()
if #messages > 0 then
table.lower(DANGER_LIST)
table.lower(DANGER_LIST)
for _, msg in ipairs(messages) do
if table.find(DANGER_LIST, msg.sender:lower()) ~= nil then
playsound('default')
flashclient()
break
end
end
end