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.
hello, can I make a script that responds to chat messages? when the word "Action" Deletion "against" appears in red, the bot turns off the cave bot and
You use getmessages() or getnewmessages() to check for messages on selected channel. You can use .type of a message to check which kind of message is that: red (3), yellow (0), green(6), etc.
getmessages() [table]: Get the last messages on the current active channel.
getnewmessages() [table]: Get the news received messages on the current active channel.
.time [string]
.sender [string]
.content [string]
.fullcontent [string]
.channel [string]
.type [number]
This example will search for a red message that contains "action" on selected channel. Notice it's a simple example, so actioned would trigger this as well, because contains "action".
local messages = getnewmessages()
for _, msg in ipairs(messages) do
if msg.type == 3 and string.find(msg.content:lower(), 'action') then
setsettings('Cavebot/Enabled', false)
end
end