diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-05-18 21:51:37 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-05-18 21:51:37 -0300 |
commit | 5ffed0cc27d26c7a9fff3f289fb4711626e3f10f (patch) | |
tree | 239af9012fda07e7351e4a4ad4a8f6e79ad99a19 | |
parent | 9eb41b519c61f2530e187c4e523c043238ef7c92 (diff) | |
download | serverdata-5ffed0cc27d26c7a9fff3f289fb4711626e3f10f.tar.gz serverdata-5ffed0cc27d26c7a9fff3f289fb4711626e3f10f.tar.bz2 serverdata-5ffed0cc27d26c7a9fff3f289fb4711626e3f10f.tar.xz serverdata-5ffed0cc27d26c7a9fff3f289fb4711626e3f10f.zip |
Finish workers script. No script errors were found, but does it works? Who knows...
-rw-r--r-- | npc/020-7/workers.txt | 49 |
1 files changed, 47 insertions, 2 deletions
diff --git a/npc/020-7/workers.txt b/npc/020-7/workers.txt index 580cf78c8..5643c9389 100644 --- a/npc/020-7/workers.txt +++ b/npc/020-7/workers.txt @@ -100,8 +100,53 @@ OnInit: 020-7,50,31,2 script Lenita NPC_BLUESAGEWORKER_FA,{ - goodbye; - end; + function askQuestion; + .@q=getq(NivalisQuest_BlueSage); + // Teuvo said you're helping to collect some of the missing bookpages to repair the books. That's very kind of you! It's so much work to do, so every bit of help is welcome. + // Wow, Ensio told me you collected so many of the lost book pages. + if (.@q == 12) { + mesn; + mesq l("You did a good job. Rest a bit. There's still one chair."); + close; + } + mesn; + mesq l("Oh, hello. You didn't choose a good time to visit. The library is a total mess. The slimes got out of control and ate most of the books."); + next; + mesn; + mesq l("We're trying to repair some of the valuable and important books. It's so much work!"); + next; + mesn; + mesq l("I was up until late last night, and woke up so early today... I'm having a break right now."); + if (BSQuestion(.@q)) + askQuestion(BSQuestion(.@q)); + close; + +function askQuestion { + .@qs=getarg(0); + do { + .@q=getq(NivalisQuest_BlueSage); + next; + select + 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("With a mask? Yeah, I remember. That was a strange guy. He came to visit the library, but he lurked around at the workshop area and they had to send him back to the books."); + // It's safe in this context, don't worry + if (.@q % 3 == 0) + setq1 NivalisQuest_BlueSage, .@q + 1; + break; + case 2: + mesn; + mesq l("Mh, I can't really tell since I usually work in the library while he works at the workshop. Maybe you should ask around among the people who work there."); + break; + } + } while (@menu != 3); + close; +} OnInit: .sex=G_FEMALE; |