summaryrefslogtreecommitdiff
path: root/npc/020-7/workers.txt
blob: 2e7388e8fbb67bd35a9116686c61336cba80693c (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
// TMW2 scripts.
// Authors:
//    Jesusalva
//    TMW Org.
// Description:
//    Resting workers

020-7,46,30,6	script	Miro	NPC_BLUESAGEWORKER_MA,{
    function askQuestion;
    mesn;
    mesq l("I'm so tired... Slimes everywhere... Chaos everywhere... Yawn...");
    next;
    mesn;
    mesq l("After cleaning for twelve hours straight, they allowed me to rest a bit.");
    .@q=getq(NivalisQuest_BlueSage);
    switch (.@q) {
    case 1:
    case 2:
    case 13:
    case 14:
        break;
    case 3:
    case 4:
        askQuestion(.Q_VISITOR);
        break;
    case 5:
    case 8:
        askQuestion(.Q_HELPER);
        break;
    case 6:
    case 7:
    case 9:
    case 10:
        askQuestion(.Q_VISITOR | .Q_HELPER);
        break;
    default:
        next;
        mesn;
        mesq l("You did a good job too. Rest a bit, too. There's still one chair.");
        close;
    }
    close;

function askQuestion {
    .@qs=getarg(0);
    do {
        .@q=getq(NivalisQuest_BlueSage);
        next;
        select
            rif(.@qs & .Q_VISITOR, l("Do you know anything about the strange visitor?")),
            rif(.@qs & .Q_HELPER, 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? I really don't know. I'm usually in the workshop and most of the visitors spend their time in the library. Sometimes they come to have a quick look in the workshop too, but I don't really pay attention to that, so... I can't recall a visitor with a mask, sorry.");
                break;
            case 2:
                mesn;
                mesq l("Peetu? He is very cautious. It is not like him to make mistakes. After all, he is a elf. Elves are really careful with their jobs.");
                next;
                mesn;
                mesq l("If Nikolai's helpers weren't so carefully chosen, I'd think this was some kind of a bad joke from someone.");
                if (is_between(4, 7, .@q))
                    setq1 NivalisQuest_BlueSage, .@q + 3;
                break;
        }
    } while (@menu != 3);
    close;
}

OnInit:
    // Bitwise questions
    .Q_VISITOR=1;
    .Q_HELPER=2;

    .sex=G_MALE;
    .distance=5;
    npcsit;
    end;
}










































020-7,50,31,2	script	Lenita	NPC_BLUESAGEWORKER_FA,{
    goodbye;
    end;

OnInit:
    .sex=G_FEMALE;
    .distance=5;
    npcsit;
    end;
}