09-17-2021, 04:37 PM
Depot runemaking refill
This script check if there's no blank runes left then disabled runemaker, walk around depot, reach and open locker, drop backpacks inside locker, open depot chest, pickup more backpacks, open and resize them, finally enable runemaker again.
It will move rune backpacks inside LOCKER and will pickup blank rune bps from DEPOT CHEST.
You can use this script with Runemaker->Refill Settings, like On danger, etc. but you should not use those options for blank runes. Because, ofc, this script will do that job.
MAIN_BP = Container window name or index. You must not have any blank runes here. I recommend you to use DIFFERENT backpack type for runes and main bp. So if you are using red backpack as main backpack then use gold bp, blue bp or any other kind for blank runes.
BP_COUNT = How many blank backpacks should it carry?
DEPOT_LOCATION = Depot location where you can see locker, etc. like in middle of depot area... It should NOT be LOCKER location!
keywords: runemaker depot, runemaking depot, rune dp, rune depot, depot runemaking, depot refill, refill, runemaker depot refill, runemaker dp refill
This script check if there's no blank runes left then disabled runemaker, walk around depot, reach and open locker, drop backpacks inside locker, open depot chest, pickup more backpacks, open and resize them, finally enable runemaker again.
It will move rune backpacks inside LOCKER and will pickup blank rune bps from DEPOT CHEST.
You can use this script with Runemaker->Refill Settings, like On danger, etc. but you should not use those options for blank runes. Because, ofc, this script will do that job.
MAIN_BP = Container window name or index. You must not have any blank runes here. I recommend you to use DIFFERENT backpack type for runes and main bp. So if you are using red backpack as main backpack then use gold bp, blue bp or any other kind for blank runes.
BP_COUNT = How many blank backpacks should it carry?
DEPOT_LOCATION = Depot location where you can see locker, etc. like in middle of depot area... It should NOT be LOCKER location!
local MAIN_BP = 'red backpack' -- Container window name or index. You must not have any blank runes here. I recommend you to use DIFFERENT backpack type for runes and main bp. So if you are using red backpack as main backpack then use gold bp, blue bp or any other kind for blank runes.
local BP_COUNT = 3 -- How many blank backpacks should it carry?
local DEPOT_LOCATION = { X = 12345, Y = 12345, Z = 6 } -- Depot location where you can see locker, etc. like in middle of depot area... It should NOT be LOCKER location!
if runemaker_isondanger() == false and runemaker_isrefilling() == false and itemcount('blank rune') == 0 then
setsettings('Runemaker/Enabled', false)
reachlocation(DEPOT_LOCATION.X, DEPOT_LOCATION.Y, DEPOT_LOCATION.Z, false)
wait(800, 1200)
reachgrounditem('locker')
wait(800, 1200)
openitem('locker')
wait(800, 1200)
local container = getcontainer(MAIN_BP)
for __, item in ipairs(container.items) do
if itemhasflags(item.id, 4) then
moveitems(item.id, 'locker', container.index, 100)
wait(500, 800)
end
end
openitem('depot chest', 'locker')
wait(800, 1200)
local count = 0
local depotChest = getcontainer('depot chest')
for __, item in ipairs(depotChest.items) do
if itemhasflags(item.id, 4) then
moveitems(item.id, container.index, 'depot chest', 100)
wait(500, 800)
count = count + 1
if count == BP_COUNT then
break
end
end
end
if count == 0 then
playsound('default')
flashclient()
printerror('Could not find any backpack on depot chest.')
wait(10000, 30000)
else
container = getcontainer(MAIN_BP)
for __, item in ipairs(container.items) do
if itemhasflags(item.id, 4) then
openitemslot(item.index, container.index, true)
wait(800, 1000)
resizewindows()
wait(300, 500)
end
end
setsettings('Runemaker/Enabled', true)
end
end
keywords: runemaker depot, runemaking depot, rune dp, rune depot, depot runemaking, depot refill, refill, runemaker depot refill, runemaker dp refill