Box Posted November 15, 2013 Posted November 15, 2013 So many of us are familiar with this bug in Kotor 2: when breaking down items from a workbench, instead of the workbench user's Repair skill being used to determine the component value of the items, the main character's Repair skill is used. I recall hearing that this bug was fixed. That doesn't surprise me since I was pretty close to a solution myself. But if anyone has it, I'd like to look at the source code for it. I want to be able to stack this fix with some workbench modifications of my own. Thank you. Quote
Hassat Hunter Posted November 15, 2013 Posted November 15, 2013 // k_workbench_bdm // // Through Bao-Dur, the player can break down and create items. // After Mira has been found, the player can make rockets, too // // KDS, 08/15/04 #include "k_inc_debug" #include "k_inc_utility" void main() { ShowUpgradeScreen(OBJECT_INVALID, GetLastUsedBy( ), FALSE, TRUE, "itemcreatemira"); }and // k_workbench_bd // // Through Bao-Dur, the player can break down and create items. // // KDS, 08/15/04 #include "k_inc_debug" #include "k_inc_utility" void main() { ShowUpgradeScreen(OBJECT_INVALID, GetLastUsedBy( ), FALSE, TRUE); }(simply use De-NCS loose on the scripts) Quote
Box Posted November 16, 2013 Author Posted November 16, 2013 Thanks. So if I'm reading this correctly, all that needed to be done was to change GetFirstPC() to GetLastUsedBy() in the second argument. Quote
Hassat Hunter Posted November 16, 2013 Posted November 16, 2013 Yup. I wasn't quite expecting it to be that easy either, but it was... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.