// Force salvage Rares
// Force salvage Magics
if (Trinity.Settings.Loot.TownRun.ForceSalvageRares && isEquipment && cItem.Quality >= ItemQuality.Magic1 && cItem.Quality <= ItemQuality.Magic3)
{
Logger.Log(TrinityLogLevel.Info, LogCategory.UserInformation, "{0} [{1}] [{2}] = (force salvage magic)", cItem.RealName, cItem.InternalName, trinityItemType);
return false;
}
// Force salvage Follower Items
if (Trinity.Settings.Loot.TownRun.ForceSalvageRares && cItem.AcdItem.ItemType.ToString() == "FollowerSpecial")
{
Logger.Log(TrinityLogLevel.Info, LogCategory.UserInformation, "{0} [{1}] [{2}] = (force salvage follower item)", cItem.RealName, cItem.InternalName, trinityItemType);
return false;
}
You must check "Salvage all Rares" and add some codes to Plugins\Trinity\Items\TrinityItemManager.cs
If you want salvage all magic items, find this lineand add this code beforeCode:// Force salvage Rares
If you want salvage all follower items, addCode:// Force salvage Magics if (Trinity.Settings.Loot.TownRun.ForceSalvageRares && isEquipment && cItem.Quality >= ItemQuality.Magic1 && cItem.Quality <= ItemQuality.Magic3) { Logger.Log(TrinityLogLevel.Info, LogCategory.UserInformation, "{0} [{1}] [{2}] = (force salvage magic)", cItem.RealName, cItem.InternalName, trinityItemType); return false; }
Code:// Force salvage Follower Items if (Trinity.Settings.Loot.TownRun.ForceSalvageRares && cItem.AcdItem.ItemType.ToString() == "FollowerSpecial") { Logger.Log(TrinityLogLevel.Info, LogCategory.UserInformation, "{0} [{1}] [{2}] = (force salvage follower item)", cItem.RealName, cItem.InternalName, trinityItemType); return false; }
// Force salvage Follower Items
if (Trinity.Settings.Loot.TownRun.ForceSalvageRares && cItem.AcdItem.ItemType.ToString() == "FollowerSpecial")
{
Logger.Log(TrinityLogLevel.Info, LogCategory.UserInformation, "{0} [{1}] [{2}] = (force sell follower item)", cItem.RealName, cItem.InternalName, trinityItemType);
return false;
}
// Force salvage Magics
if (Trinity.Settings.Loot.TownRun.ForceSalvageRares && isEquipment && cItem.Quality >= ItemQuality.Magic1 && cItem.Quality <= ItemQuality.Magic3)
{
Logger.Log(TrinityLogLevel.Info, LogCategory.UserInformation, "{0} [{1}] [{2}] = (force sell magic)", cItem.RealName, cItem.InternalName, trinityItemType);
return false;
}
// Force salvage Rare
if (Trinity.Settings.Loot.TownRun.ForceSalvageRares && isEquipment && cItem.Quality >= ItemQuality.Magic1 && cItem.Quality <= ItemQuality.Magic3)
{
Logger.Log(TrinityLogLevel.Info, LogCategory.UserInformation, "{0} [{1}] [{2}] = (force sell rare)", cItem.RealName, cItem.InternalName, trinityItemType);
return false;
}
if i want sell all items exclusive legendarys, can i modify this code on this way? i changed "salvage" to sell.






