function sellItem(item)
if item.BaseItem == "utp" and item.Quality == Superior then --Sup Archon Plate for runes
return false
elseif item.BaseItem == "uui" and item.Quality == Superior then --Sup Dusk Shroud for runes
return false
elseif item.BaseItem == "ult" and item.Quality == Normal and item.Flags.Ethereal == 1 and item.Flags.Socketed == 0 then --Norm Eth Hellforge Plate for glitching
return false
elseif item.BaseItem == "uth" and item.Quality == Normal and item.Flags.Ethereal == 1 and item.Flags.Socketed == 0 then --Norm Eth Laquered Plate for glitching
return false
elseif item.BaseItem == "uul" and item.Quality == Normal and item.Flags.Ethereal == 1 and item.Flags.Socketed == 0 then --Norm Eth Shadow Plate for glitching
return false
elseif item.BaseItem == "uar" and item.Quality == Normal and item.Flags.Ethereal == 1 and item.Flags.Socketed == 0 then --Norm Eth Sacred Armor for glitching
return false
elseif (item.BaseItem == "uar" or item.BaseItem == "ucl" or item.BaseItem == "uea" or item.BaseItem == "uhn" or item.BaseItem == "ula" or item.BaseItem == "uld" or item.BaseItem == "ult" or item.BaseItem == "ung" or item.BaseItem == "upl" or item.BaseItem == "urs" or item.BaseItem == "uth" or item.BaseItem == "utp" or item.BaseItem == "utu" or item.BaseItem == "uui" or item.BaseItem == "uul") and (item.Quality == Inferior or item.Quality == Normal or item.Quality == Superior or item.Quality == Magic or item.Quality == Rare) then --All Elite Armors (they are to be sold)
return true
elseif item.Flags.Identified == 1 and item.Quality == Unique and (item.BaseItem == "rin" or item.BaseItem == "amu") and not (item.ItemAffix[0] == 122 or item.ItemAffix[0] == 275 or item.ItemAffix[0] == 268 or item.ItemAffix[0] == 319 or item.ItemAffix[0] == 277 or item.ItemAffix[0] == 270 or item.ItemAffix[0] == 272 or item.ItemAffix[0] == 302 or item.ItemAffix[0] == 375) then --Only keeps good rings and amulets
return true
elseif item.Flags.Identified == 1 and item.Quality == Magic and item.BaseItem == "jew" and not ((item.ItemAffix[0] == 81 or item.ItemAffix[0] == 198 or item.ItemAffix[0] == 361 or item.ItemAffix[0] == 365 or item.ItemAffix[0] == 369 or item.ItemAffix[0] == 374 or item.ItemAffix[0] == 376 or item.ItemAffix[0] == 325 or item.ItemAffix[0] == 330 or item.ItemAffix[0] == 335 or item.ItemAffix[0] == 337) and (item.ItemAffix[1] == 171 or item.ItemAffix[1] == 268)) then --Only keeps good jewels
return true
elseif item.Flags.Identified == 1 and item.Quality == Magic and item.BaseItem == "cm1" and not ((item.ItemAffix[0] ~= 0 or item.ItemAffix[0] == 198) and (item.ItemAffix[1] == 338 or item.ItemAffix[1] == 339 or item.ItemAffix[1] == 340 or item.ItemAffix[1] == 345 or item.ItemAffix[1] == 346 or item.ItemAffix[1] == 349)) then --Only keeps good small charms
return true
elseif item.Flags.Identified == 1 and item.Quality == Magic and item.BaseItem == "cm3" and not ((item.ItemAffix[0] ~= 0 or item.ItemAffix[0] == 198) and (item.ItemAffix[1] == 338 or item.ItemAffix[1] == 339 or item.ItemAffix[1] == 340 or item.ItemAffix[1] == 345 or item.ItemAffix[1] == 346 or item.ItemAffix[1] == 349)) then --Only keeps good grand charms
return true
elseif item.Flags.Identified == 1 and item.Quality == Magic and (item.BaseItem == "ci0" or item.BaseItem == "ci1" or item.BaseItem == "ci2" or item.BaseItem == "ci3") and (not (item.ItemAffix[1] == 23 or item.ItemAffix[1] == 175 or item.ItemAffix[1] == 320 or item.ItemAffix[1] == 62 or item.ItemAffix[1] == 264) or (item.ItemAffix[1] == 23 or item.ItemAffix[1] == 175) and not (item.ItemAffix[0] == 105 or item.ItemAffix[0] == 106 or item.ItemAffix[0] == 108 or item.ItemAffix[0] == 109 or item.ItemAffix[0] == 571 or item.ItemAffix[0] == 573 or item.ItemAffix[0] == 106 or item.ItemAffix[0] == 111 or item.ItemAffix[0] == 112 or item.ItemAffix[0] == 575 or item.ItemAffix[0] == 577 or item.ItemAffix[0] == 585 or item.ItemAffix[0] == 587 or item.ItemAffix[0] == 589 or item.ItemAffix[0] == 591 or item.ItemAffix[0] == 447 or item.ItemAffix[0] == 450 or item.ItemAffix[0] == 453 or item.ItemAffix[0] == 462 or item.ItemAffix[0] == 471 or item.ItemAffix[0] == 501 or item.ItemAffix[0] == 507) or (item.ItemAffix[1] == 320 or item.ItemAffix[1] == 62 or item.ItemAffix[1] == 264) and not (item.ItemAffix[0] == 561 or item.ItemAffix[0] == 563 or item.ItemAffix[0] == 114 or item.ItemAffix[0] == 115 or item.ItemAffix[0] == 579 or item.ItemAffix[0] == 581 or item.ItemAffix[0] == 583 or item.ItemAffix[0] == 105 or item.ItemAffix[0] == 106 or item.ItemAffix[0] == 438 or item.ItemAffix[0] == 465 or item.ItemAffix[0] == 474 or item.ItemAffix[0] == 477 or item.ItemAffix[0] == 495 or item.ItemAffix[0] == 498 or item.ItemAffix[0] == 510 or item.ItemAffix[0] == 513)) then --Only keeps good circlets
return true
else
return false
end
end