-
Member
Smart Instant Salvage Plugin
With this plugin you can instantly salvage items in your inventory instantly and smartly. For basic usage you can just make a list of items you always want to salvage, and a second list of items you want to salvage only if they're nonancient. For advanced usage, you can make very intricate rules for each item - examples below.
Short installation instructions
- Download the pHelper plugin (I'm sharing code with it) from here: GitHub - patschl/pHelperPlugin: pHelperPlugin repository! Plugin for TurboHUD @ https://www.ros-bot.com/turbohud.
- Download this file Salvage.cs - Pastebin.com and put it under "plugins\patrick\hotkeys\actions\general\Salvage.cs", you don't need to touch it unless you're a programmer.
- Download this file SalvageInstructions.cs - Pastebin.com and put it under "plugins\patrick\hotkeys\actions\general\SalvageInstructions.cs". This file is only an example, and you should delete its contents and replace them with your own configuration,.
How to download, install and configure pHelper
Go to the github url, click on "code", then "download as zip". Unpack it in your "plugins" folder and rename it from "pHelperPlugin-master" to "patrick" (not sure if required). After a restart, the "pHelper" window will appear on your taskbar. There you can configure auto-casting skills, other automatic actions, and hotkey-based actions. After you add my files to it, a new action will appear under "Hotkeys - general" where you can configure stuff.
Tick the checkbox ✅, choose a hotkey by pressing the "none" box, and then press "edit" to configure general behavior. The options are:
- SalvageUnknowns - This is the main configuration. If checked, the script will salvage any item that's not mentioned in "SalvageInstructions.cs" by default. Otherwise, it will keep the item. This means that if it's checked, you can ignore "ALWAYS_SALVAGE_LIST", as every item is practically there, and if it's unchecked, you can ignore "NEVER_SALVAGE_LIST".
- KeepAllPrimals - Self explanatory, this will prevent salvaging any primal. Useful if you're aiming for the red border damage bonus this season.
- LogAllActions - When checked, every decision the script makes will be reported in "phelper.log.txt", in the "logs" folder.
- DontReallySalvage - when checked, items won't be salvaged, but stuff will still be reported in "phelper.log.txt". Useful when you're editing "SalvageInstructions.cs" and want to make sure your code works as intended.
- DebugInfo1 - Report all stats recognized by my code in "phelper.log.txt". Very spammy.
- DebugInfo2 - Report all stats recognized by hud in "phelper.log.txt". Very spammy.
How to write your own configuration
All your configuration should be written in "SalvageInstructions.cs". The file I attached is only an example. There are 4 main ways to configure it:
- Add items to "NEVER_SALVAGE_LIST" (lines 57-59 in the example file), and check "SalvageUnknows" in the configuration. This way, you choose which items to always keep. This field is useless if "SalvageUnknowns" is unchecked.
- Add items to "ALWAYS_SALVAGE_LIST" (lines 62-475 in the example file), and uncheck "SalvageUnknowns" in the configuration. This way, you choose which items to always salvage. This field is useless if "SalvageUnknowns" is checked.
- Add items to "NONANCIENT_SALVAGE_LIST" (lines 478-685 in the example file). These items will be salvaged if they're nonancient.
- Add smart rules in the form of C# functions (lines 27-54 in the example file).
Please contact me with any constructive feedback, code contribution, bug report, or request for help with adding rules to SalvageInstructions.
Last edited by culater; 02-07-2022 at 08:50 AM.
Reason: sign off
-
Post Thanks / Like - 3 Thanks
-
Member
Long instructions - pHelper
reserved for future editing
Last edited by culater; 02-07-2022 at 06:57 AM.
Reason: reserve
-
Active Member
Hey culater, The plugin is working well for me - Thank you for making this plugin!
I think it would be great if you could add a feature to NOT salvage Items if it has been rolled by the mystic or transmogrified or dye
I can't get any logs to write to phelper.log.txt from Salvage.cs.
-
Member
Regarding not salvaging enchanted/transmogrified/dyed items, I think it's a great idea and I'll get right on it.
Regarding seeing logs, there's a "verbosity" setting on the "settings" page of the phelper UI that needs to be set to INFO (it's WARN by default). Sadly this setting isn't saved when you close the application, so what I personally did was change the value in line 12 of "patrick\util\logger\Logger.cs".
-
Member
I edited "Salvage.cs" by adding lines 86-107, and it should now skip enchanted/transmogrified/dyed items.
-
Post Thanks / Like - 1 Thanks
Jembo (1 members gave Thanks to culater for this useful post)
-
Active Member
Splendid working great, thanks mate!
-
Member
I'm not getting any window after: "After a restart, the "pHelper" window will appear on your taskbar" I did everything u wrote.
-
Member
Originally Posted by
kosa1234
I'm not getting any window after: "After a restart, the "pHelper" window will appear on your taskbar" I did everything u wrote.
I have the same problem.
-
Member
thank you, culater teacher
this is the best pheper plugin
It would be great if auto repair function is added after salvage
-
Member
Help?
Originally Posted by
Jembo
Splendid working great, thanks mate!
Do you know why the window wont open? It doesnt on my pc
-
Member
Hello, I have found out that turbohud lightningmod loads plugins from a different folder so pHelper does not load correctly.
Some files in the pHelper folder need to be fixed manually.
Links to the turbohud lightningmod discord with relevant messages:
Discord
Discord