

Allows you to sell scrap on company using chat commands. Allows you to (temporarily or permanently) blacklist items and prioritise them when selling. Works on modded company-like moons too!
Only YOU need this mod in order for it to work
If you need an <amount> of money overall (after overtime) use /sell <amount> -eo
If you need to have <amount> more than you already have (after overtime): use /sell <amount> -o
If you just wanna sell some items worth <amount> use /sell <amount>
If you wanna sell exactly to quota use /sell quota
If you wanna sell all items on ship use /sell all
If you wanna sell all items on ship including blacklisted items use /sell all -a
If you wanna sell one TYPE of item, hold this item in your hands and use /sell item
If you wanna see current overtime, money in terminal and their sum use /ot
If you want to see how much money you need to leave in terminal to get to the desired <amount> after takeoff, use /ot <amount>
Instead of <amount> in any command you can use mathematical expressions (/sell 1500+25*2), number suffixes (/sell 2k), item/moon names with quantities which will include sales calculations (/sell art + wee2) and you can also omit pluses (/sell art wee2 sho4 jet), but be careful because if you omit pluses you can't use something like /sell jet 1k, it won't sell for 900+1000, it'll try to sell 900*1000.
If you wanna add (remove) an item to blacklist config (permanently) use /sell bl + -p (/sell bl - -p) while holding the item in your hands
If you wanna add (remove) an item to temporary config (empties when you close the game) use /sell bl + (/sell bl -) while holding the item in your hands
If you wanna clear the temporary blacklist use /sell bl clear
If you wanna display a blacklist use /sell bl [-a] [-p]
If you wanna add (remove) an item to priority config permanently use /sell pr + -p (/sell pr - -p) while holding the item in your hands
If you wanna add (remove) an item to temporary config (empties when you close the game) use /sell pr + (/sell pr -) while holding the item in your hands
If you wanna clear the temporary priority use /sell pr clear
If you wanna display a priority use /sell pr [-a] [-p]
There is specific information on each command and its usage in the in-game documentation (help pages)
/sell help [page] to open general or specific help page
/sell help pages to open a list of all help pages
/sell item [item] to sell all items like the one you are holding or the one you specified
/sell quota [-a] to sell exactly for quota
/sell all [-a] to sell all unfiltered scrap available
/sell <amount> [-o] [-e] [-a] [-n] to sell exactly how much you need
/sell {bl | pr} [-a] [-p] to show a blacklist/priority set (without flags prints active blacklist/priority set)
/sell {bl | pr} {+ | -} [-p] to add/remove an item to/from the temprory (or permanent with -p flag) blacklist/priority set
/sell {bl | pr} clear to clear the temporary blacklist/priority set
/ot [<amount>] [-n] to see overtime, money in terminal, their sum and how much money you need to leave in terminal to get to the desired <amount>
You can change flag prefix in config to use a different symbol at the start of all flags (for example +e instead of -e)
-o (overtime) to sell accounting for overtime (used with <amount> and often goes together with -e)
-e (existing) for accounting for existing money in terminal and overtime (used with <amount> and almost always goes together with -o)
-a (all) to ignore blacklist (used with quota, all, <amount>)
-p (permanent) when using /sell {bl | pr} allows you to affect permanent set instead of the temporary one
-n (nonrestart) to FORSE non-restart overtime calculations (needed in very rare edge cases with late joining mods after late joining as a client)
The blacklist tells the mod which items not to sell. There are three (four) kinds of it: permanent, temporary(add), temporary(remove) and active.
The priority list tells the mod which items to prioritize when selling. It will still try to sell as close to the provided value as possible but if multiple combinations of items are possible choose the one which has the most priority items. As with a blacklist there are three (four) kinds of priority sets: permanent, temporary(add), temporary(remove) and active.
Usage:
/sell item [item]
Sells all items with the specified name. If no name was specified then checks what item you are holding and gets it's name instead (and sells this held item too)
Usage:
/sell quota [-a]
Checks how much quota is left and tries to sell exactly that (if it's not enough, nothing will be sold and if exact value isn't achievable sells the smallest value after that)
Usage:
/sell all [-a]
Sells all (non-blacklisted, use -a to ignore blacklist) scrap items
Usage:
/sell <amount> [-o] [-e] [-a] [-n]
Tries to sell exactly how much you specified. If there is not enough scrap, sells nothing. If an exact value isn't achievable sells the smallest value after that. Instead of <amount> you can use mathematical expressions (/sell 1500+25*2), number suffixes (/sell 2k), item/moon names with quantities which will include sales calculations (/sell art + wee2) and you can also omit pluses (/sell art wee2 sho4 jet), but be careful because if you omit pluses you can't use something like /sell jet 1k, it won't sell for 900+1000, it'll try to sell 900*1000.
Usage:
/sell bl [-a] [-p]
/sell bl {add | ad | a | +} [itemName] [-p]
/sell bl {remove | rm | r | -} [itemName] [-p]
/sell bl {clear | empty | flash | flush}
Without modifiers just prints an active blacklist, you can add -a to also display temporary blacklist or -p to display permanent blacklist instead.
By using /sell bl + (/sell bl -) you can temporarily blacklist (or prohibit to blacklist) an item currently in your hands. You can also add/remove it from a permanent blacklist by using -p flag.
By using /sell bl clear you can clear temporary blacklist in case you don't need it anymore (keep in mind that it automatically resets when you close the game window)
Usage:
/sell pr [-a] [-p]
/sell pr {add | ad | a | +} [itemName] [-p]
/sell pr {remove | rm | r | -} [itemName] [-p]
/sell pr {clear | empty | flash | flush}
Without modifiers just prints an active priority set, you can add -a to also display temporary priority set or -p to display permanent priority set instead. By using "/sell pr +" ("/sell bl -") you can temporarily prioritize (or prohibit form being prioritized) an item currently in your hands. You can also add/remove it from a permanent priority set by using -p flag. By using "/sell pr clear" you can clear temporary priority set in case you don't need it anymore (keep in mind that it automatically resets when you close the game window)
Usage:
/ot [-n]
/ot <amount> [-n]
Displays overtime caused by already fullfilled quota and items on desk, money already in terminal + items on desk, sum of these two and, if <amount> was inputted, shows how much money you need to leave in terminal to get to <amount> after takeoff. Instead of <amount> you can use mathematical expressions (/sell 1500+25*2), number suffixes (/sell 2k), item/moon names with quantities which will include sales calculations (/sell art + wee2) and you can also omit pluses (/sell art wee2 sho4 jet), but be careful because if you omit pluses you can't use something like /sell jet 1k, it won't sell for 900+1000, it'll try to sell 900*1000.
You can change flag prefix in config to use a different symbol at the start of all flags (for example +e instead of -e)
Usage:
/sell <amount> -o
Respects the fact that your sold items can cause overtime and includes it in the calculations (note that the overtime caused by already sold items isn't included, you need -e flag for that) so that:
requested value = final value in terminal (after leaving the planet) - existing money (look into -e page for that)
Usage:
/sell <amount> -e
(Previously -t, but was changed to -e) Removes existing money (already existing credits in terminal, items on desk and, if -o flag is present, future overtime based on these two) from your requsted value so that:
requested value = final value in terminal (after leaving the planet) = existing money + sold items (+ overtime caused by sold items if -o flag is present)
Usage:
/sell {quota | all | amount | bl | pr} -a
When trying to find right items to sell, ignores all blacklists so that EVERY item can be sold. If used with "/sell bl" or "/sell pr" displays both temporary blacklists (or priority sets) along with the active one
Usage:
/sell {bl | pr} [+ | -] -p
When using the blacklist (or priority) command can be used to affect permanent blacklist (or priority set) instead of the temporary one
Usage:
/sell <amount> -n
Forces EVERY overtime calculation that occures during the execution of THIS command to think that there was no rehost after the final day of this quota, even if there was one). It is only needed if a host has a mod for late joining (aka LateCompany) and you joined after the final day of this quota (your client will think that there was a rehost then). There is no way (that I know of, at least, if you know one please tell me) to check if there was or wasn't a real rehost in this case, and if there wasn't, then all overtime calculations will be 15 smaller. This flag accounts for that, but note that if the rehost has actually occured and you used this flag then all overtime calculation will be 15 bigger so you should ask your host if they have done a rehost or not to get it right
You landed on comapany after playing your final day of the 2nd quota, the quota is 256, you have 4 leftover credits in terminal and plan to buy jetpack (900), weed killer (252) and go to Artifice (1500). You can just use /sell 900+25*2+1500 -eo. The mod will try to sell 2094, the overtime because of that will be 352 and there already are 4 credits in terminal so overall it will be 2094+352+4=2450, exactly as requested. Then suppose you bought a jetpack and two weed killers and noted that you don't have any shovels so you decide to buy two of them (302). Now you can use /sell 60 -o to ignore how many credits and overtime you already have and get 60 more of credits+overtime. The mod will try to sell 50 and the overtime gained because of that will be 10, so overall it will be 60, exactly as requested.
If you want to report a bug or request a new feature welcome to my GitHub