Here is a simple tutorial script to get you started with Happy Auction!
All you have to do is replace the code inside "SnipeBuyout" (for easy installation) with the following code:
Code:
xSetMouseLock(false)
SLEEPTIME = 2 -- Time to sleep between searches (in seconds)
ITEM_NAME = "Mempo of Twilight" -- Put desired item name here
ITEM_INDEX = 1 -- Where in search suggestion list is the item? This is to prevent buying legacy items.
ITEM_BUYOUT = 10 -- Buyout price goes here. (in millions)
--Add stats below this line. A fourth stat would be xSetStat(4, 'some stat', value). Remove a line if you need less stats.
xSetStat(1, 'dexterity', 170)
xSetStat(2, 'life', 12)
xSetStat(3, 'critical hit chance', 3)
--### DON'T CHANGE ANYTHING BELOW THIS LINE ###--
xSetUnique(ITEM_NAME, ITEM_INDEX)
-- Roll item selection
quality = "re"
goodItems = {"L","L","O","R"}
goldThreshold = xGetGold()
type = "ra"
legendary = (type .. quality)
counter = 0
if goodItems[1] == "" then
itemName = ITEM_NAME
elseif goodItems[1] == "L" then
goodItems[5] = "T"
end
while true do
xSleep(SLEEPTIME * 1000)
xSetBuyout((ITEM_BUYOUT * 1000000),true)
xSearch()
counter = counter + 1
while haListIterate() do
if xGetSearchItem(1) then
haBuyout()
end
end
if counter == (#goodItems) then
xSetBuyout(goldThreshold)
xSetRarity(legendary)
xClearAllStats()
xClearUnique()
xSearch()
while haListIterate() do
if haItem().buyout < (goldThreshold/2) then
haSortBuyout()
end
if xGetSearchItem(1) then
haBuyout()
end
end
goodItems[6] = item.name
end
end
You can change it to work for all kinds of items