From 588062447363407a1abeba34d1f3f564c022b613 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 22 Oct 2018 15:31:03 -0200 Subject: Angela is complete. Now only 021-4 CINDY quest logic, and the house, and rewards, are missing. --- npc/019-2/angela.txt | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 52 insertions(+), 1 deletion(-) (limited to 'npc') diff --git a/npc/019-2/angela.txt b/npc/019-2/angela.txt index 446773e94..4937b69bc 100644 --- a/npc/019-2/angela.txt +++ b/npc/019-2/angela.txt @@ -35,7 +35,58 @@ // >1500000000: Cindy is safely at home (until this date +%s) 019-2,75,25,0 script Angela#Outside NPC_ELF_F,{ - hello; end; + if ($@CINDY_STATE > gettimetick(2)) + goto L_Safe; + if (BaseLevel < 60) { hello; end; } + if ($@CINDY_STATE % 2 == 0) goto L_Worried; + if (getq(NivalisQuest_Cindy) == 0) goto L_Start; + mesn; + mesq l("Please find my lovely daughter!"); + close; + +L_Safe: + mesn; + mesq l("Ah, what a wonderful day."); + close; + +L_Worried: + mesn; + mesq l("The group of warriors which went into the cave to rescue my precious Cindy still haven't returned... I'm worried with them, too..."); + close; + +L_Start: + mesn; + mesq l("My daughter! My precious Cindy, why it had to be you?!"); + next; + mesn; + mesq l("Please, help my precious! Save her! Oh, my precious Cindy..."); + next; + mesn col(l("Rescuing Cindy Quest"),1); + mesc l("You are about to accept a high-risk quest. You cannot complete it alone."), 1; + mesc l("Help the distressed woman to save her daughter? ALL PLAYERS are penalized with failures."), 1; + select + l("[Decline Quest]"), + l("[Accept Quest]"); + if (@menu == 1) { + mesn strcharinfo(0); + mesq lg("Sorry 'mam, I forgot courage on my other set of pants. This one doesn't have enough defense for it."); + close; + } + mesn; + mesq l("Awful Yetis kidnapped my daughter, and brought her to the cave. Please save her!"); + next; + mesn; + mesq l("Ah, but don't distress them if you can't save her! My precious daughter life is more important than anything!"); + next; + mesn; + mesq l("I'll reward you and your friends in an appropriate way, but if you endanger her... Oh, my poor Cindy..."); + next; + mesc l("[Quest Accepted]"), 1; + mesc l("Rescue Cindy from the Ice Labyrinth and the evil Yetis. This is a global, multiplayer quest."), 1; + channelmes("#world", strcharinfo(0) + " said to be brave enough to help Angela rescuing her daughter!"); + setq NivalisQuest_Cindy, 1; + close; + OnInit: .@npcId = getnpcid(0, .name$); -- cgit v1.2.3-70-g09d2