From e70470b91a2f3a361c71e050530424c63911314d Mon Sep 17 00:00:00 2001 From: avirar Date: Fri, 25 Jul 2025 15:53:59 +1000 Subject: [PATCH 1/6] Disable Undercutting --- tabs/post/core.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tabs/post/core.lua b/tabs/post/core.lua index b2f8897..23d5906 100644 --- a/tabs/post/core.lua +++ b/tabs/post/core.lua @@ -390,7 +390,7 @@ end function undercut(record, stack_size, stack) local price = ceil(record.unit_price * (stack and record.stack_size or stack_size)) if not record.own then - price = price - 1 + --price = price - 1 end return price / stack_size end From 1d863d0db9609b8394febf4ca9c41d3d06913db8 Mon Sep 17 00:00:00 2001 From: avirar Date: Fri, 25 Jul 2025 15:56:58 +1000 Subject: [PATCH 2/6] Create undercut activation setting --- aux-addon.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/aux-addon.lua b/aux-addon.lua index 2ae6aa2..a63dae2 100644 --- a/aux-addon.lua +++ b/aux-addon.lua @@ -67,6 +67,7 @@ function handle.LOAD() post_bid = false, post_duration = post.DURATION_24, post_stack = true, + undercut = true, items = {}, item_ids = {}, auctionable_items = {}, From 86a612951ad3476a7d7e69400cfdcc3e793db9c6 Mon Sep 17 00:00:00 2001 From: avirar Date: Fri, 25 Jul 2025 15:59:49 +1000 Subject: [PATCH 3/6] Added uc slash command --- core/slash.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/slash.lua b/core/slash.lua index 83a63d7..656177a 100644 --- a/core/slash.lua +++ b/core/slash.lua @@ -22,6 +22,9 @@ function SlashCmdList.AUX(command) local scale = tonumber(arguments[2]) aux.frame:SetScale(scale) aux.account_data.scale = scale + elseif arguments[1] == 'uc' then + aux.account_data.undercut = not aux.account_data.undercut + aux.print('undercutting ' .. status(aux.account_data.undercut)) elseif arguments[1] == 'ignore' and arguments[2] == 'owner' then aux.account_data.ignore_owner = not aux.account_data.ignore_owner aux.print('ignore owner ' .. status(aux.account_data.ignore_owner)) @@ -94,4 +97,4 @@ function SlashCmdList.AUX(command) aux.color[aux.account_data.theme == 'modern' and 'green' or 'red']('modern') .. ']') aux.print('- show hidden [' .. status(aux.account_data.showhidden) .. ']') end -end \ No newline at end of file +end From 9387dc1f6fa0589207aa406bf58e108276161e6b Mon Sep 17 00:00:00 2001 From: avirar Date: Fri, 25 Jul 2025 16:01:26 +1000 Subject: [PATCH 4/6] List uc in help --- core/slash.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/core/slash.lua b/core/slash.lua index 656177a..e93eb9d 100644 --- a/core/slash.lua +++ b/core/slash.lua @@ -79,6 +79,7 @@ function SlashCmdList.AUX(command) else aux.print('Usage:') aux.print('- scale [' .. aux.color.blue(aux.account_data.scale) .. ']') + aux.print('- uc [' .. status(aux.account_data.undercut) .. ']') aux.print('- ignore owner [' .. status(aux.account_data.ignore_owner) .. ']') aux.print('- post bid [' .. status(aux.account_data.post_bid) .. ']') aux.print('- post duration [' .. aux.color.blue(aux.account_data.post_duration / 60 * 3 .. 'h') .. ']') From 3302c1e0599b8a827da3ec1470c90889648edae5 Mon Sep 17 00:00:00 2001 From: avirar Date: Fri, 25 Jul 2025 16:02:26 +1000 Subject: [PATCH 5/6] Check uc config option when undercutting --- tabs/post/core.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tabs/post/core.lua b/tabs/post/core.lua index 23d5906..b6b6bf9 100644 --- a/tabs/post/core.lua +++ b/tabs/post/core.lua @@ -390,7 +390,9 @@ end function undercut(record, stack_size, stack) local price = ceil(record.unit_price * (stack and record.stack_size or stack_size)) if not record.own then - --price = price - 1 + if aux.account_data.undercut then + price = price - 1 + end end return price / stack_size end From 770fd98a35543bc6acd7355c6d7c6dda93e6661e Mon Sep 17 00:00:00 2001 From: avirar Date: Fri, 25 Jul 2025 16:10:29 +1000 Subject: [PATCH 6/6] Moved uc print out --- core/slash.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/slash.lua b/core/slash.lua index e93eb9d..cb3978c 100644 --- a/core/slash.lua +++ b/core/slash.lua @@ -79,8 +79,8 @@ function SlashCmdList.AUX(command) else aux.print('Usage:') aux.print('- scale [' .. aux.color.blue(aux.account_data.scale) .. ']') - aux.print('- uc [' .. status(aux.account_data.undercut) .. ']') aux.print('- ignore owner [' .. status(aux.account_data.ignore_owner) .. ']') + aux.print('- uc [' .. status(aux.account_data.undercut) .. ']') aux.print('- post bid [' .. status(aux.account_data.post_bid) .. ']') aux.print('- post duration [' .. aux.color.blue(aux.account_data.post_duration / 60 * 3 .. 'h') .. ']') aux.print('- post stack [' .. status(aux.account_data.post_stack) .. ']')