summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-05-03 18:21:16 -0300
committerJesusaves <cpntb1@ymail.com>2022-05-03 18:21:16 -0300
commit5a3fba3fca929791f8da2eb8d97d872db591974d (patch)
treed464c661a4006570b002831b92d5cb3d314a258f /npc
parenteb44e0f9eeaee41d1eaf19f5610b6e30be450733 (diff)
downloadserverdata-5a3fba3fca929791f8da2eb8d97d872db591974d.tar.gz
serverdata-5a3fba3fca929791f8da2eb8d97d872db591974d.tar.bz2
serverdata-5a3fba3fca929791f8da2eb8d97d872db591974d.tar.xz
serverdata-5a3fba3fca929791f8da2eb8d97d872db591974d.zip
Lockpick override
Diffstat (limited to 'npc')
-rw-r--r--npc/functions/lockpicks.txt9
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)