summaryrefslogtreecommitdiff
path: root/npc/001-2-0/resa.txt
blob: 1660b5d6e842a16ceb683714f32dd3e9a6fbb60f (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
// Evol scripts.
// Authors:
//    Reid
// Description:
//    Light Armor shop keeper.

001-2-0,37,28,0	script	Resa	NPC_ELVEN_FEMALE_ARMOR_SHOP,{

    function explain_craft {
        speech 5,
            l("Did you see Don the blacksmith? He might knows more about it if you want to improve your metal equipment."),
            l("Nevertheless, you can craft some cards that you can then attach to your equipment."),
            l("We sell a brimmed hat, you can craft a feather card and attach it to this hat to obtain an enhanced version of it!");

        return;
    }

    speech 4,
        l("Welcome to my office."),
        l("What would you like today?");

    do
    {
        .@q = select (l("[Trade]"),
                      l("How can I improve my equipment?"),
                      l("[Quit]"));
        switch (.@q)
        {
            case 1:
                closedialog;
                shop "Store#001-2-0";
                close;
            case 2:
                explain_craft;
                break;
            case 3:
                break;
        }
    } while (.@q != 3);

    closedialog;
    goodbye;
    close;

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