diff options
-rw-r--r-- | db/quest_db.conf | 4 | ||||
-rw-r--r-- | db/re/item_db.conf | 2 | ||||
-rw-r--r-- | npc/020-7-1/janitors.txt | 352 | ||||
-rw-r--r-- | npc/020-7-1/pagemakers.txt | 76 |
4 files changed, 418 insertions, 16 deletions
diff --git a/db/quest_db.conf b/db/quest_db.conf index f69c70c86..2d1dc57e1 100644 --- a/db/quest_db.conf +++ b/db/quest_db.conf @@ -327,6 +327,10 @@ quest_db: ( Id: 116 Name: "NivalisQuest_BlueSage" }, +{ + Id: 117 + Name: "NivalisQuest_BlueSageSlimes" +}, // ID 131 to 150: Frostia Quests { diff --git a/db/re/item_db.conf b/db/re/item_db.conf index 3ae57b552..d0d1c7beb 100644 --- a/db/re/item_db.conf +++ b/db/re/item_db.conf @@ -1744,7 +1744,7 @@ item_db: ( // Effect up on Aeros getmapxy(.@ma$,.@xa,.@ya,0); if (strpos(.@ma$, "001-") >= 0) - @type+=2; + @type=3; doevent "rand_sc_heal::OnUse"; getitem EmptyBottle, 1; "> diff --git a/npc/020-7-1/janitors.txt b/npc/020-7-1/janitors.txt index 5cc687897..637cd0821 100644 --- a/npc/020-7-1/janitors.txt +++ b/npc/020-7-1/janitors.txt @@ -6,6 +6,11 @@ // In charge to clear the mess // helperCleaning* + helperJanitor +// Quest: NivalisQuest_BlueSageSlimes +// 1: Acception state +// 2: Killed Slimes Control +// 3: Killed Nests Control + 020-7-1,50,63,6 script Pyry NPC_BLUESAGEWORKER_MB,{ npctalk3 l("I warn about dangers and controls the fights."); goodbye; @@ -20,10 +25,90 @@ OnInit: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 020-7-1,53,39,0 script Nea NPC_BLUESAGEWORKER_FA,{ - npctalk3 l("Crybaby about slimes"); - goodbye; - end; + function askQuestion; + mesn; + mesq l("Oh, hello. If I were you I wouldn't go deeper into the library. There are still some of those monsters left. Slipping between the bookshelves."); + askQuestion(); + close; + +function askQuestion { + do { + .@qs=getq(NivalisQuest_BlueSage); + .@qt=getq2(NivalisQuest_BlueSageSlimes); + next; + if (.@qt >= 255) { + mesn; + mesq l("I feel much safer now that you defeated the slimes. Thanks so much! Do you need anything else?"); + } else if (.@qt) { + mesn; + mesq l("\"Oh, I'm so glad you're taking care of those scary slimes. You're so brave! How many of them are still left, do you think? Will it be safe to go there soon?"); + } else { + mesn; + mesc l("She shudders."); + mesq l("And they can explode! Nothing in the world could make me go in there. I'll just do my work right here, clean the floor and tidy up the books, and I'm keeping my eyes open in case they get over here."); // Cleaning the floor, aham. ¬.¬ + next; + mesn; + mesq l("Do you need anything else?"); + } + mes ""; + select + rif(.@qt < 255, ""), + rif(.@qs & BS_QVISITOR, l("Do you know anything about the strange visitor?")), + rif(.@qs & BS_QHELPER, l("What's your opinion of Peetu and his work?")), + any(l("I need to leave."), l("See you."), l("Bye.")); + mes ""; + switch (@menu) { + case 2: + mesn; + mesq l("With a mask? Mh, I think I know who are you talking about. I vaguely remember that there was someone with a mask... but I can't recall any details, I wasn't really paying attention."); + break; + case 3: + mesn; + mesq l("Petu? Yeah, he's the kind of person who always wants to do things perfectly. That makes it a bit difficult to work with him, since his expectations for others are as high as for himself."); + next; + mesn; + mesq l("I really wonder how that accident could've happened. I'd have never expected him to mess something up like that."); + if (is_between(4, 7, .@q)) + setq1 NivalisQuest_BlueSage, .@q + 3; + break; + } + } while (@menu != 4); + close; +} OnInit: .sex=G_FEMALE; @@ -34,10 +119,95 @@ OnInit: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 020-7-1,79,70,0 script Arvo NPC_BLUESAGEWORKER_MA,{ - npctalk3 l("Investigation."); - goodbye; - end; + function askQuestion; + mesn; + mesq l("Oh, this is so much work... I can't believe they let this happen! You would think they'd be careful when playing around with such powerful forces. Hah! Big mistake!"); + askQuestion(); + close; + +function askQuestion { + do { + .@qs=getq(NivalisQuest_BlueSage); + .@qt=getq2(NivalisQuest_BlueSageSlimes); + next; + if (.@qt >= 255) { + mesn; + mesq l("Good work with the slimes. This will make our task much easier."); + next; + mesn; + mesc l("*sigh*"); + mesq l("It appears we were focusing too much on research and this lead to neglect of other duties of a Sage's household. This is dangerous in times of changes. I'm worried about the future."); + } else if (.@qt) { + mesn; + mesc l("*sighs*"); + mesq l("We really appreciate your help with the slimes."); + } else { + mesn; + mesq l("It's dangerous in the library right now, be careful. Do you need anything else?"); + } + mes ""; + select + rif(.@qt < 255, ""), + rif(.@qs & BS_QVISITOR, l("Do you know anything about the strange visitor?")), + rif(.@qs & BS_QHELPER, l("What's your opinion of Peetu and his work?")), + any(l("I need to leave."), l("See you."), l("Bye.")); + mes ""; + switch (@menu) { + case 2: + mesn; + mesq l("Yes, I remember that one! I welcomed him in the libary and showed him around. But I didn't have the impression he was really listening to what I was saying, though that's hard to tell with the mask."); + next; + mesn; + mesq l("But when I left him to look at the books on his own, he sneaked over to the workshop area. Visitors are allowed to have a look there, but only if they don't interfere with any research and experiments. But it seems he was being rather disturbing, since they sent them back to the library part."); + next; + mesn; + mesq l("I tried to keep an eye on him after that, but when I got distracted by some newly arriving visitor he went over to the workshop again! Usually I enjoy my job, because I like talking to people, but this guy... was a pain, really."); + // It's safe in this context, don't worry + if (.@qs % 3 == 0) + setq1 NivalisQuest_BlueSage, .@qs + 1; + break; + case 3: + mesn; + mesq l("Peetu? That's one of the high rank helpers. As far as I know, he's capable of magic and takes part in some important researches. But I don't really know about those things."); + break; + } + } while (@menu != 4); + close; +} OnInit: .sex=G_MALE; @@ -48,10 +218,90 @@ OnInit: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 020-7-1,62,83,0 script Kristian NPC_BLUESAGEWORKER_MA,{ - npctalk3 l("Same as Arvo."); - goodbye; - end; + function askQuestion; + mesn; + mesq l("Welcome. Please don't go deeper into the library, there are still some slimes left. But in spite of that we have made quite a bit of progress. You should have seen the mess just after most of the slimes escaped!"); + askQuestion(); + close; + +function askQuestion { + do { + .@qs=getq(NivalisQuest_BlueSage); + .@qt=getq2(NivalisQuest_BlueSageSlimes); + next; + if (.@qt >= 255) { + mesn; + mesq l("I'm so glad that you took care of the remaining slimes. Thanks! Do you need anything else?"); + } else if (.@qt) { + mesn; + mesq l("Wow, it's really generous of you to fight those slimes for us. Do you need anything else?"); + } else { + mesn; + mesq l("Do you need anything else?"); + } + mes ""; + select + rif(.@qt < 255, ""), + rif(.@qs & BS_QVISITOR, l("Do you know anything about the strange visitor?")), + rif(.@qs & BS_QHELPER, l("What's your opinion of Peetu and his work?")), + any(l("I need to leave."), l("See you."), l("Bye.")); + mes ""; + switch (@menu) { + case 2: + mesn; + mesq l("Oh, there was such a visitor, yes. Strange guy, and didn't really know how to behave. He sneaked into the workshop area all the time, I think he was rather curious about the things going on there."); + next; + mesn; + mesq l("But still, he can't just walk in there, fiddle with the experiments and disturb the helpers doing their work."); + // It's safe in this context, don't worry + if (.@qs % 3 == 0) + setq1 NivalisQuest_BlueSage, .@qs + 1; + break; + case 3: + mesn; + mesq l("Peetu? I think he's a good guy. Very focused on his work, I think. I don't have that much to do with him, so I can't really tell."); + break; + } + } while (@menu != 4); + close; +} OnInit: .sex=G_MALE; @@ -61,10 +311,88 @@ OnInit: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 020-7-1,40,78,0 script Mirjami NPC_BLUESAGEWORKER_FA,{ - npctalk3 l("Checking storage, rewards instead of Pyry when quest is complete."); - goodbye; - end; + function askQuestion; + mesn; + mesq l("Where is it? Everything's upside down. These terrible slimes."); + askQuestion(); + close; + +function askQuestion { + do { + .@qs=getq(NivalisQuest_BlueSage); + .@qt=getq2(NivalisQuest_BlueSageSlimes); + next; + if (.@qt >= 255) { + mesn; + mesq l("I heard you fought the slimes that were still roaming between the bookshelves. Thank you!"); + next; + mesn; + mesq l("I was a bit worried that they might ruin our efforts by messing everything up again after we just cleaned."); + } else { + mesn; + mesq l("I'm just searching for some cleaning supplies. They must be somewhere around here, but everything went upside down when the slimes escaped."); + } + mes ""; + select + rif(.@qt == 255, "Did you found the supplies yet?"), + rif(.@qs & BS_QVISITOR, l("Do you know anything about the strange visitor?")), + rif(.@qs & BS_QHELPER, l("What's your opinion of Peetu and his work?")), + any(l("I need to leave."), l("See you."), l("Bye.")); + mes ""; + switch (@menu) { + case 1: + mesn; + mesq l("Not yet, blame Jesusalva, your reward was with them"); + //setq2 NivalisQuest_BlueSageSlimes, 256; // TODO + break; + case 2: + mesn; + mesq l("Ohh, I think I know who you mean. That was a strange guy. He always came over here in the workshop, said he's very interested in the research. I suppose that's ok, but he didn't keep his hands to himself, and touched some experiments and I caught him near some storage racks."); + next; + mesn; + mesq l("Visitors should keep away from those!"); + // It's safe in this context, don't worry + if (.@qs % 3 == 0) + setq1 NivalisQuest_BlueSage, .@qs + 1; + break; + case 3: + mesn; + mesq l("Oh, eh, why are you asking me? I've only been here a short while and don't really know all of the people well enough yet."); + break; + } + } while (@menu != 4); + close; +} OnInit: .sex=G_FEMALE; diff --git a/npc/020-7-1/pagemakers.txt b/npc/020-7-1/pagemakers.txt index 427e170ee..7d1aa1a65 100644 --- a/npc/020-7-1/pagemakers.txt +++ b/npc/020-7-1/pagemakers.txt @@ -295,9 +295,79 @@ OnInit: 020-7-1,36,31,4 script Santeri NPC_BLUESAGEWORKER_MA,{ - npctalk3 l("I make glue with... not yeti claws, for sure."); - goodbye; - end; + function askQuestion; + .@q2=getq2(NivalisQuest_BlueSage); + mesn; + if (.@q2 & BS_PMGLUE) + mesq l("Thanks to you, our glue supply is replenished and we can repair those books."); + else + mesq l("Welcome. Are you an adventurer? I could use some help."); + + // Begin here + askQuestion(); + .@q2=getq2(NivalisQuest_BlueSage); + mes ""; + mesn; + mesq l("You see, we're working on repairing all of the damaged books and creating new ones for those that were lost."); + next; + mesn; + mesq l("Therefore we need a lot of glue, but our supplies are nearly used up. I need @@/@@ @@ as ingredient to make new glue.", countitem(WolvernTooth), 3, getitemlink(WolvernTooth)); + next; + mesn; + mesq l("Do you have that? I have the other materials but I couldn't get it... @@ are too dangerous, they are level @@ monsters.", getmonsterlink(Wolvern), strmobinfo(3,Wolvern)); + if (countitem(WolvernTooth) < 3) + close; + next; + if (askyesno() == ASK_NO) { + mes ""; + mesn; + mesq l("That's a pity."); + close; + } + mes ""; + + delitem SilkCocoon, 60; + setq2 NivalisQuest_BlueSage, .@q2|BS_PMGLUE; + getexp 3535, 215; // 20% from reference levels 36/16. It's part of main story. + // Exp reward will not change. It applies to Job Exp on same rate. + mesn; + mesq l("Great! Thank you!"); + close; + +function askQuestion { + .@qs=BSQuestion(getq(NivalisQuest_BlueSage)); + do { + .@q=getq(NivalisQuest_BlueSage); + .@q2=getq2(NivalisQuest_BlueSage); + next; + select + rif(!(.@q2 & BS_PMGLUE), any(l("Can I help you?"), l("I am. What heroic action is needed?"))), + rif(.@qs & BS_QVISITOR, l("Do you know anything about the strange visitor?")), + rif(.@qs & BS_QHELPER, l("What's your opinion of Peetu and his work?")), + any(l("I need to leave."), l("See you."), l("Bye."), l("I'm just a lurker.")); + mes ""; + switch (@menu) { + case 2: + mesn; + mesq l("There was a visitor with a mask? I didn't notice. You see, I spend 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."); + break; + case 3: + mesn; + mesq l("Oh, that's an interesting question. I was really surprised when I heard that he was responsible for the failure. I've worked together with him before, and I have to say, it really was a pleasure. He's very accurate and diligent, but also polite and helpful."); + next; + mesn; + mesq l("I really wonder what went wrong. I can't imagine Peetu messing up something so important."); + if (is_between(4, 7, .@q)) + setq1 NivalisQuest_BlueSage, .@q + 3; + break; + case 4: + mesn; + mesq l("Hm. Then please don't disturb me, I'm trying to concentrate."); + close; + } + } while (@menu != 1); + return; +} OnInit: .sex=G_MALE; |