openmarket()
foreach lootingitem i "abc" do
local PriceStack = i.sellprice - 10 --- price - 10 gp for stackables
local PriceNon = i.sellprice - 100 --- price - 100 gp for nonstackables
if itemproperty(i.name, ITEM_STACKABLE) then
setlifetime(50000)
sellitemsmarket(i.name, PriceStack, 999, true)
--print("Name Stack: ".. i.name .." Price "..PriceStack)
else
setlifetime(50000)
sellitemsmarket(i.name, PriceNon, 999, true)
--print("Name NonStack: ".. i.name .." Price "..PriceNon)
end
end
closemarket()
setsetting('Settings/FocusPolicy', 'Don\'t auto-focus')
setsetting('Settings/StuckCursorPolicy', 'Release Instantly')
setsetting('Settings/OpenMenuPolicy', 'Confirm if cavebotting')
setsetting('Cavebot/Enabled', 'no')
With this script it will read EVERYSINGLE ITEM ON "X" CATEGORY AND SELL IT , stop fucking using arrays.
How can you change the price ?
On your own Loot List