now using unit price in the post tab, allowing decimals to still be able to undercut by 1c

This commit is contained in:
Manuel Simon Hirsig
2016-02-06 17:23:41 +01:00
parent 17e7b840c3
commit 76fca97a40
6 changed files with 35 additions and 32 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ function private.post_auction(slot, k)
ClickAuctionSellItemButton()
ClearCursor()
local stack_size = Aux.info.container_item(slot.bag, slot.bag_slot).aux_quantity
StartAuction(max(1, state.unit_start_price * stack_size), state.unit_buyout_price * stack_size, state.duration)
StartAuction(ceil(state.unit_start_price * stack_size), ceil(state.unit_buyout_price * stack_size), state.duration)
controller().wait(function() return not GetContainerItemInfo(slot.bag, slot.bag_slot) end, function()
return k(stack_size)
end)