Use the profile options:
Code: Select all
<option name="INV_AUTOSELL_NOSELL_DURA" value="110" />
<option name="INV_AUTOSELL_STATS_NOSELL" value="X" />
<option name="INV_AUTOSELL_STATS_SELL" value="IX" />
Items with a durability eq or greater that value will not be selled
INV_AUTOSELL_STATS_NOSELL
Items with that text strings in the right tooltip side will not be selled. Caution: It's only a very easy check. So that text strings are checked against the whole right side tooltip text. E.g. if you want to save the stat 'defense', also items with 'magical defense' will not be selled. Not only items with the stat 'defense'. Sry for that. If you set the value 'X', all stats with 'X' wouldn't be selled: 'X', 'IX', 'XI'.
INV_AUTOSELL_STATS_SELL
By using that items, you could overwrite the 'INV_AUTOSELL_STATS_NOSELL' value. e.g. if you set 'INV_AUTOSELL_STATS_NOSELL'="X" you would not sell 'IX' stats. But if you know set 'INV_AUTOSELL_STATS_SELL="IX" you would sell 'IX' stats and save all other stats with 'X'.
You can use the option:
Code: Select all
<option name="DEBUG_AUTOSELL" value="true" />
And now the most important thing: We need to read the ingame tooltip to check the durability and the stats. That's at the moment not possible by only using the RoMScript() MACRO function. So we need a little ingame addon. That addon is named 'igf' (ingamefunctions). You found that addon in the bot folder 'rom/devtools/'.
Please copy the folder 'ingamefunctions' into your RoM installation into the folder '\Runes of Magic\Interface\AddOns' to install that addon. And restart the RoM games client.