summaryrefslogtreecommitdiff
path: root/npc/008-3-5/nunia.txt
blob: fb5238f2680c493e791a637da7ce1016fa7aa223 (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
// Evol scripts.
// Author:
//    Micksha
// Description:
//    Nunia, Henry's friend and Woodland's master thief.
// THIS IS A PLACEHOLDER!

008-3-5,35,65,0	script	Nunia	NPC_NUNIA,{
    function nuniaIntruder;
    function nuniaHenry;
    function nuniaBegin;

    // What do we have here?
    .@q=getq(ThiefQuests_Artis);
    switch (.@q) {
        case 7:
            nuniaHenry();
            break;
        case 8:
        case 9:
            nuniaBegin();
            // TODO: Script control; Transfer quest variable authority
            break;
        default:
            nuniaIntruder();
            break;
    }
    close;

///////////////////////////////////////////////////////////////////////////////
function nuniaIntruder {
    speech
        l("Who dares to enter this cave? Who are you?"),
        l("At least, you look peaceful."),
        lg("Let's do like this: You leave me alone, and I don't mess with you. Deal?");
    select
        l("Deal."),
        l("No deal, I'm going to report you to authorities!");
    mes "";
    // Some meta option/dialog to improve the immersion
    if (@menu == 2) {
        mesn;
        mesq l("There's only one problem, you know...");
        next;
        mesn;
        mesq l("The dead can't speak.");
        percentheal -100, -100;
    }
    return;
}

function nuniaHenry {
    mesn;
    mesq l("Your smell... Did Henry sent you here? How cute of him!");
    next;
    mesn;
    mesq l("I've raised too much suspicion, so my friends told me to lay low for a while.");
    next;
    mesn;
    mesq l("The Brotherhood is watching our movements, they already suspect who is a member and who isn't, but they don't know for sure.");
    next;
    mesn;
    mesq l("Therefore, we had to cut off our connection with Artis. Don't want Brotherhood to find the secrets of our structure.");
    setq1 ThiefQuests_Artis, 8;
    return;
}

function nuniaBegin {
    speech
        l("Who dares to enter this cave? Who are you?"),
        l("At least, you look peaceful. And I see by your fingers that you can deal with lockpicks."),
        l("I am going to teach you all what a thief needs to know, later"),
        l("Call for Micksha and Jesusalva to implement all this, please."),
        l("And Tanveer, our president in Tulimshar, should be able to give you even more training. If you manage to find our headquarters, of course, hahaha!");
    return;
}

OnInit:
    .bodytype = BODYTYPE_2;
    .distance = 4;
    end;
}