Posts: 85
Threads: 19
Joined: Nov 2020
Reputation:
0
I use that script, I’d like to be able to set a bunch of waypoint actions to check how many left, then go to a new waypoint.
A flashing client is useless if I’m knee deep in a dream.
Posts: 85
Threads: 19
Joined: Nov 2020
Reputation:
0
Hey man,
This is really glitchy. it keeps randomly resizing things and closing etc etc.
Can you spot why its trying to open things in random order or not opening them at all?
Cheers
if windowcount() < 4 then
setsettings('Looter/Enabled', false)
setsettings('Cavebot/Enabled', false)
closewindows()
wait(500, 800)
local bp_item = back()
if bp_item.id > 0 then
local WIN_COUNT = windowcount()
while WIN_COUNT == 0 and bp_item.id > 0 do
openitem(bp_item.id, 'back')
wait(1000, 1500)
bp_item = back()
WIN_COUNT = windowcount()
end
if WIN_COUNT > 0 then
resizewindows(1)
wait(500, 800)
local containers = getcontainers()
for _, cont in ipairs(containers) do
for __, item in ipairs(cont.items) do
if itemhasflags(item.id, 4) then
for i = 1, 3 do
if windowcount() == WIN_COUNT then
openitemslot(item.index, cont.index, true)
wait(500, 1000)
resizewindows(1)
resizewindows(1)
wait(500, 800)
else
break
end
end
WIN_COUNT = windowcount()
end
end
end
setsettings('Looter/Enabled', true)
setsettings('Cavebot/Enabled', true)
end
end
end