summaryrefslogtreecommitdiff
path: root/npc/001-1/sophialla.txt
blob: d2bb67605464d91fd90b7c313c735c60feab822c (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
// Evol scripts.
// Author:
//    Micksha
// Description:
//    Sophialla, the connection between Artis and the Brotherhood in Hurns.
// THIS IS A PLACEHOLDER!

001-1,73,40,0	script	Sophialla#001-1	NPC_SOPHIALLA,{
    .@q=getq(General_Brotherhood);
    if (!.@q)
    {
        speech
            l("Hello."),
            l("Can't you see I am reading? Please go, please.");
        close;
    }
    speech
        l("Hello."),
        l("Can't you see I am reading? If you need something, tell me the secret password.");
    // TODO: Use a token to know password or whatever
    select
        l("Sorry to disturb you."),
        rif(getq(ArtisQuests_MonaDad) == 3, l("Sagratha is great.")),
        l("I don't know the password");
    mes "";
    if (@menu == 2)
    {
        // TODO: Tell to look for Henry TODO: Change curious eye conditional
        speech
            l("If you visit the sewers again... You'll find secret passages..."),
            l("Look for the hideout, but tell no one about this. Then, say the password again.");
        compareandsetq General_Brotherhood, 1, 2;
    }

    speech
        lg("If you don't know it, just go, please.");
    close;

OnLegionComplete:
    restorecam;
    mesn "???";
    mesc l("A strange voice seems to be calling out your name.");
    next;
    // NOTE: Sophialla is more than 15 tiles of distance from player
    // Server refuses to send client data about where she is and that makes
    // setcamnpc fail. This is why I set .alwaysVisible attribute to true.
    // Note: you can work around with coordinates, but she won't be drawn.
    setcamnpc "Sophialla#001-1";
    mesn;
    mesq l("Hey. ppst. I have something important to tell you.");
    next;
    mesn;
    mesq l("I just can't remember what. But come talk to me later once devs becomes less lazy.");
    setq General_Brotherhood, 1;
    next;
    restorecam;
    closeclientdialog;
    close;

OnInit:
    .sex = G_FEMALE;
    .distance = 2;
    .alwaysVisible = true;
    end;
}