summaryrefslogtreecommitdiff
path: root/npc/001-2-27/don.txt
blob: 9db092b1fe513787606e74ed10e8ce058a81c3aa (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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
// Evol scripts.
// Author:
//    Reid
//    Jesusalva
// Description:
//    Don the blacksmith of Artis

001-2-27,35,29,0	script	Don#001-2-27	NPC_HUMAN_MALE_OLD,{
    function improve_equipment;
    function card_explanation;
    function take_apprentice;
    function good_blacksmith;

    speech S_LAST_NEXT,
        l("Hi, what do you want kiddo?");

    do
    {
        switch (.@q = select(l("How can I improve my equipment?"),
                              l("What is a card?"),
                              l("Are you a good blacksmith?"),
                              l("Do you take apprentices?"),
                              l("Nothing.")))
        {
            case 1:
                improve_equipment();
                break;
            case 2:
                card_explanation();
                break;
            case 3:
                good_blacksmith();
                break;
            case 4:
                take_apprentice();
                break;
            case 5:
                break;
        }
    } while (.@q != 5);

    goodbye;
    close;

function improve_equipment {
    speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
        l("Different ways, each part of your equipment can be generally upgraded."),
        l("You rarely use the full potential of your equipment. As they say, a master weapon in a noob's hands is a noob weapon with wasted potential. But the more you use them, the better you can harness this power."),
        l("Power obtained from proficiency will be noted down near the equipment name. There may be illegal ways to raise proficiency without hard work. But things obtained without hard work are not worth it."),
        l("You can also improve your equipment in a totally different way with the use of cards."),
        l("By last, a master craftsman can make equipment much better than a less skilled one. Equipment made by measure are much better than those bought at shops as well.");
    return;
}

function card_explanation {
    speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
        l("There are two different kinds of cards, the first changes the style of your clothes, the second changes their stats."),
        l("I am not an expert of the first kind, but I know what I am talking about when it comes to improving equipment."),
        l("A stat card works on different pieces of equipment."),
        l("Each piece of equipment has a predefined slot number."),
        l("Each card improves your gear by a ratio or a fixed number on a predefined stat."),
        l("Like, a defensive mythril card can be used on any mythril equipment, and it will improve the defense by 5% of the latter."),
        l("You just have to select the card, then you choose which piece of equipment you want to use it on, and you are done."),
        l("I am also aware that you can slot runestones and even gemstones to equipment as well. Some of them have magic properties.");
    return;
}

function take_apprentice {
    speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
        l("I do not.");

    emotion E_UPSET;

    select(l("What about Chelios?"));

    speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
        l("Chelios was stubborn in his youth, he never stopped annoying me with his questions while I was working at the forge."),
        l("He did not change while growing up, I repeatedly asked him to leave the forge but in the end he installed himself in front of it..."),
        l("He is mature and he rarely ask questions so I am fine. I can not stand the sight of a whiner anyway.");
    return;
}

function good_blacksmith {
    speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
        l("I do not like to brag about it but you won't find a better blacksmith on the whole island."),
        l("If you need somebody to craft a weapon or a plate from diagrams I am the one that you need.");

    switch (select(l("Can I craft them myself?"),
                    l("Ok.")))
    {
        case 1:
            speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
                l("You can try if you know the recipe, but your chance of success is lesser than a well trained smith and master craftsman.");
            .@s = SmithSystem(CRAFT_SMITHERY);
            if (.@s)
                mesc l("Success!"), 3;
            else
                mesc l("That didn't work!"), 1;
            next;
            break;
        case 2:
            break;
    }

    return;
}

OnInit:
    .distance = 4;
    end;
}