It's pretty simple, the while true statement makes the code inside it loop infinitely. I'm getting dumber typing this post but oh well. And no it doesn't set a 4th filter, you will need to traverse each item in the list and match it with desired stat.
How:
Code:while true do local desired = 50 haFilterStat(1,'magic find', 50) haFilterType('amulet') haFilterBuyout(5000, true) if haSearch() then while haListNext() do if haItemStat('dexterity').value1>desired then haBuyout() end end haFilterStat(1,'gold find', 50) haFilterType('ring') haFilterBuyout(6000, true) if haSearch() then while haListNext() do if haItemStat('dexterity').value1>desired then haBuyout() end end end
Last edited by siklon; 08-15-2012 at 06:13 PM.
Last edited by bigpuffs; 08-15-2012 at 06:25 PM.
i have made a LUA to check for undercut legendarys, but i want it to check classes
i can only get it to check on my selected class, what code should i put in for it to check for monk, barb, wizard, demon hunter, etc
cause i would like to search for other undercut auctions other then my own selection before i search
i tryed like useing code like
haFilterType('Monk') but it wont select it?
other then that it searches great and i set up random wait timer etc and it buys and everything else
haFilterChar('Monk')![]()
local desired = 50
haListSelect(1)
if haItemStat('dexterity').value1>desired then
haBuyout()
if i add this code will it act as a 4th value and search the items that pop up? for example above = 50dex (4th value)?
ok i worked this one out myself! this bot is fuking awesome! is there any way it can search through pages though and check 4th stat??
Last edited by bigpuffs; 08-15-2012 at 09:31 PM.
i guess you can look at it that way.... plus values not found in preferred stats, like min/max dmg
local desired = 110
haFilterStat(1,'magic find', 10)
haFilterStat(2,'vitality', 10)
haFilterStat(3,'strength', 10)
haFilterType('amulet')
haFilterBuyout(222500, true)
if haSearch() then
haListSelect(1)
if haItemStat('intelligence').value1>desired then
haBuyout()
end
end
tested this as i saw one ammy with 100int on first page and bot didnt select
edit: have worked out that it will select from haListSelect(1) and if haListSelect(1, 2, 3 etc) it will search all on first page. wondering how to make it search second etc too?
Last edited by bigpuffs; 08-15-2012 at 09:55 PM.
youre asking for over 110 int lol. and use haListNext() (see example LogResults.lua) to scan whole list easily.
wow your smart ive got it worked now.. godly ty
just got owned with this rofl if haItemStat('critical hit chance') lost like 10m ^^ it was buying out helms with skill ability crit chance...
Last edited by bigpuffs; 08-15-2012 at 11:00 PM.
oops... sry bout that. i think i need to add an "exact" option to that
or better yet, match from beginning... not substring
Last edited by ChuiChu; 08-16-2012 at 12:01 AM.
Excellent work on this bot
But i cant get relogin to work, it does relog but it will not enter the correct lvl, rarity and item type, but buyout is correctly set.
I have tried to put the login function many places, no sucess.
And when it finds an item it hovers over it a fraction of a second before clicking buyout? is it possible to decrease this time? I've missed alot of items due to this, it seems like the item stats has time to show up before it clicks buyout, even the stats on my char pops up besides it(It still clicks fast but there seem to be a few 100ms delay). This is even on instant speed with 0ms delay and imput limit after 1>m,
ya, it doesnt resume state (yet). for now place it right before where you set all your filters so it sets them all again when it gets back into the AH.
i just improved haBuyout to avoid waiting a few unnecessary frames so youll see a slight improvement there.
beyond that its as fast as it can be relative to your framerate. ensure background FPS isnt limited in graphics settings.
Last edited by ChuiChu; 08-16-2012 at 04:18 PM.