diff options
author | Jessica Tölke <jtoelke@mail.upb.de> | 2013-01-09 23:23:55 +0100 |
---|---|---|
committer | Jessica Tölke <jtoelke@mail.upb.de> | 2013-01-09 23:23:55 +0100 |
commit | b4bafa632ed35fd7bb6a2c1a2d186bf0f24a1723 (patch) | |
tree | ec9e8c5ea8f0f64a2b0e94285dd627d877f723bd /world/map/npc/015-3/katze.txt | |
parent | 1623d7da9290f57bcd0dfe41f61a9581b5a78198 (diff) | |
download | serverdata-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/katze.txt')
-rw-r--r-- | world/map/npc/015-3/katze.txt | 36 |
1 files changed, 20 insertions, 16 deletions
diff --git a/world/map/npc/015-3/katze.txt b/world/map/npc/015-3/katze.txt index 229e38f8..75e87be3 100644 --- a/world/map/npc/015-3/katze.txt +++ b/world/map/npc/015-3/katze.txt @@ -38,7 +38,7 @@ L_NeedsMilk: next; menu "Throw a stone at the cat.", L_ThrowStone, "Leave the cat alone.", -; - close; + goto L_Close; L_ThrowStone: set @cat, 0; @@ -47,7 +47,7 @@ L_ThrowStone: warp "015-1.gat", 60, 32; mes "\"GRAAUWL! Hissss...\""; mes "Yikes, the cat attacked you! Your whole body is scratched. Maybe throwing a stone wasn't such a great idea..."; - close; + goto L_Close; L_PreNeedsFood: L_NeedsFood: @@ -57,7 +57,7 @@ L_NeedsFood: menu "Throw a stone at the cat.", L_ThrowStone, "Leave the cat alone.", -; - close; + goto L_Close; L_PreNeedsFur: @@ -74,7 +74,7 @@ L_NeedsFur: menu "Throw a stone at the cat.", L_ThrowStone, "Leave the cat alone.", -; - close; + goto L_Close; L_MoveFur: delitem "WhiteFur", 1; @@ -83,7 +83,7 @@ L_MoveFur: mes "The cat jumps at the fur! You quickly let go of it. The cat happily returns to its spot, carrying the fur in its mouth."; next; mes "The cat drops the fur and looks at you with half opened eyes. Suddenly she starts talking, and says: \"That was very kind of you.\" She seems to be smiling."; - close; + goto L_Close; L_NeedsWood: mes "[Katze]"; @@ -94,16 +94,16 @@ L_NeedsWood: menu "Want this piece of wood?", L_GiveWood, "Ok, see you later.", -; - close; + goto L_Close; L_GiveWood: mes "[Katze]"; mes "\"Sure! Please put it next to the pot.\""; - close; + goto L_Close; L_PreNeedsStuff: mes "The cat is still eyeing the piece of wood. She probably needs to be left alone for a bit again."; - close; + goto L_Close; L_NeedsStuff: set @cat, 5; @@ -116,7 +116,7 @@ L_NeedsStuff: mes "2 White Furs,"; mes "2 Hard Spikes and"; mes "2 Tiny Healing Potions.\""; - close; + goto L_Close; L_NeedsStuff2: mes "[Katze]"; @@ -126,7 +126,7 @@ L_NeedsStuff2: "Look here.", L_CatChecksStuff, "What do you need again?", L_WhatsNeeded, "No, I haven't got everything yet.", -; - close; + goto L_Close; L_WhatsNeeded: mes "[Katze]"; @@ -135,7 +135,7 @@ L_WhatsNeeded: menu "Please tell me.", L_Please, "Never mind.", -; - close; + goto L_Close; L_Please: mes "[Katze]"; @@ -146,7 +146,7 @@ L_Please: mes "2 White Furs,"; mes "2 Hard Spikes and"; mes "2 Tiny Healing Potions.\""; - close; + goto L_Close; L_CatChecksStuff: if (countitem("SnakeSkin") > 1 @@ -158,7 +158,7 @@ L_CatChecksStuff: goto L_GiveStuff; mes "[Katze]"; mes "\"You don't seem to have everything yet. Come back later when you do.\""; - close; + goto L_Close; L_GiveStuff: delitem "SnakeSkin", 2; @@ -172,12 +172,12 @@ L_GiveStuff: set @catNeedsAlone, 1; mes "[Katze]"; mes "\"Nicely done! Now leave me alone for a while, I need some time to prepare your present.\""; - close; + goto L_Close; L_PreGainEars: mes "[Katze]"; mes "\"Please leave me alone for a while, so I can prepare your present.\""; - close; + goto L_Close; L_GainEars: getitem "CatEars", 1; @@ -189,7 +189,7 @@ L_GainEars: mes "\"Look what I made for you! It makes you look a bit like me! Maybe it will give you a feeling of what it is like to be a cat.\""; mes "The cat winks at you."; mes "[You gain " + @xpval + " experience points]"; - close; + goto L_Close; L_Finished: mes "[Katze]"; @@ -197,6 +197,10 @@ L_Finished: mes "\"Meow, fellow cat.\""; if (getequipid(equip_head) != 1217) mes "\"Meow. Lost your ears?\""; + goto L_Close; + +L_Close: + set @cat, 0; close; S_Update_Katze: |