-
Active Member
[Ez] RepairAndSalvagePlugin
If you press F3 after interacting with the blacksmith, this plugin first repairs your equipment and then salvage the items from the inventory. It will work from any initial tab and when finished it will always switch to the salvage tab. If you use this plugin you won't need my other plugin AlwaysRepairYourItems.
It requires having a lock area defined in the inventory (edit file config\config.xml). Example: <inventory_lock left_column="7" top_row="0" right_column="9" bottom_row="5" />
All Legendary items (and also rare/magic/normal items if your character didn't reach level 70) that you place in the lock area will be safe from being destroyed. Items that are outside the lockout area (and all rare/magic/normal if you are level 70 regardless of where they are) will be salvaged as long as:
Have not been rolled
Have not been transfigured
Don't have Socket with gems set
Don't be Primals
Not be present in Armory
Don't be Soulshards (not upgraded) or Whisper of Atonement.
If you know how to code, consult GetItemsToSalvage() to make modifications and/or add functionalities.
It's automation, use it at your own risk.
Download => Plugins\Ez\RepairAndSalvage.cs
Custom Code (PluginEnablerOrDisablerPlugin):
Code:
Hud.RunOnPlugin<Ez.RepairAndSalvagePlugin>(plugin =>
{
plugin.Enabled = true;
plugin.saveItemPrimal = true; // Keep primal items , not salvage
plugin.saveItemAncient = false; // Keep ancient items , not salvage
plugin.ConfirmWihtEnterKey = false; // Use Key Enter or Mouse Virtual for dialog confirmation
plugin.ToggleKeyEvent = Hud.Input.CreateKeyEvent(true, Key.F3, controlPressed: false, altPressed: false, shiftPressed: false); // Hotkey
plugin.LMod_SalvagePlugin_Disable = true; // Disable plugin LMod
plugin.IgnoreInventoryLockArea = false; // If false -> Lock area required in the inventory. If true -> Lock area is not required and will be ignored if it exists.
plugin.RestoreMousePointer = true; // Restore to original position.
plugin.WhiteList.Add(Hud.Sno.SnoItems.Unique_Polearm_101_x1, 0); // Bovine Bardiche // Read interfaces\Controllers\sno\ISnoItemsList.cs for SnoItems // (0 -> legendary normal or higher, 1 -> ancient or higher, 2 -> primal)
plugin.WhiteList.Add(Hud.Sno.SnoItems.Unique_Ring_004_x1, 1); // Puzzle Ring ancient or primal
} );
Last edited by EzGo; 03-04-2025 at 02:37 AM.
Reason: windowed mode support
-
Post Thanks / Like - 1 Thanks
BeeAntOS (1 members gave Thanks to EzGo for this useful post)
-
Member
can you add a setting that removes the block zone?
inventory_lock = false
-
Active Member
Updated: IgnoreInventoryLockArea (false -> Lock area required in the inventory , true -> Lock area is not required and will be ignored if it exists).
Last edited by EzGo; 11-11-2024 at 04:51 PM.
-
Post Thanks / Like - 1 Thanks
Punkk (1 members gave Thanks to EzGo for this useful post)
-
Banned
Hud.RunOnPlugin<Ez.RepairAndSalvagePlugin>(plugin =>
{
. . . . . . .
plugin.saveItemPrimal = true; // Keep primal items , not salvage
. . . . . . .
} );
Is the same setting possible for the ancients?
-
Active Member
Updated: saveItemAncient added.
-
Banned
after breaking things up, the mouse pointer returns to the center of the screen
Is it possible to do this?
-
Active Member
Updated: The mouse pointer will return to its original position.
-
Active Member
Update: Plugin will now be more tolerant with mouse movements while processing items.
Update: I deleted a line by mistake, corrected
Last edited by EzGo; 11-19-2024 at 08:59 PM.
Reason: update
-
Member
If you have the opportunity, could you make plugins.
CloseDialogPlugin
CloseQuestDialogPlugin
CloseGRDialogPlugin
EnchantPlugin
UpgradeLegendaryGemPlugin
KadalaPlugin
And if possible, all from LightningMod
-
Active Member
Those plugins, except that they move the mouse pointer, work great. I don't think I'll release any more new plugins this season, maybe for next season.
I love the Enchantplugin, I would use lmod just for that plugin
-
Member
I am used to using plugins. I have the ability to do all this with an assistant in TH Free. But it is easier for me to enable the plugin.
Your plugins do not use what is cut in TH China. And in TH Free there is no way to add plugins from LM )))
Last edited by Punkk; 11-22-2024 at 04:04 PM.
-
Active Member
Last edited by EzGo; 3 Days Ago at 06:25 PM.
-
Member
Lmod needs plugins it doesn't have, like Repair. Everything else can be activated. But the way your plugins work is necessary for THFree.
If you have the ability to make them, that would be nice.
-
Member
how to make launch on F4
line 191, tried F4, does not work
Last edited by RawHulk2; 3 Days Ago at 12:58 PM.
-
Active Member
It should work. You should see a yellow message like this when you talk to the blacksmith:

If you see F3 instead of F4 after changing line 191, it's because you've inserted custom code into PluginEnablerOrDiablerPlugin.cs and should make the changes there.
If no text appears, it's probably because you're using LMOD and the author has blocked some of my plugins, even for the paid users. If this is the case, try changing the word RepairAndSalvagePlugin on lines 15 and 177 to any other random word, but use the same one in both places. You used to be able to bypass the block this way, but I no longer use lmod and I won't worry about my plugins working on it from now on.
line 15
public class RepairAndSalvagePlugin : BasePlugin, IKeyEventHandler, IInGameTopPainter
line 177
public RepairAndSalvagePlugin()
or use TuboHud Free (0.0$)
Last edited by EzGo; 3 Days Ago at 06:28 PM.
Inside us live two wolves in constant conflict. Which one will you feed today?