summaryrefslogtreecommitdiff
path: root/npc/031-2_Angelas_House/cindyHouse.txt
diff options
context:
space:
mode:
authorJessica Tölke <jtoelke@mail.upb.de>2010-12-29 21:20:39 +0100
committerJessica Tölke <jtoelke@mail.upb.de>2010-12-29 21:20:39 +0100
commitc884add9efd2a76072a0be64c6c84c73dc0bb2bc (patch)
tree80549fa09463a90f789f482cd72ceac8be46538d /npc/031-2_Angelas_House/cindyHouse.txt
parentd029a77cc27e27caa18a5cbd1015e4bdeac971d2 (diff)
downloadserverdata-c884add9efd2a76072a0be64c6c84c73dc0bb2bc.tar.gz
serverdata-c884add9efd2a76072a0be64c6c84c73dc0bb2bc.tar.bz2
serverdata-c884add9efd2a76072a0be64c6c84c73dc0bb2bc.tar.xz
serverdata-c884add9efd2a76072a0be64c6c84c73dc0bb2bc.zip
Rescue Cindy quest
works, except: rewards, yeti battle, npc sprites
Diffstat (limited to 'npc/031-2_Angelas_House/cindyHouse.txt')
-rw-r--r--npc/031-2_Angelas_House/cindyHouse.txt64
1 files changed, 64 insertions, 0 deletions
diff --git a/npc/031-2_Angelas_House/cindyHouse.txt b/npc/031-2_Angelas_House/cindyHouse.txt
new file mode 100644
index 00000000..4dc6b595
--- /dev/null
+++ b/npc/031-2_Angelas_House/cindyHouse.txt
@@ -0,0 +1,64 @@
+// 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
+//
+
+//TODO: picture
+031-2.gat,22,25,0 script Cindy 114, {
+
+ set @Q_Nivalis_state_MASK, NIBBLE_5_MASK;
+ set @Q_Nivalis_state_SHIFT, NIBBLE_5_SHIFT;
+
+ set @rescue_Cindy, ((QUEST_Nivalis_state & @Q_Nivalis_state_MASK) >> @Q_Nivalis_state_SHIFT);
+
+ if (@rescue_Cindy > 2) goto L_Happy_Random;
+
+ mes "...";
+ close;
+
+L_Happy_Random:
+ getinventorylist;
+ set @candy, rand(50);
+ if (@inventorylist_count < 100 && @candy == 42) goto L_Candy;
+
+ setarray @quote_Cindy$, "Thank you so much for rescueing me!",
+ "My mother made really tasty cookies yesterday. But I already ate them all...",
+ "I want to go ice skating tomorrow. That will be fun!",
+ "I wonder, when Daddy will come home next time. He always brings exciting stuff!",
+ strcharinfo(0) + "! You're my hero!",
+ "My mother is so upset about the Yetis - they are very very shy usually. You have to be lucky to see one. I wonder, what's wrong with them.",
+ "When I'm a little older, I want to travel like you do and my father. I want to see every place on the world!",
+ "Did you ever meet Santa? He's very kind! He always gives me some candy, when we go to see him.",
+ strcharinfo(0) + ", you are sooo strong! Amazing! But my dad is strong too!";
+ set @random, rand(9);
+ set @quote$, "\"" + @quote_Cindy$[@random] + "\"";
+ mes "[Cindy]";
+ mes @quote$;
+ close;
+
+L_Candy:
+ mes "[Cindy]";
+ mes "\"Santa gave me some candy! Please, take that!\"";
+ getitem "Candy", 1;
+ close;
+
+S_Update_Mask:
+ set QUEST_Nivalis_state,
+ (QUEST_Nivalis_state & ~(@Q_Nivalis_state_MASK))
+ | (@rescue_Cindy << @Q_Nivalis_state_SHIFT);
+ return;
+}
+
+
+
+
+
+
+
+
+
+
+
+
+