What's new
  • Visit Rebornbuddy
  • Visit Resources
  • Visit API Documentation
  • Visit Downloads
  • Visit Portal
  • Visit Panda Profiles
  • Visit LLamamMagic

Salvage Blues

1337

New Member
Joined
Jul 3, 2010
Messages
68
Reaction score
0
7KOTd.png


just how?
 
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 line
Code:
// Force salvage Rares
and add this code before
Code:
// 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;
			}
If you want salvage all follower items, add
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;
			}
 
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 line
Code:
// Force salvage Rares
and add this code before
Code:
// 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;
			}
If you want salvage all follower items, add

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;
			}

if i want sell all items exclusive legendarys, can i modify this code on this way? i changed "salvage" to sell.

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 sell follower item)", cItem.RealName, cItem.InternalName, trinityItemType);
				return false;
}
Code:
// 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;
}

Code:
// 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;
			}
 
Last edited:
Back
Top