Everyone who has never used our Bots before, can test each one for 2 days without any limitation.
The trial is given automatically when you login on the Bot, but in some cases it wouldn't work (security reasons).
If this happens, send me a private message and i will be checking the failed trials manually and adding it for those who didn't get it.
We are looking for resellers who may accept payment methods different from ours, including classictibia's cash, realesta's cash, mastercores' cash, etc. Interested? Click here at anytime.



Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Alarm when a designated message is on the screen
#1
Hello, I would like a script that will let me know when GM invisible will write me a message. I know what questions GM is asking so it can be a script when someone writes the appropriate message
Reply

#2
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
Reply

#3
thanks
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016