summaryrefslogtreecommitdiff
path: root/npc/00000SAVE/cindy/cindyHouse.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-10-22 15:44:03 -0200
committerJesusaves <cpntb1@ymail.com>2018-10-22 15:44:03 -0200
commitf85cfc3aeb5427b75d16e61d13d19b85c8cedb0f (patch)
treeb0345dac6f2bbd0315e60641d45d7ab9b7930ff7 /npc/00000SAVE/cindy/cindyHouse.txt
parent7a8ecf074b08f8593db3c96759e9b5a32965121f (diff)
downloadserverdata-f85cfc3aeb5427b75d16e61d13d19b85c8cedb0f.tar.gz
serverdata-f85cfc3aeb5427b75d16e61d13d19b85c8cedb0f.tar.bz2
serverdata-f85cfc3aeb5427b75d16e61d13d19b85c8cedb0f.tar.xz
serverdata-f85cfc3aeb5427b75d16e61d13d19b85c8cedb0f.zip
This is more less how the quest will go about. Add to 0000SAVE some related scripts.
Diffstat (limited to 'npc/00000SAVE/cindy/cindyHouse.txt')
-rw-r--r--npc/00000SAVE/cindy/cindyHouse.txt51
1 files changed, 51 insertions, 0 deletions
diff --git a/npc/00000SAVE/cindy/cindyHouse.txt b/npc/00000SAVE/cindy/cindyHouse.txt
new file mode 100644
index 000000000..76a1b3a14
--- /dev/null
+++ b/npc/00000SAVE/cindy/cindyHouse.txt
@@ -0,0 +1,51 @@
+
+031-2,27,26,0 script Cindy#house NPC197,{
+ @Q_Nivalis_state_MASK = NIBBLE_5_MASK;
+ @Q_Nivalis_state_SHIFT = NIBBLE_5_SHIFT;
+
+ @rescue_Cindy = ((QUEST_Nivalis_state & @Q_Nivalis_state_MASK) >> @Q_Nivalis_state_SHIFT);
+
+ if (@rescue_Cindy > 2) goto L_Happy_Random;
+
+ mes "...";
+ goto L_close;
+
+L_Happy_Random:
+ getinventorylist;
+ @candy = rand(50);
+ 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...",
+ "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 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!";
+ @random = rand(9);
+ if (@random != 5)
+ emotion EMOTE_HAPPY;
+ @quote$ = "\"" + @quote_Cindy$[@random] + "\"";
+ mes "[Cindy]";
+ mes @quote$;
+ goto L_close;
+
+L_Candy:
+ mes "[Cindy]";
+ mes "\"Santa gave me some candy! Please, take that!\"";
+ getitem "Candy", 1;
+ goto L_close;
+
+L_close:
+ @Q_Nivalis_state_MASK = 0;
+ @Q_Nivalis_state_SHIFT = 0;
+ @rescue_Cindy = 0;
+ @candy = 0;
+ @inventorylist_count = 0;
+ @random = 0;
+ @quote$ = "";
+ close;
+}