Source code of auto-loot improved and auto-sell

Users who are viewing this thread

rubik

Squire
Credits:
fisheye: Original autoloot source code
rubik:  auto-loot improved
          auto-sell source code

Original autoloot thread by fisheye:
http://forums.taleworlds.com/index.php/topic,50883.0.html

I had adjusted autoloot. Reorganized how NPCs will choose their loots, they will accord to the performance instead of the price.
source: http://www.rayfile.com/en/files/348982f0-960d-11de-85b4-0014221b798a/

About auto-sell:
Items in the inventory of companions which selected as the type for selling and their prices below the price limit for auto-sell will be sold to merchants in current town or village automaticly. Specifically foods, trade goods and books will never be sold automaticly. You can change options about auto-sell by talking with any companion in your party.
Unlock NPCs' inventory, and NPCs will take all the surplus loots by themselves, you won't lost any loots.
The total weight of items in NPCs' inventory will affect the party's moving speed.

NOTE: If you have ever added source code of autoloot or autoloot improved to you MOD. It's better for you to remove all source code about autoloot, then add the new source code I have given here. Because there are too many small changes and I rewrited many code.

Search "autoloot" and "auto-sell", you can find all changes in the source code.

2009831165629.jpg


2009831165630.jpg


2009831165631.jpg


2009831165632.jpg


2009831165633.jpg


2009831165632_0.jpg
 
Back
Top Bottom