summaryrefslogtreecommitdiff
path: root/npc/020-7-1/eevert.txt
blob: 5e3f3f1934ec421a0f1fc0fdfbad1383caef41db (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
// TMW2 scripts.
// Authors:
//    Jesusalva
//    TMW Org.
// Description:
//    Workers which produces pages
//    helperM*

// NivalisQuest_BlueSagePagemaker STRUCTURE
//  FIELD 1:
//      MAIN STATE
//  FIELD 2:
//      BOOK MAKING QUEST
//      1 - Illustrations delivered (BS_PMINK)
//      2 - Bindings delivered (BS_PMBINDING)
//      4 - Pages delivered (BS_PMPAGE)
//      8 - Glue delivered (BS_PMGLUE)
//      =15: All items delivered

020-7-1,34,56,0	script	Eevert	NPC_BLUESAGEWORKER_MA,{
    function askQuestion;
    .@qt=getq2(NivalisQuest_BlueSagePagemaker);
    mesn;
    if (.@qt & BS_PMINK)
        mesq l("Thanks for your help with the inks! Now I'll be able to fulfill my tasks adequately. Some of these books were really valuable, and it's important to recreate them as good as possible.");
    else
        mesq l("Mh. I wonder how I'm expected to perform my task with this meager equipment. The new books will look pathetic.");

    // Begin here
    askQuestion();
    .@qt=getq2(NivalisQuest_BlueSagePagemaker);
    mes "";
    mesn;
    mesq l("I'm doing the covers and illustrations for the new books we create from the pieces of the old ones.");
    next;
    mesn;
    mesq l("But due to all of the chaos from when the slimes escaped, most of the phials of colored ink were broken. How am I supposed to do the illustrations without color?");
    next;
    mesn;
    mesq l("I could make ink myself, but I am lacking some material...");
    next;
    mes l("@@/@@ @@", countitem(CobaltHerb),    50, getitemlink(CobaltHerb));
    mes l("@@/@@ @@", countitem(GambogeHerb),   50, getitemlink(GambogeHerb));
    mes l("@@/@@ @@", countitem(AlizarinHerb),  50, getitemlink(AlizarinHerb));
    mes l("@@/@@ @@", countitem(ArtichokeHerb), 50, getitemlink(ArtichokeHerb));
    mes l("@@/@@ @@", countitem(MauveHerb),     50, getitemlink(MauveHerb));
    mes l("@@/@@ @@", countitem(MaggotSlime),   10, getitemlink(MaggotSlime));
    mes l("@@/@@ @@", countitem(DuckFeather),   1, getitemlink(DuckFeather));
    next;
    mesn;
    mesq l("Hehe... Some material... %%5");
    next;
    select
        l("Uh... Yeah, that's not funny."),
        l("Worry not, I have them with me.");
    mes "";
    if (@menu == 1) {
        mesn;
        mesq l("I agree with you. Most of these materials can't even be found on Nivalis.");
        next;
        mesn;
        mesq l("I guess I'll need to try to work with whatever ink is left until the supplies arrive next month...");
        close;
    }
    if (countitem(CobaltHerb)   < 50 ||
        countitem(GambogeHerb)  < 50 ||
        countitem(AlizarinHerb) < 50 ||
        countitem(ArtichokeHerb) < 50 ||
        countitem(MauveHerb)    < 50 ||
        countitem(MaggotSlime)  < 10 ||
        countitem(DuckFeather)  < 1) {
        mesn;
        mesq l("Do you know how to count, maggot? %%5");
        next;
        mesn;
        mesq l("You should be ASHAMED of yourself, you liar.");
        close;
    }
    delitem CobaltHerb,     50;
    delitem GambogeHerb,    50;
    delitem AlizarinHerb,   50;
    delitem ArtichokeHerb,  50;
    delitem MauveHerb,      50;
    delitem MaggotSlime,    10;
    delitem DuckFeather,     1;
    setq2 NivalisQuest_BlueSagePagemaker, .@qt|BS_PMINK;
    getexp 3535, 215; // 20% from references, rounded up. It's part of main story.
    // is present. REMEMBER THIS IS A LEVEL 36/16 QUEST, REGARDLESS IF EVERYONE DECIDES
    // TO DO IT AT LEVEL 40. Exp reward will not change. It's main story, too.
    // Besides, it gives Job Experience, which is not common.
    mesn;
    mesq l("Wonderful! Now I can prepare the ink for magnificent illustrations! You're very generous.");
    close;

function askQuestion {
    .@qs=BSQuestion(getq(NivalisQuest_BlueSage));
    do {
        .@q=getq(NivalisQuest_BlueSage);
        .@q2=getq2(NivalisQuest_BlueSage);
        .@q3=getq3(NivalisQuest_BlueSage);
        .@qt=getq2(NivalisQuest_BlueSagePagemaker);
        next;
        select
            rif(!(.@qt & BS_PMINK), l("What is your problem?")),
            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("Not my problem."));
        mes "";
        switch (@menu) {
            case 2:
                mesn;
                mesq l("A visitor? I don't really pay attention to visitors, unless it's someone notable.");
                break;
            case 3:
                mesn;
                mesq l("Ah, Peetu. I really appreciate his sense for high quality work. The requirements to become a helper of a sage are already high, but Peetu is outstanding. He has a talent for magic and combined with his diligence, it's quite remarkable.");
                next;
                mesn;
                mesq l("That's why I'm really confused about this situation, since he was the one performing the sealing of the slimes. I wonder what went wrong.");
                if (!(.@q3 & .bsId))
                    setq3 NivalisQuest_BlueSage, .@q3 | .bsId;
                break;
            case 4:
                close;
        }
    } while (@menu != 1);
    return;
}

OnInit:
    .bsId=BS_NPC02;
    .sex=G_MALE;
    .distance=5;
    npcsit;
    end;
}