summaryrefslogtreecommitdiff
path: root/world/map/npc/015-3/pot.txt
diff options
context:
space:
mode:
authorJessica Tölke <jtoelke@mail.upb.de>2013-01-09 23:23:55 +0100
committerJessica Tölke <jtoelke@mail.upb.de>2013-01-09 23:23:55 +0100
commitb4bafa632ed35fd7bb6a2c1a2d186bf0f24a1723 (patch)
treeec9e8c5ea8f0f64a2b0e94285dd627d877f723bd /world/map/npc/015-3/pot.txt
parent1623d7da9290f57bcd0dfe41f61a9581b5a78198 (diff)
downloadserverdata-b4bafa632ed35fd7bb6a2c1a2d186bf0f24a1723.tar.gz
serverdata-b4bafa632ed35fd7bb6a2c1a2d186bf0f24a1723.tar.bz2
serverdata-b4bafa632ed35fd7bb6a2c1a2d186bf0f24a1723.tar.xz
serverdata-b4bafa632ed35fd7bb6a2c1a2d186bf0f24a1723.zip
Katze quest: clear temporary quest state variables before closing the script.
Diffstat (limited to 'world/map/npc/015-3/pot.txt')
-rw-r--r--world/map/npc/015-3/pot.txt29
1 files changed, 15 insertions, 14 deletions
diff --git a/world/map/npc/015-3/pot.txt b/world/map/npc/015-3/pot.txt
index bb3c4b9c..29eb7a43 100644
--- a/world/map/npc/015-3/pot.txt
+++ b/world/map/npc/015-3/pot.txt
@@ -23,25 +23,25 @@
if (Katze == 4 && @catNeedsAlone == 1)
goto L_HasWood;
if (Katze >= 4)
- goto L_Finished;
+ goto L_Close;
L_NeedsMilk:
if (countitem("Milk") > 0)
menu
"Pour in some milk.", L_GiveMilk,
"Leave it alone.", -;
- close;
+ goto L_Close;
L_GiveMilk:
delitem "Milk", 1;
set @cat, 1;
callsub S_Update_Katze;
set @catNeedsAlone, 1;
- close;
+ goto L_Close;
L_HasMilk:
mes "There is milk in it.";
- close;
+ goto L_Close;
L_NeedsFood:
mes "The milk is gone!";
@@ -60,25 +60,25 @@ L_NeedsFood:
menu
"Put in a steak.", L_GiveSteak,
"Leave it alone.", -;
- close;
+ goto L_Close;
L_GiveChicken:
delitem "ChickenLeg", 1;
set @cat, 2;
callsub S_Update_Katze;
set @catNeedsAlone, 1;
- close;
+ goto L_Close;
L_GiveSteak:
delitem "Steak", 1;
set @cat, 2;
callsub S_Update_Katze;
set @catNeedsAlone, 1;
- close;
+ goto L_Close;
L_HasFood:
mes "There is some food in it.";
- close;
+ goto L_Close;
L_NeedsFur:
mes "And it's empty!";
@@ -88,18 +88,18 @@ L_NeedsFur:
menu
"Put a white fur next to the pot.", L_GiveFur,
"Leave it alone.", -;
- close;
+ goto L_Close;
L_GiveFur:
mes "You put down the fur, but the cat doesn't seem to take any notice. Maybe there's something else you could do. You pick the fur up again.";
- close;
+ goto L_Close;
L_NeedsWood:
if (countitem("RawLog") > 0)
menu
"Put a wooden log next to the pot.", L_GiveWood,
"Leave it alone.", -;
- close;
+ goto L_Close;
L_GiveWood:
delitem "RawLog", 1;
@@ -107,13 +107,14 @@ L_GiveWood:
callsub S_Update_Katze;
set @catNeedsAlone, 1;
mes "You put the wooden log next to the pot. The cat eyes it suspiciously, but remains on her spot.";
- close;
+ goto L_Close;
L_HasWood:
mes "A wooden log is patiently lying next to it.";
- close;
+ goto L_Close;
-L_Finished:
+L_Close:
+ set @cat, 0;
close;
S_Update_Katze: