From 5a3fba3fca929791f8da2eb8d97d872db591974d Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 3 May 2022 18:21:16 -0300 Subject: Lockpick override --- npc/functions/lockpicks.txt | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'npc') 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) -- cgit v1.2.3-70-g09d2