<!--`QuoteBegin-SirChristopherMings`+--><div class='quotetop'>QUOTE(SirChristopherMings)</div><div class='quotemain'><!--QuoteEBegin-->
Originally posted by Lady Catalina the Pirate
I've often wondered, since the advent of the Weapons mod, why anyone would bother locking up a rusty old saber in a boobytrapped chest!
That's clearly the product of an unbalanced sense of humor mixed in with an unhealthy dose of irony, I still think we need to add the "Doh!" <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/mybad.gif" style="vertical-align:middle" emoid="

" border="0" alt="mybad.gif" /> sound to the game just for moments like that. My question is why does my 300 level pirate still stick himself in the hand when he's trying to open a locked chest. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/piratesing.gif" style="vertical-align:middle" emoid="

" border="0" alt="piratesing.gif" />[/quote]
Ah, the fingers of old... err, I mean... experienced piratecaptains are just not nimble enough for lockpicking anymore. Rheumatism caused by damp nightwatches and gout from overindulgence in the booty just take their toll...
But as I always say: If you don't like it, mod it. Here's how:
The code for treasurechests "lockpicking" and the various mishaps during that is in itemsitemLogic.c, in the function "void OpenBoxProcedure() ", marked by //ccc boobytrap->
The lines that determine IF some mishap hurts you all look like this:
int lock = (rand(100) + (makeint(chr.skill.sneak)*3)+LOCK_OPEN); // bf Scheffnow 08mar
if (lock < 33 && chr.location != "Tutorial_Deck")
{
.... code for knife hitting hand follows
The first line works like throwing dice. The value called "lock" is a random part of 100. The amount is increased by three times your sneakskill and the tweak LOCK_OPEN defined in Buildsettings.h
The second line says that you "loose" (knife you) if your "dicethrow" lock is smaller than 33, So if you add any value to lock you increase your chances of not getting hurt.
An easy way would be to add your characters level like this:
int lock = (rand(100) + (makeint(chr.skill.sneak)*3)+LOCK_OPEN + makeint(chr.rank) );
With every additional level/rank you are less likely to hurt yourself.
IIRC Cat once planned to let her Sneaky Trader sell lockpicking tools. Those could easily take effect in the second line. Let's say that if you are eqipped with a dagger ("blade5" ) you can open every chest. That would look like this:
if (lock < 33 && chr.location != "Tutorial_Deck" && chr.equip.blade != "blade5" )
{
.... code for knife hitting hand follows
Translation: Knifehitting happens only IF your dicethrow (LOCK) is smaller (<) than 33 AND (&&) you are not ( !=" ) in your cabin AND you don't have a dagger as blade.