diff options
Diffstat (limited to 'npc')
-rw-r--r-- | npc/functions/lockpicks.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/npc/functions/lockpicks.txt b/npc/functions/lockpicks.txt index 387145893..3a27d4749 100644 --- a/npc/functions/lockpicks.txt +++ b/npc/functions/lockpicks.txt @@ -70,8 +70,17 @@ function script LockPicking { rif(.@m >= 1, l("Apply normal pressure")), 1, rif(.@m >= 3, l("Apply strong pressure")), 3, rif(.@m >= 5, l("Apply very strong pressure")), 5, + rif($@GM_OVERRIDE, "-- skip minigame --"), -1, l("Give up!"), 0; + // Debug + if (@menuret < 0) { + if ($@GM_OVERRIDE) + return 1; + else + atcommand("@block "+strcharinfo(0)); // Unacceptable + } + if (!@menuret) { // 25% chance to save the lockpick if (rand2(1,4) == 2) |