summaryrefslogtreecommitdiff
path: root/npc/020-7-1/sage.txt
blob: 3d03a084930ed162d1d3dfaef2184ef25f42ef7e (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
// TMW2 scripts.
// Authors:
//    Jesusalva
//    TMW Org.
// Description:
//    Blue Sage (and officers)

// Peetu: Move to 020-7 (so, not on this file)

// Oskari: Need to be placed somewhere here (on this file, variant B)

020-7-1,35,59,0	script	The Blue Sage	NPC_BLUESAGE,{
    .@cindy=($@CINDY_STATE < gettimetick(2));
    .@q=getq(NivalisQuest_BlueSage);
    mesn l("Nikolai, the Blue Sage");
    if (is_night())
        .@t$=l("Good evening");
    else
        .@t$=l("Good morning");
    mesq .@t$ + l(", my name is Nikolai. I am a sage, and the owner of this place.");
    next;
    mesn l("Nikolai, the Blue Sage");
    mesq l("Not only that, but I am also Angela's husband and Nivalis Mayor. If you have any issues, you can go straight to me.");
    if (.@cindy) {
        mesc l("Nikolai takes a sweat of his head. He seems worried with Cindy.");
    }
    next;
    select
        rif(.@q, l("I came here to talk about the World's Edge.")),
        rif(.@cindy, l("Aren't you Cindy's father? Why don't you go to her rescue?")),
        l("Please excuse me, Blue Sage Nikolai.");
    mes "";
    switch (@menu) {
        case 1:
            // Quest ends at stage 12
            if (.@q == 12) {
                mesc b(l(".:: Main Quest 4-1 ::.")), 3;
                mesc l("* Get information about the World Edge"), 1;
                mesc l("@@ You need to wait further releases to continue this quest!", b(l("WARNING:")));
                close;
            }
            // You must solve the issue here, first
            mesn l("Nikolai, the Blue Sage");
            mesq l("Well, I would love to, but the house is a mess.");
            next;
            mesn l("Nikolai, the Blue Sage");
            mesq l("All Peetu have been doing the past hours was crying, and crying, and crying some more. I can't barely sleep hearing his cries from my room.");
            next;
            mesn l("Nikolai, the Blue Sage");
            mesq l("Not only that, but he is the only one here besides me who can do magic. Without him, I have to work doubled.");
            next;
            mesn l("Nikolai, the Blue Sage");
            mesq l("He should be crying in the far northeast corner of this library. Can you go there to see him?");
            next;
            mesn l("Nikolai, the Blue Sage");
            mesq l("Once he resumes working confiantly, we can go over this important subject.");
            break;
        case 2:
            // Quest ends at stage 12
            if (.@q != 12) {
                mesn l("Nikolai, the Blue Sage");
                mesq l("The house is a mess. They need me here. Also.");
                next;
            }
            mesn l("Nikolai, the Blue Sage");
            mesq l("Just like every cave below the woodlands are under the Terranite King domains, every land covered in snow is under the Yeti King's domains.");
            next;
            mesn l("Nikolai, the Blue Sage");
            mesq l("It would be unwise to pick a fight with the Yeti King himself. The whole town would suffer.");
            next;
            mesn l("Nikolai, the Blue Sage");
            mesq l("However, the situation is different if someone from Hurnscald went there. That's why I ask you to help my Cindy.");
            next;
            mesn l("Nikolai, the Blue Sage");
            mesq l("However, talk to my wife first. And to someone who knows more about Yetis. I think someone on Hurnscald Household knew a lot about them.");
            break;
    }
    close;

OnInit:
    npcsit;
    end;
}