diff options
Diffstat (limited to 'npc/042-3')
-rw-r--r-- | npc/042-3/jail.txt | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/npc/042-3/jail.txt b/npc/042-3/jail.txt index 7e3a1f5b9..70df69b95 100644 --- a/npc/042-3/jail.txt +++ b/npc/042-3/jail.txt @@ -27,14 +27,14 @@ OnKillSlime: getitem Lockpicks, 1; getitem TreasureKey, 1; end; - } // Lockpicks functions function script KamelotLockpick { - // Args: x, y. Needs player attached + // Args: x, y, name. Needs player attached .@x=getarg(0); .@y=getarg(1); + .@name$=getarg(2); mes l("A complex lock seems to be posing a threat to you."); next; mes l("But thanks to your %s skills, maybe you can pry this open.", thiefrank()); @@ -44,9 +44,9 @@ function script KamelotLockpick { // You broke free! if (.@s) { - dispbottom l("You're finally free!"); - slide .@x, .@y+1; - @lockpicks=true; + .@label$=instance_npcname(.@name$)+"::OnKamelotSlide"; + addtimer 10, .@label$; + areatimer getmap(), .@x-1, .@y-1, .@x+1, .@y, 10, .@label$; return; } mes l("What's this dark magic, the password has changed!"); @@ -66,12 +66,20 @@ function script KamelotLockpick { // Cell Doors 042-3,33,137,0 script Cell Door#K01 NPC_NO_SPRITE,{ - KamelotLockpick(.x, .y); + KamelotLockpick(.x, .y, .name$); close; OnInit: OnInstanceInit: .distance=2; end; + +OnKamelotSlide: + .@label$=instance_npcname(.name$)+"::OnKamelotSlide"; + deltimer .@label$; + dispbottom l("You're finally free!"); + slide .x, .y+1; + @lockpicks=true; + end; } // Duplication of doors |