Originally Posted by
PoopMonstar
So, I've read through the entire thread, and also the readme file included with the bot, and I've been having some difficulty. I've also been reading a bit about .lua, but am kind of lost in applying it to the bot.
The primary search criteria do work (character, slot, item type, item rarity), but the secondary searches (haFilterStat(1, 'Has Sockets', 3) ) and also the buyout amount do not work (haFilterBuyout(8000000) ). The bot will set the socket amount to 3 in the search window very quickly, but then erase the criterion before performing the search. Similarly, the buyout filter does not get set at 8 mil, as I was hoping it would.
I'm not sure if I am perhaps not entering in the correct order of codes?
I am a complete noob when it comes to coding/sciprintg, and I apologize for asking this here, but after two days of frustration, I thought I might check in case anyone is generous enough to give me a pointer or two.
Here is a script I have been trying to make work:
haFilterPrimary('Armor')
haFilterSecondary('Pants')
haFilterRarity('Legendary')
haFilterBuyout(8000000)
haFilterLevel(60, -1)
haFilterStat(1, 'Has Sockets', 3)
if haSearch() then
-- for each search item in search list
while haListIterate() do
-- get item information
local item = haItem()
if item.name == 'IMMORTAL KING\'S ETERNAL REIGN' then
haBuyout()
end
end
end
haFilterStatClear()