Is there any reason to not autosell soulbound weapons and armor that you can't use? (like a wand on a rogue) I added this to DoMerchantSellPoorItems in Jamba-Sell. As you can see the actual selling is commented out, I am still making sure it doesn't sell something important. See any issues with this?
Code:
if quality == AJM.ITEM_QUALITY_POOR then
-- Attempt to sell the item.
AJM:SellPoorItemIfNotAnException( name, itemLink, bag, slot )
end
-- My stuff added here:
if class == "Armor" or class == "Weapon" then
-- skip trinkets and rings and stuff like that
if subclass ~= "Miscellaneous" then
-- skip enchanters because they can DE
local prof1, prof2, _, _, _, _ = GetProfessions()
local prof1name = ''
local prof2name = ''
if prof1 then prof1name, _, _, _, _, _, _, _ = GetProfessionInfo(prof1) end
if prof2 then prof2name, _, _, _, _, _, _, _ = GetProfessionInfo(prof2) end
if prof1name ~= "Enchanting" and prof2name ~= "Enchanting" then
local MyScanTt = CreateFrame("GameTooltip", "MyScanTt", nil, "GameTooltipTemplate")
MyScanTt:SetOwner(WorldFrame,"ANCHOR_NONE")
MyScanTt:SetHyperlink(link)
local sb = getglobal("MyScanTtTextLeft2")
local sbtext = sb:GetText()
local redtome = getglobal("MyScanTtTextRight3")
local redtext = redtome:GetText()
local rrr, ggg, bbb = redtome:GetTextColor()
if sbtext == "Binds when picked up" and math.floor(rrr*256) == 255 and math.floor(ggg*256) == 32 and math.floor(bbb*256) == 32 then
AJM:Print(name)
-- Attempt to sell the item.
-- AJM:SellPoorItemIfNotAnException( name, itemLink, bag, slot )
end
end
end
end
Connect With Us