All pastes #2108899 Raw Edit

Stuff

public lua v1 · immutable
#2108899 ·published 2012-02-02 01:08 UTC
rendered paste body
		local resetBuyout = item.reset == "custom" and item.resetPrice or item[item.reset]		if resetBuyout and abs(resetBuyout - buyoutPerItem) < quantity then -- use the quantity as a buffer to account for rounding			-- we are at the reset price so don't cancel			return false, "atReset"		else			-- we should cancel to repost this item at the reset price			return cancelData, "reset"		end