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
Stop cavebot and logout with x runes left
#1
Hello, I need some persistent or scrip when i have 10 gfb for example kill all monster on screen wait pz and logout

Regards
Reply

#2
local Backpack = 'green backpack' -- specific container to check for runes.
local Rune = 'great fireball rune' -- rune to check.

local OPEN_BACKPACK = true -- open next backpack for more runes?

local PLAY_ALERT = true -- Play alert?
local LOGOUT_COUNT = 10 -- Min. count to logout.

--[[ DON'T EDIT BELOW THIS LINE --]]
--[[ DON'T EDIT BELOW THIS LINE --]]
--[[ DON'T EDIT BELOW THIS LINE --]]

if connected() then
    Rune = itemid(Rune)

    local Containers = getcontainers()

    for i = 1, #Containers do
        local cont = Containers[i]
        local ContainerSlot = -1
        local RunesCount = 0

        if (cont.name:lower() == Backpack:lower() or tostring(Backpack) == tostring(cont.index)) then
            for j = 1, #cont.items do
                local item = cont.items[j]
                if itemhasflags(item.id, 4) then
                    ContainerSlot = item.index
                elseif item.id == Rune then
                    RunesCount = RunesCount + item.count
                end
            end

            if OPEN_BACKPACK and RunesCount == 0 and ContainerSlot >= 0 then
                openitemslot(ContainerSlot, cont.index, false)
                wait(1000)
            elseif RunesCount <= LOGOUT_COUNT and ContainerSlot == -1 then
                setsettings('Cavebot/Enabled', false)
                if PLAY_ALERT then
                     playsound('default')
                     flashclient()
                end
                while battlesigned() do
                     wait(800, 1200)
                end
                logout()        
            end
        end
    end
end
Reply

#3
Thanks
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016