Posts: 3
Threads: 1
Joined: Jan 2021
Reputation:
0
01-19-2021, 09:29 PM
if x mana fluid left then log out please
it would be very useful
thanks
Posts: 3
Threads: 1
Joined: Jan 2021
Reputation:
0
01-19-2021, 10:25 PM
(This post was last modified: 01-19-2021, 10:25 PM by Marcelzyx.)
did that already and found only to play alert if there is x mana fluid left,or check uh then log out
tbh i am not into scripting unfortunately mate
Posts: 2,390
Threads: 409
Joined: Jul 2018
Reputation:
61
Hello.
If you already found to logout when no uhs then just change it.
Posts: 3
Threads: 1
Joined: Jan 2021
Reputation:
0
did it like this and it doesn;t work. i have full bp of mana fluids and it is disabling the cavebot
-
local Backpack = 'Purple backpack' -- specific container to check for runes.
local Rune = 'vial of manafluid' -- rune to check.
local OPEN_BACKPACK = false -- open next backpack for more runes?
local COUNT = 3 -- Min. count to play alert.
--[[ 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 <= COUNT and ContainerSlot == -1 then
setsettings('Cavebot/Enabled', false)
logout()
wait(800)
end
end
end
end