Posts: 17
Threads: 3
Joined: Oct 2020
Reputation:
0
hello, is there a script that how much you have 100 bolt in the red backpack stop running cave boting and logout
Thank you so much
Posts: 2,759
Threads: 445
Joined: Jul 2018
Reputation:
75
Hello.
Yes, there are many supply checker scripts... Just use search.
Posts: 17
Threads: 3
Joined: Oct 2020
Reputation:
0
I have found this one that was runes and I have modified it but apparently it is wrong because I am logged in, it does not count the bolts that are in the red backpack, I would like it to count and when there are, for example, 50 bolts left, it will log in.
thank you and sorry for the inconvenience
local Backpack = 'red backpack' -- specific container to check for runes.
local Bolt = 'bolt' -- rune to check.
local OPEN_BACKPACK = false -- open next backpack for more runes?
local PLAY_ALERT = true -- Play alert?
local LOGOUT_COUNT = 66 -- 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
Posts: 2,759
Threads: 445
Joined: Jul 2018
Reputation:
75
You did bad changes on script
Posts: 17
Threads: 3
Joined: Oct 2020
Reputation:
0
ok but can't you correct me or give me the correct one?
Posts: 2,759
Threads: 445
Joined: Jul 2018
Reputation:
75
05-18-2021, 02:29 PM
(This post was last modified: 05-18-2021, 02:31 PM by Arkilys.)
Well, I already did, because I published the script which is working. You did bad changes.
There only few variables that can/should be edited and a very clear warning: "DON'T EDIT BELOW THIS LINE". If you are doing changes after that line, i can't help you.
Posts: 17
Threads: 3
Joined: Oct 2020
Reputation:
0
send me one that logs in when he has 100 bolts left in the red backpack please
Posts: 2,759
Threads: 445
Joined: Jul 2018
Reputation:
75
05-18-2021, 05:40 PM
(This post was last modified: 05-18-2021, 05:49 PM by Arkilys.)
Unfortunately no, you can find the script on forums, use search.
However, you can use the script that you posted (the original) applying changes only on variables , respecting the warning to don’t edit things below the warning.