From da014e76778d55f0c90f47e07a2d66715d51099f Mon Sep 17 00:00:00 2001 From: Jessica Tölke Date: Thu, 16 Feb 2012 00:37:49 +0100 Subject: Blue sage quests --- world/map/npc/048-2/helperMYetiClaw.txt | 96 +++++++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 world/map/npc/048-2/helperMYetiClaw.txt (limited to 'world/map/npc/048-2/helperMYetiClaw.txt') diff --git a/world/map/npc/048-2/helperMYetiClaw.txt b/world/map/npc/048-2/helperMYetiClaw.txt new file mode 100644 index 00000000..805d8a5e --- /dev/null +++ b/world/map/npc/048-2/helperMYetiClaw.txt @@ -0,0 +1,96 @@ +// Part of Blue Sage quests +// author: Jenalya +// see bluesageConfig for detailed quest description +// Santeri asks for Yeti Claws to make glue for repairing the books +// can give second hint about Peetu in investigation subquest + +048-2.gat,97,78,0|script|Santeri|366,{ + + set @investigate, ((QUEST_BlueSage & $@Q_BlueSageInvestigate_MASK) >> $@Q_BlueSageInvestigate_SHIFT); + set @claw_amount, 8; + set @claw_exp, 10000; + + if (QUEST_BlueSage & $@Q_BlueSageMaterialClaw) goto L_Done; + if (BaseLevel >= $@Q_BlueSageMinimumLevel) goto L_Quest; + + mes "[Santeri]"; + mes "\"Hm. Please don't disturb me, I'm trying to concentrate.\""; + goto L_Close; + +L_Quest: + mes "[Santeri]"; + mes "\"Welcome. Are you an adventurer? I could need some help.\""; + menu + "I am. What heroic action is needed?",-, + "How can I help?",-, + "I'm not interested.",L_Close; + mes "[Santeri]"; + mes "\"You see, we're working on repairing all the damaged books and creating new ones for those that are lost."; + mes "Therefore we need a lot of glue, but our supplies are nearly used up. I need " + @claw_amount + " Yeti Claws as ingredient to make new glue. Do you have that?\""; + menu + "Yes, here you go.",-, + "I need to look in my storage.",L_Close, + "No, sorry.",L_Investigate; + if(countitem("YetiClaw") < @claw_amount) + goto L_NoItem; + delitem "YetiClaw", @claw_amount; + getexp @claw_exp, 0; + set QUEST_BlueSage, (QUEST_BlueSage | $@Q_BlueSageMaterialClaw); + mes "[Santeri]"; + mes "\"Great! Thank you!\""; + goto L_Investigate; + +L_Done: + mes "[Santeri]"; + mes "\"Thanks to you our glue supply is replenished and we can repair those books.\""; + goto L_Investigate; + +L_NoItem: + mes "[Santeri]"; + mes "\"What are you telling me? You don't have it!\""; + goto L_Close; + +L_Investigate: + if ((@investigate == 3) || (@investigate == 4)) goto L_Ask_Visitor; + if ((@investigate == 5) || (@investigate == 8)) goto L_Ask_Helper; + if ((@investigate == 6) || (@investigate == 7) || (@investigate == 9) || (@investigate == 10)) goto L_Ask_Both; + goto L_Close; + +L_Ask_Visitor: + menu + "Can you tell me something about the visitor with the mask?",L_Visitor, + "I need to leave.",L_Close; + +L_Ask_Helper: + menu + "What's your impression about Peetu and how he does his work?",L_Helper, + "See you later.",L_Close; + +L_Ask_Both: + menu + "Can you tell me something about the visitor with the mask?",L_Visitor, + "What's your impression about Peetu and how does he do his work?",L_Helper, + "Bye.",L_Close; + +L_Visitor: + mes "[Santeri]"; + mes "\"There was a visitor with a mask? I didn't notice. You see, I spent most of my time in the workshop, and concentrate on my work. There are other helpers who attend to the visitors. And hopefully keep them from disturbing my concentration.\""; + goto L_Close; + +L_Helper: + mes "[Santeri]"; + mes "\"Oh, that's an interesting question. I was really surpised when I heard that he was responsible for the sealing spell. I've worked together with him once in a while, and I have to say, it really was a pleasure. He's very accurate and diligent, but also polite and helpful.\""; + next; + mes "\"I really wonder what went wrong with that sealing spell, I can't imagine Peetu messing up something such important.\""; + if ((@investigate != 5) && (@investigate != 6) && (@investigate != 7)) + goto L_Close; + set @investigate, @investigate + 3; + callfunc "updateBlueSageInvestigate"; + goto L_Close; + +L_Close: + set @investigate, 0; + set @claw_amount, 0; + set @claw_exp, 0; + close; +} -- cgit v1.2.3-60-g2f50