From a06bbf4e3a0d0d44110c2aca4532cea5e29fbc66 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 28 Apr 2020 19:57:05 -0300 Subject: The bug --- npc/042-3/jail.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'npc') diff --git a/npc/042-3/jail.txt b/npc/042-3/jail.txt index 2fe2d14fb..20793a7e8 100644 --- a/npc/042-3/jail.txt +++ b/npc/042-3/jail.txt @@ -39,7 +39,7 @@ function script KamelotLockpick { mes l("But thanks to your %s skills, maybe you can pry this open.", thiefrank()); next; - .@s=LockPicking(3, 5, false); + .@s=LockPicking(5, 3, false); // You broke free! if (.@s) { @@ -48,13 +48,14 @@ function script KamelotLockpick { @lockpicks=true; return; } + mes l("What's this dark magic, the password has changed!"); // Give player a easy way to get lockpicks for this // (Overrides original .@x/.@y variables) - if (!countitem(Lockpicks)) { + if (countitem(Lockpicks) <= 1) { @lockpicks=false; getmapxy(.@m$, .@x, .@y, 0); - .@mob=monster(.@m$, .@x, .@y, strmobinfo(1, CopperSlime), CopperSlime, .@label$); + .@mob=monster(.@m$, .@x, .@y, strmobinfo(1, CopperSlime), CopperSlime, 1, .@label$); // This should wipe the monster experience value setunitdata(.@mob, UDT_LEVEL, BaseLevel); } -- cgit v1.2.3-60-g2f50