01-17-2021, 11:36 PM
Howdy, i am chasing a bit of help with a couple of scripts that i cant get working.
You helped me get the rune check and if no runes go to WPT 'Leave hunt' but i cannot get it working with Mana Fluid. Could you please help. Below is what i have so far.
I am Also trying to sort out some issues with the BP reopen after relog. Currently it is super glitchy. opens the same bp twice, doesnt resize. Moves things randomly and closes accidentally. Anything you can help with to make it smoother? as without it, i am likely to die very quickly. Below is what i have so far
Thanks
You helped me get the rune check and if no runes go to WPT 'Leave hunt' but i cannot get it working with Mana Fluid. Could you please help. Below is what i have so far.
local BACKPACK_ID = 2868 -- specific container to check for runes.
local VIAL_ID = 2874 -- item id to check.
local FLUID_ID = 7 -- item id to check.
local OPEN_BACKPACK = true -- open next backpack for more runes?
local PLAY_ALERT = True -- Play alert on MinCount?
local ALERT_COUNT = 5 -- 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
local Containers = getcontainers()
for i = 1, #Containers do
local cont = Containers[i]
local ContainerSlot = -1
local RunesCount = 0
if cont.id == BACKPACK_ID then
for j = 1, #cont.items do
local item = cont.items[j]
if itemhasflags(item.id, 4) then
ContainerSlot = item.index
elseif item.id == VIAL_ID and item.count == FLUID_ID then
RunesCount = RunesCount + 1
end
end
if RunesCount <= COUNT and ContainerSlot == -1 then
gotolabel(WAYPOINT)
break
end
end
end
endI am Also trying to sort out some issues with the BP reopen after relog. Currently it is super glitchy. opens the same bp twice, doesnt resize. Moves things randomly and closes accidentally. Anything you can help with to make it smoother? as without it, i am likely to die very quickly. Below is what i have so far
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(200, 500)
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(200, 500)
else
break
end
end
WIN_COUNT = windowcount()
end
end
end
setsettings('Looter/Enabled', true)
setsettings('Cavebot/Enabled', true)
end
end
endThanks

