summaryrefslogtreecommitdiff
path: root/npc/020-7-1/oskari.txt
blob: 903c58aa1d33875567ae9de5f0bfbae32fbfd13b (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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
// TMW2 scripts.
// Authors:
//    Jesusalva
//    TMW Org.
// Description:
//    Helper boss
//
// NivalisQuest_BlueSage STRUCTURE
//  FIELD 1:
//      INVESTIGATION
//      1 - STBY OUTSIDE
//      2 - ACCESS GRANTED
//      3 - QUEST ASSIGNED BY PEETU - talk to Oskari (and others)
//      4 - Oskari is OK with peetu, but wanna hear from others. He also sends you
//          to ask what Peetu happened
//      5 - Adultered ingredients seems the cause, report to Elias
//      6 - Elias is now worried about a visitor. Ask people about and report.
//      7 - If everyone found the visitor, confirm Elias the worries
//      8 - Elias sent you to Oskari to inform the issue. Blue Sage probably knew all along.
//      will not advance unless everyone thinks Peetu is good.
//      9 - Oskari accepts the cause. Tells to report Peetu that it probably was
//          a saboutage, to check if the Silk Cocoon really was there.
//      10 - Peetu confirmed the saboutage. Report to Blue Sage.
//      11 - Blue Sage accepted the evidence, and explains about other sages issues.
//          It's not known who or what is behind this. He excuses for making you waste
//          your time. He asks you to return to him later, as he needs to write letters.
//      12 - QUEST COMPLETE - You collected your reward
//          Also picked up a letter for Frostia Mayor, about the incident (Main Story).
//  FIELD 2:
//      Bitwise (BS_QVISITOR)
//  FIELD 3:
//      Bitwise (BS_QHELPER)

020-7-1,122,29,0	script	Oskari	NPC_BLUESAGEWORKER_FB,{
    function pIdle;

    function pPeetu; // Peetu sent you to them
    function pElias; // Elias sent you to them
    function pComplete;

    .@q=getq(NivalisQuest_BlueSage);
    switch (.@q) {
        case 2:
            pIdle();
            break;
        case 3:
            pPeetu();
            break;
        case 4:
        case 5:
        case 6:
        case 7:
            pIdle();
            break;
        case 8:
            pElias();
            break;
        case 9:
        case 10:
        case 11:
            pIdle();
            break;
        case 12:
            pComplete();
            break;
        default:
            warp "Save", 0, 0;
            percentheal -100, -100;
            end;
            break;
    }
    close;


// Here we begin
function pIdle {
    mesn;
    mesq l("You have to excuse me, as you might have heard we're having some trouble at the moment and I, as Chief of Nikolai's household staff, have a lot to do.");
    close;
}

// Here we begin
function pPeetu {
    mesn;
    mesq l("You have to excuse me, as you might have heard we're having some trouble at the moment and I, as Chief of Nikolai's household staff, have a lot to do.");
    next;
    select
        l("Ok, see you."),
        l("Peetu asked me to talk to you about his mishap.");
    mes "";
    if (@menu == 1)
        close;
    mesn;
    mesq l("So, what did he said?");
    next;
    mesn strcharinfo(0);
    mesq l("He is blaming himself and is afraid of losing his job.");
    next;
    mesn;
    mesq l("Well... Can't say I'm surprised. He is very perfectionist. Putting on himself the blame is something he would do.");
    next;
    mesn;
    mesq l("Well, all humans does mistakes... Wait, he is an elf. So, everyone commit mistakes. Anyway...");
    next;
    mesc l("@@ stops, and keep silent for a while, thinking, before continuing.", .name$);
    next;
    mesn;
    mesq l("You know, he is very experienced and reliable. He might look and act like a kid, but he is at least a century old.");
    next;
    mesn;
    mesq l("This whole situation is very disquieting, not to say suspicious. There might be something more to it that we're not seeing.");
    next;
    mesn;
    mesq l("It might be just my gut instict, but... Would you be willing to talk with Peetu and the other helpers, investigating what actually happened?");
    next;
    mesn;
    mesq l("The whole team is very distressed, too. Could you take the opportunity to see if the team is putting the blame on Peetu? Thanks in advance.");
    next;
    mesn;
    mesq l("Please tell Peetu I do not plan in firing him, it should calm him down. And please carry out an investigation, don't disrupt my work until you're done.");
    setq1 NivalisQuest_BlueSage, 4;
    close;
}

// Here we begin
function pElias {
    mesn;
    mesq l("ERROR ELIAS");
    close;
}

// Here we begin
function pComplete {
    mesn;
    mesq l("Thanks again for your investigations. It was a great help.");
    close;
}


OnInit:
    initpath "move", 122, 29,
             "dir", UP, 0,
             "wait", 15, 0,
             "dir", LEFT, 0,
             "move", 56, 29,
             "wait", 3, 0,
             "dir", RIGHT, 0,
             "wait", 7, 0,
             "dir", LEFT, 0,
             "wait", 7, 0,
             "dir", DOWN, 0,
             "move", 55, 48,
             "wait", 3, 0,
             "dir", RIGHT, 0,
             "wait", 10, 0,
             "dir", DOWN, 0,
             "wait", 10, 0,
             "dir", LEFT, 0,
             "wait", 3, 0,
             "move", 26, 46,
             "dir", UP, 0,
             "wait", 4, 0,
             "dir", RIGHT, 0,
             "wait", 4, 0,
             "dir", DOWN, 0,
             "wait", 2, 0,
             "move", 25, 77,
             "wait", 3, 0,
             "dir", RIGHT, 0,
             "wait", 10, 0;
            // And go back to Peetu, which is very far away, 'cause I'm lazy
    initialmove;
    initnpctimer;

    .sex=G_FEMALE;
    .distance=5;
    end;
}