newLoot
newLoot: (Manager, LootConfig) -> LootManagerHandleA looter for config. It reads no game state, and a config it cannot use raises here.
local loot = manager:newLoot({
priority = { { ids = { ItemID.ABYSSAL_WHIP } } },
lowValue = { { ids = { ItemID.COINS } } },
highValueStackThreshold = 50000,
drop = { ItemID.LOBSTER },
})
function plugin:onGameTick()
local status, reason = loot:run()
if status == "idle" then
-- nothing to take: `reason` is a `LootWaitReason` when it deferred, and `nil`
-- when there is no loot. Get on with the fight.
end
-- "running": it acted, or is waiting for its last click to land
endconfig- What to pick up.