All pastes #945415 Raw Edit

Unnamed

public text v1 · immutable
·published 2008-03-16 22:21 UTC
rendered paste body
function sellItem(item)
	if (isSC(item) and item.flags.Identified == true) then
		-- Small Charms (only Keep Max Life, Max Resistence, Max Attack Rating, 50+ Poison Charms)
		return (!isGoodSC(item))			
	elseif (isGC(item) and item.flags.Identified == true) then
		-- Grand Charms (Only Keep Skill)
		return (!isGoodGC(item))		
	elseif (isRing(item) and item.flags.Identified == true) then
		-- Rings (only Keep SoJ, BK, Wisp Projector)
		return (!isGoodRing(item))
	elseif (isAmulet(item) and item.flags.Identified == true) then
		-- Amulets (only Keep Highlord's Wrath, Mara's Kaleidoscope, Seraph's Hymn, Metalgrid)
		return (!isGoodAmulet(item))
	elseif (isJewel(item) and item.flags.Identified == true) then	
		-- Jewels (only Keep Rainbow Faucet)
		return (!isGoodJewel(item))
	elseif (isExpensive(item)) then
		return (true)
	end
	return (false)	
end