Well, as far as wanting to increase the credits gained from containers and what-not, you should only have to edit k_inc_treas_k2 and k_inc_treasure and re-compile a few scripts. Additionally, the k_inc_ scripts are not usable by themselves. You will need to re-compile the scripts that use them for them to have any effect in-game.
In k_inc_treas_k2, the random loot is given a label composed of the item's template reference followed by "[]", without the quotes and a number substituted in. However, the way the Credits thing works is that the random loot thing uses the "g_i_credits015" and "g_i_credits014" templates, though the first one is more common. The first has a stack size (amount) of 1 and the other 5000. This is level-based, no doubt.
Example code:
So, it all comes back to the SWTR_GetQuantity thing, and the initial amount is equal to 10 x the item level ( minus 1) + random number between 0 and 49 + 20.
Here is the SWTR_GetQuantity thing in k_inc_treasure (the only thing you should have to edit in the file):
,,,
So, what you could try doing is either edit the g_i_credits015.uti and making the stack size way higher, or you can try adding a number to the following line in SWTR_GetQuantity:
I would add the following right after iCount (and before the ")" mark): + .
After that, I'd save k_inc_treasure.nss to the KotOR 2 Override folder. Then, I'd compile k_inc_treas_k2.nss and save it to the Override folder. After that, I'd go through and compile the following scripts without editing them:
k_plc_tresciv.nss
k_plc_tresdrdlow.nss, k_plc_tresdrdmid.nss, and k_plc_tresdrdhig.nss
k_plc_trescorlow.nss, k_plc_trescormid.nss, and k_plc_trescorhig.nss
k_plc_tresmillow.nss, k_plc_tresmilmid.nss, and k_plc_tresmilhig.nss
k_plc_tresrakat.nss
k_plc_tresshalow.nss, k_plc_tresshamid.nss, and k_plc_tresshahig.nss