summaryrefslogtreecommitdiff
path: root/npc/031-2_Angelas_House/angelaHouse.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/angelaHouse.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/angelaHouse.txt')
-rw-r--r--npc/031-2_Angelas_House/angelaHouse.txt114
1 files changed, 114 insertions, 0 deletions
diff --git a/npc/031-2_Angelas_House/angelaHouse.txt b/npc/031-2_Angelas_House/angelaHouse.txt
new file mode 100644
index 00000000..93ea2228
--- /dev/null
+++ b/npc/031-2_Angelas_House/angelaHouse.txt
@@ -0,0 +1,114 @@
+// author: Jenalya
+// reviewed by:
+// state0, 1, 2: you shouldn't be able to come here
+// state3: it's your first visit, you can choose a reward
+// state4: you can do daily quests with white and yellow presents boxes
+//
+
+//TODO: picture
+031-2.gat,24,26,0 script Angela 154, {
+
+ 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 == 4) goto L_Hello_Again;
+ if (@rescue_Cindy == 3) goto L_Reward;
+
+ mes "...";
+ close;
+
+L_Reward:
+ mes "[Angela]";
+ mes "\"Hello " + strcharinfo(0) + ", thank you again. I'm so glad, Cindy is back home safe.\"";
+ next;
+ mes "\"As I told you, my husband is an adventurer. He is at one of his travels, so he couldn't rescue Cindy himself.\"";
+ next;
+ mes "\"I want to give you one of his treasures. Beside of all the junk he brings, there are some very valuable things.\"";
+ next;
+ mes "\"This item is called the Rock Knife. When you wield it, you feel as robust as a rock.\"";
+
+ getinventorylist;
+ if (@inventorylist_count == 100) goto L_Full_Inv;
+
+ getitem "RockKnife", 1;
+
+ set @rescue_Cindy, 4;
+ callsub S_Update_Mask;
+
+ next;
+ mes "\"I hope, this will be useful for you.\"";
+ next;
+ mes "\"I's so glad, Cindy is save now. But there is still another problem. The Yetis took away all the white and yellow present boxes we wanted to bring to Santa!\"";
+ next;
+ mes "\"Usually, Yetis are very shy - I wonder why they do that. There is something strange going on.\"";
+ next;
+ mes "\"May I ask you for help again? I'll give you a small reward for every 3 boxes of one color you bring me.\"";
+ close;
+
+L_Full_Inv:
+ mes "\"Oh, it seems you carry so much stuff - I will keep it for you until you can take it.\"";
+ close;
+
+L_Hello_Again:
+ mes "[Angela]";
+ mes "\"Hello! Good to see you again. Please warm yourself.\"";
+ next;
+ menu
+ "I just wanted to say hello.",-,
+ "I have some yellow present boxes.",L_Yellow,
+ "I have some white present boxes.",L_White;
+ close;
+
+L_Yellow:
+ set @dq_level, 70;
+ set @dq_cost, 32;
+ set @dq_count, 3;
+ set @dq_name$, "YellowPresentBox";
+ set @dq_friendly_name$, "yellow present box";
+ set @dq_money, 5300;
+ set @dq_exp, 1300;
+
+ callfunc "DailyQuest";
+
+ next;
+
+ if (@dq_return ==4) mes "\"Santa will be glad to have them back.\"";
+ close;
+
+L_White:
+ set @dq_level, 80;
+ set @dq_cost, 64;
+ set @dq_count, 3;
+ set @dq_name$, "WhitePresentBox";
+ set @dq_friendly_name$, "white present box";
+ set @dq_money, 10800;
+ set @dq_exp, 2800;
+
+ callfunc "DailyQuest";
+
+ next;
+
+ if (@dq_return ==4) mes "\"You are a great help!\"";
+ close;
+
+S_Update_Mask:
+ set QUEST_Nivalis_state,
+ (QUEST_Nivalis_state & ~(@Q_Nivalis_state_MASK))
+ | (@rescue_Cindy << @Q_Nivalis_state_SHIFT);
+ return;
+}
+
+
+
+
+
+
+
+
+
+
+
+
+