summaryrefslogtreecommitdiff
path: root/world/map/npc/031-2/cindyHouse.txt
diff options
context:
space:
mode:
authorJessica Tölke <jtoelke@mail.upb.de>2011-10-23 17:23:59 +0200
committerBen Longbons <b.r.longbons@gmail.com>2011-10-24 11:19:03 -0700
commit2b35d738f42386e52fdddeb639180ab5db8f072f (patch)
tree202d9526bedfd16b32ffa5c89e06994cc1adb0c2 /world/map/npc/031-2/cindyHouse.txt
parent53d83056e03af47c2d50da0949616d74f58ad53c (diff)
downloadclassic-serverdata-2b35d738f42386e52fdddeb639180ab5db8f072f.tar.gz
classic-serverdata-2b35d738f42386e52fdddeb639180ab5db8f072f.tar.bz2
classic-serverdata-2b35d738f42386e52fdddeb639180ab5db8f072f.tar.xz
classic-serverdata-2b35d738f42386e52fdddeb639180ab5db8f072f.zip
Changes in npc scripts on 031-x:
- change zeny to Zeny and baselevel to BaseLevel - set temporary variables to zero at the end of script - some adaptions on timer handling on the yeti fight
Diffstat (limited to 'world/map/npc/031-2/cindyHouse.txt')
-rw-r--r--world/map/npc/031-2/cindyHouse.txt21
1 files changed, 14 insertions, 7 deletions
diff --git a/world/map/npc/031-2/cindyHouse.txt b/world/map/npc/031-2/cindyHouse.txt
index beae6e0a..13db7106 100644
--- a/world/map/npc/031-2/cindyHouse.txt
+++ b/world/map/npc/031-2/cindyHouse.txt
@@ -1,8 +1,6 @@
// author: Jenalya
-// reviewed by:
// state0,1,2: you shouldn't be able to reach this place
// state3 and greater: Cindy is saved, she says one of some random phrases
-//
031-2.gat,27,26,0|script|Cindy|197, {
@@ -14,14 +12,13 @@
if (@rescue_Cindy > 2) goto L_Happy_Random;
mes "...";
- close;
+ goto L_Close;
L_Happy_Random:
getinventorylist;
set @candy, rand(50);
- if (@inventorylist_count < 100
- && @candy == 42)
- goto L_Candy;
+ if (@inventorylist_count < 100 && @candy == 42)
+ goto L_Candy;
setarray @quote_Cindy$, "Thank you so much for rescuing me!",
"My mother made really tasty cookies yesterday. But I already ate them all...",
@@ -38,12 +35,22 @@ L_Happy_Random:
set @quote$, "\"" + @quote_Cindy$[@random] + "\"";
mes "[Cindy]";
mes @quote$;
- close;
+ goto L_Close;
L_Candy:
mes "[Cindy]";
mes "\"Santa gave me some candy! Please, take that!\"";
getitem "Candy", 1;
+ goto L_Close;
+
+L_Close:
+ set @Q_Nivalis_state_MASK, 0;
+ set @Q_Nivalis_state_SHIFT, 0;
+ set @rescue_Cindy, 0;
+ set @candy, 0;
+ set @inventorylist_count, 0;
+ set @random, 0;
+ set @quote$, "";
close;
S_Update_Mask: