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 item on default
#1
is there a way to set an alarm when it reads an item in default? for example if i loot a fire sword without opening the body i hear an alarm
Reply

#2
Hello.

This script will check for messages on CURRENTLY SELECTED CHANNEL, if a message that has no sender (server messages) contains any of the keywords you set then play sound and flash client. There's also an option for ignore case.
local Keywords = { 'fire sword', 'mace' }
local IgnoreCase = false -- Should it ignore case (lower / upper case) while checking for keywords?

local messages = getnewmessages()
for _, message in ipairs(messages) do
    for __, keyword in ipairs(Keywords) do
        if (message.sender == nil or message.sender == '') and ((IgnoreCase == false and string.find(message.content, keyword) ~= nil) or (IgnoreCase and string.find(message.content:lower(), keyword:lower()) ~= nil)) then
            playsound('default')
            flashclient()
        end
    end
end
Reply

#3
thxxx
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016