diff --git a/Aux-Addon.toc b/Aux-Addon.toc index 9bf83c1..efa857b 100644 --- a/Aux-Addon.toc +++ b/Aux-Addon.toc @@ -5,20 +5,18 @@ ## SavedVariables: auxSellEntries core.xml control.xml +util.lua sell.xml buy.xml -scan.xml -stack.xml -post.xml +scan.lua +stack.lua +post.lua info.xml -util.lua +completion.xml +list.xml options.xml about.xml -list.xml - -completion.xml - diff --git a/post.lua b/post.lua index c7fe8f0..b24df92 100644 --- a/post.lua +++ b/post.lua @@ -32,14 +32,14 @@ function process() if stack_slot then post_auction(stack_slot, function() state.posted = state.posted + 1 - process() + return process() end) else - stop() + return stop() end end) else - stop() + return stop() end end @@ -97,6 +97,6 @@ function Aux.post.start(name, stack_size, duration, bid, buyout, count, callback callback = callback, } - process() + return process() end) end \ No newline at end of file diff --git a/stack.lua b/stack.lua index 3c649c3..257b155 100644 --- a/stack.lua +++ b/stack.lua @@ -176,7 +176,8 @@ end function Aux.stack.start(name, size, callback) Aux.control.on_next_update(function() - stop() + stop() + local slots = item_slots(name) local target_slot = slots() @@ -188,12 +189,12 @@ function Aux.stack.start(name, size, callback) } if not target_slot then - stop() + return stop() elseif item_charges(target_slot) then state.target_slot = find_charges_item_slot(name, size) - stop() + return stop() + else + return process() end - - process() end) end \ No newline at end of file