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
Pause Bot / Play Alarm when appear item on ground
#1
Sup Ark how you've been?
 it is possible to make an script that dected some items if appears on floor and pause cave bot?

GM's throwing some Pot or Pot with Water ( ID 3465) as some type of verification that some gm have been using on the server i've been playing.

It is possible to create a script so that it is detected if there is an item like this thrown in your path, as it is used to check if you have a bot running by  blocking your path with the pots.
Reply

#2
Hello.

This should work. It doesn't works by detecting specific items, but saves what's in your screen and then detect different items. That means you run the script to read all items around then start detecting different items.
|Only Registered members can see download links. | Click here to buy subscription or here to register.


If you want to detect specific items only then use this:
local ITEMS = { 1234, 4321 }

if connected() then
    local tiles = gettiles()
    for _, tile in ipairs(tiles) do
        for __, item in ipairs(tile.items) do
            if table.find(ITEMS, item.id) ~= nil then
                playsound('default')
                flashclient()
                printerror(item.id .. ' found on ' .. tile.posx .. ', ' .. tile.posy .. ', ' .. tile.posz)
                pausebot(true)
                break
            end
        end
    end
end

If you want to GUESS if there are items trapping path then use gettrappedsqms like below:
gettrappedsqms(number X, number Y, boolean screenOnly) [table]: Try to GUESS whats sqms that may be trapped the way to reach the X, Y location.

if connected() and cavebotstatus() then
    local wpt = waypoint()
    if wpt ~= nil and wpt.posx > 0 then
        local trappedSqms = gettrappedsqms()
        if trappedSqms ~= nil then
            for _, sqm in ipairs(trappedSqms) do
                playsound('default')
                flashclient()
                printerror('Item trapping path on ' .. sqm.posx .. ', ' .. sqm.posy .. ', ' .. sqm.posz)
                pausebot(true)
                break
            end
        end
    end
end
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016