summaryrefslogtreecommitdiff
path: root/npc/001-3-1/smith.txt
blob: 4878f283f30fccdc4ac07c8c84b3f51aa3f7e6cb (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
// TMW2 scripts.
// Author:
//    Jesusalva
// Description:
//    Debug functions for Craft Systems


001-3-1,52,86,0	script	GM Black Smithy	NPC_NO_SPRITE,{
    if ($EVENT$ == "") goto L_Offline;
    if ($@GM_OVERRIDE) goto L_Master;
    mesc l("Welcome to Saulc's Magic Smith Table!");
    mesc l("What will you craft today?");
    mesc l("Operation cost: %s GP", fnum(1000)), 1;
    if (Zeny < 1000) close;
    if (SmithSystem()) {
        Zeny -= 1000;
        mesc l("Success!"), 3;
    } else {
        mesc l("That didn't work!"), 1;
    }
    close;

L_Master:
    mesc l("Welcome to Saulc's Magic Smith Table!");
    mesc l("This forge will prepare equipment for you, no skill required!");
    mesc l("What will you craft today?");
    if (SmithSystem(CRAFT_NPC))
        mesc l("Success!"), 3;
    else
        mesc l("That didn't work!"), 1;
    close;

L_Offline:
    npctalk3 l("Oops! Seems like Saulc doesn't wants you messing on his raging furnaces!");
    close;

OnInit:
    .distance=5;
    end;
}

001-3-1,62,86,0	duplicate(GM Black Smithy)	GM Black Smithy#1	NPC_NO_SPRITE