What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

[Request] AuctionRequestParams sorting

Status
Not open for further replies.

giurap

New Member
Joined
Oct 21, 2014
Messages
6
Reaction score
0
Atm AuctionRequestParams scans automatically all the pages before passing the result to the app.. this is very slow (especially when you have many items), i know the purpose of this was due to the sorting; but the AH does have already a sorting function, that you can press without changing all the pages (you can just have 1 page), couldn't be used by ArcheBuddy as well?
 
vb.net code to get first page only
Dim prepare As AuctionRequestParams = New AuctionRequestParams(AuctionCategory.Off, 0, 0, ItemName, iMatch, ItemGrade.Common, AuctionSortType.Bet, ArcheBuddy.Bot.Classes.SortOrder.Asc)
Dim iList As List(Of AuctionItem) = host.getAuctionBuyList(prepare, 9)

c# code to bring first page only
AuctionRequestParams prepare = new AuctionRequestParams(AuctionCategory.Off, 0, 0, ItemName, iMatch, ItemGrade.Common, AuctionSortType.Bet, ArcheBuddy.Bot.Classes.SortOrder.Asc);
List<AuctionItem> iList = host.getAuctionBuyList(prepare, 9);
 
use ( AuctionSortType.Bet ) , ( AuctionSortType.Time ) to sort by time or price to bring higher or lower use ( ArcheBuddy.Bot.Classes.SortOrder.Asc ) or other options its up to you
 
The function you have posted (that's the same i wrote in the first post) will automatically scan all the entries (the pages) because the sorting function (time/bet) is internal (not the one made server side).
In other words it won't scan just the first page.. you can check this by opening the auction window while running the script.
 
The function you have posted (that's the same i wrote in the first post) will automatically scan all the entries (the pages) because the sorting function (time/bet) is internal (not the one made server side).
In other words it won't scan just the first page.. you can check this by opening the auction window while running the script.
not true it will use sort command because its supported by game and ( 9 ) is the max items in 1 page so it should take 1 sec to list all 9 items

so if you use 10 that mean 2 pages its better to use 9 its 1 page ^_^
 
Thank you, i will try again as soon the servers will come back online.
 
Status
Not open for further replies.
Back
Top