Hello.
Can you reply to the challenge in any channel? Like Default, etc.
I didn't tested, but the scripts below will check for messages on selected channel and screen messages (such the green message when you look item) to try to detect bot check.
You can use this script to alert you, so you can manually reply:
local WARNING_MESSAGES = {
'Reminder: BOT CHECK',
}
if connected() then
table.lower(WARNING_MESSAGES)
local screenMsg = screenmessage(true)
screenMsg = screenMsg:lower()
for _, msg in ipairs(WARNING_MESSAGES) do
if string.find(screenMsg, msg:lower()) ~= nil then
playsound('default')
flashclient()
end
end
local messages = getnewmessages()
for _, message in ipairs(messages) do
if message.sender == '' and message.content ~= nil and message.content ~= '' then
message.content = message.content:lower()
for _, msg in ipairs(WARNING_MESSAGES) do
if string.find(message.content, msg:lower()) ~= nil then
playsound('default')
flashclient()
end
end
end
end
end
This also tries to detect, but also tries to reply. Notice it will reply in default channel.
local WARNING_MESSAGES = {
'Reminder: BOT CHECK',
}
if getNumbersFromString == nil then
function getNumbersFromString(inputString)
local result = {}
for num in inputString:gmatch("%d+") do
table.insert(result, tonumber(num))
end
return result
end
end
if connected() then
table.lower(WARNING_MESSAGES)
local screenMsg = screenmessage(true)
screenMsg = screenMsg:lower()
for _, msg in ipairs(WARNING_MESSAGES) do
if string.find(screenMsg, msg:lower()) ~= nil then
playsound('default')
flashclient()
local numbers = getNumbersFromString(screenMsg)
if #numbers >= 2 then
say(tostring(numbers[1] + numbers[2]), 'Any')
wait(500, 800)
end
end
end
local messages = getnewmessages()
for _, message in ipairs(messages) do
if message.sender == '' and message.content ~= nil and message.content ~= '' then
message.content = message.content:lower()
for _, msg in ipairs(WARNING_MESSAGES) do
if string.find(message.content, msg:lower()) ~= nil then
playsound('default')
flashclient()
local numbers = getNumbersFromString(screenMsg)
if #numbers >= 2 then
say(tostring(numbers[1] + numbers[2]), 'Any')
wait(500, 800)
end
end
end
end
end
end