From dcb644e65cff2d734c47198dedc9621fdf1cf5f5 Mon Sep 17 00:00:00 2001 From: Simon Hirsig Date: Wed, 14 Oct 2015 11:57:32 +0200 Subject: [PATCH] now searching two pages instead of one for buying --- buy.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/buy.lua b/buy.lua index 3797226..021ff24 100644 --- a/buy.lua +++ b/buy.lua @@ -186,7 +186,7 @@ function AuxBuyEntry_OnClick(entry_index) PlaySound("igMainMenuOptionCheckBoxOn") local found - local order_key = Aux.auction_key(entry.tooltip, entry.stack_size, amount) + local order_key = Aux.auction_key(entry.tooltip, entry.stack_size, amount) Aux.scan.start{ query = search_query, @@ -260,6 +260,11 @@ function AuxBuyEntry_OnClick(entry_index) AuxBuySearchButton:Enable() end end, + next_page = function(page, total_pages) + if not page or page == entry.page then + return entry.page - 1 + end + end, } end