Found some bug - this item was bought with haItemStat('Critical Hit Chance').value1
![]()
Found some bug - this item was bought with haItemStat('Critical Hit Chance').value1
![]()
I guess you can write something like && !haItemStat('Increases Critical Hit Chance').value1 for now, not sure probably something like that
is it intended that bot clears user.log every start?
It gives me an error where I compare boolean to an number. What exactly am I doing wrong? thanksCode:-- get user buyout local buyout = haFilterBuyout(2000000) -- get user DPS using "Legendary or Set Item" input box local dps = tonumber(haFilterUnique()) or 0 -- check input if buyout <= 0 then haAlert('Set buyout!') elseif dps <= 0 then haAlert('Set minimum DPS!\nuse "Legendary or Set Item" input box') else -- clear unique input so search can work haFilterUnique('') while true do -- update buyout with randomize haFilterBuyout(Buyout, true) -- search if haSearch() then -- select first item in list haListSelect(1) -- get item dps local item = haItem() -- if item dps higher than requested dps buy! if item.dps >= dps then haBuyout() end end -- example of random sleep (between 0 and 3 seconds) haSleep(0, 3000) end end
its already included. haSleep(0, 3000) is random between 0 and 3 sec
if youre using haFilterStat() it does a substring search and may grab stats like critical hit chance out of class skills like that screen shot shown above. looking into fix
ill add acct gold to todo list. and make it so you can specify the drop down row you select with uniques.
ya it searched and found the critical hit chance in that last stat. ill look into this
yes... i may make it just increment logs in future.
haFilterBuyout(2000000) sets a buyout and returns boolean (if its successful or not)
haFilterBuyout() gets the buyout value in the buyout input box
Last edited by ChuiChu; 08-27-2012 at 02:12 PM.
not possible with haFilterStat() at the moment, im figuring it out now....
the alternative now is with stat.text (in haItem().stats array) which contains the full stat text. but thats a bit of a hassle
Last edited by ChuiChu; 08-27-2012 at 02:37 PM.
Hi, thanks for this bot and for sharing it with us. I still need to look better into it but I tried the "test1" as I assume is like the gem miner. I updated the price on the gems but I just have one question and I assume it's kind of a stupid one... on the Threshold it is the profit you make by buying and selling that item right? it was 1.3 and I assumed it was 1.3 millions.
I changed it to 0.3 since I don't have much money and need to start low and it bought me a 700k helm with a 235k gem.
What am I doing wrong? :s
keep that over 1... the bot multiplies that value by the total gem value in an item and if thats higher than the buyout price... then it will buy that item.
anyway the gem bot is a bit crippled now due to 1.0.4 change not searching gem stats.
Last edited by ChuiChu; 08-27-2012 at 02:45 PM.
older versions haItemStat('All Resistance').value1 works fine
new version - not working...
what else change undocumented?
its the text found in the item tooltip now... so it would be "resistance to all elements". this was part of the filter rework in 0.9.12... thought i noted in list of changes :confused:
Last edited by ChuiChu; 08-27-2012 at 03:14 PM.
Chui, running multiple clients I think sometimes a stat or number is missed, is there any haFilterSet boolean or something similar like the buy out, so I can do a check
sure i can expose that... i already have it internally but not in script.
if you mouse over the item its whatever text you see there. its case insensitive and is a substring search. so "tO all ELEment" would work too.
and with attack speed it would be "increases attack speed" if weapons search or "attack speed increased" if armor... or just use "attack speed" to handle both.
Last edited by ChuiChu; 08-27-2012 at 03:38 PM.