summaryrefslogtreecommitdiff
path: root/npc/020-7/elias.txt
blob: 51b694325b59096bf0875095d02b577445d2b22f (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
// TMW2 scripts.
// Authors:
//    Jesusalva
//    TMW Org.
// Description:
//    Controls access to Blue Sage Residence
//    Minimum level: 36 (implicit)

// NivalisQuest_BlueSage STRUCTURE
//  FIELD 1:
//      INVESTIGATION
//      1 - ACCESS GRANTED
//      2~10 - FOLLOW LOGIC
//  FIELD 2:
//      BOOK MAKING QUEST
//  FIELD 3:
//      SLIME HUNTING QUEST

020-7,44,41,0	script	#BlueSageEntry	NPC_HIDDEN,1,1,{
OnTouch:
    .@q=getq(NivalisQuest_BlueSage);
    if (!.@q) {
        slide 42, 43;
        doevent "Elias::OnAccessDenied";
    }
    end;
}

020-7,40,41,0	script	Elias	NPC_BLUESAGEWORKER_MA,{
    mesn;
    mesq l("Hello, and welcome to Blue Sage's Residence, Library, and Nivalis Townhall.");
    // TODO
    .@q=getq(NivalisQuest_BlueSage);
    if (.@q)
        close;
    next;
    mesn;
    mesq l("Due to a recent incident involving slimes, the building is closed to public visits.");
    .@q=getq(General_Narrator);
    select
        l("That's sad to hear."),
        rif(.@q == 10, l("I have a letter from Rakinorf.")),
        l("What happened?");
        mes "";
    goodbye;
    close;

OnAccessDenied:
    npctalk3 l("You can't go in there!");
    end;

OnInit:
    .sex=G_MALE;
    .distance=5;
    end;

}