summaryrefslogtreecommitdiff
path: root/npc/000-2-1/chest.txt
diff options
context:
space:
mode:
authorHal9OOO <miglietta.francesco@gmail.com>2012-12-09 14:24:26 +0100
committerHal9OOO <miglietta.francesco@gmail.com>2012-12-09 14:24:26 +0100
commitdecb212a7b7dc990b0d89d67b77de01afed1fb40 (patch)
tree8b0ba71d5d6e0179132d471613781777ac6b1617 /npc/000-2-1/chest.txt
parent193c7147eaa1a7b1a4ef633beb8985e60a144162 (diff)
downloadserverdata-decb212a7b7dc990b0d89d67b77de01afed1fb40.tar.gz
serverdata-decb212a7b7dc990b0d89d67b77de01afed1fb40.tar.bz2
serverdata-decb212a7b7dc990b0d89d67b77de01afed1fb40.tar.xz
serverdata-decb212a7b7dc990b0d89d67b77de01afed1fb40.zip
Correct close behaviour in many dialogues. Democratize l_Quit function.
Diffstat (limited to 'npc/000-2-1/chest.txt')
-rw-r--r--npc/000-2-1/chest.txt14
1 files changed, 7 insertions, 7 deletions
diff --git a/npc/000-2-1/chest.txt b/npc/000-2-1/chest.txt
index 680f9e986..b898ee6bd 100644
--- a/npc/000-2-1/chest.txt
+++ b/npc/000-2-1/chest.txt
@@ -21,7 +21,7 @@
close;
l_Give:
- if (@q > 1) goto l_Close;
+ if (@q > 1) goto l_Quit;
set @item, 1300;
set @count, 2;
callfunc "InventoryPlace", @item, @count;
@@ -31,16 +31,16 @@ l_Give:
getitem "CreasedShorts", 1;
message strcharinfo(0), l("You take the clothes from the chest.");
-l_Close:
- setnpcdir 6;
- initnpctimer;
- startnpctimer;
- close;
-
OnTimer220:
stopnpctimer;
if (getnpcdir ("") == 2) setnpcdir 4;
if (getnpcdir ("") == 6) setnpcdir 0;
end;
+l_Quit:
+ setnpcdir 6;
+ initnpctimer;
+ startnpctimer;
+ close;
+
}