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
POT IN SCREEN
#1
can some help me get script when CM put pot on screen the bot stop and auto say hi ?
Reply

#2
Hello.

You must add pot's id to "ITEMS_BLACKLIST".

local ITEMS_BLACKLIST = { 1234, 4312, 5325 } -- Item ids to trigger this alert.

local MESSAGES = { 'hi', 'sup ^^', '?', 'lol' } -- A message will be sorted to be said.

local TOOLS = {
    'Cavebot/Settings/Enabled',
    'Targeting/Settings/Enabled',
    'Looter/Settings/Enabled',
}

local tiles = gettiles()

for _, tile in ipairs(tiles) do
    if tile.itemcount > 1 then
        for __, item in ipairs(tile.items) do
            if table.find(ITEMS_BLACKLIST, item.id) ~= nil then
                playsound('default')
                flashclient()
                for ___, tool in ipairs(TOOLS) do
                    setsettings(tool, false)
                end
                if #MESSAGES > 0 then
                    say(MESSAGES[random(1, #MESSAGES)])
                    wait(5000, 10000)
                end
            end
        end
    end
end
Reply

#3
and some script when player on screen say ? hi ?
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016