summaryrefslogtreecommitdiff
path: root/npc/guilds/forge.txt
blob: 0d192e9fe71772baeb4ecb6a0156b45c18d69a51 (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
// Moubootaur Legends Script
// Author:
//    Jesusalva
// Description:
//  Guild Facility - Blacksmith Area

guilds,24,27,0	script	Guild Blacksmith	NPC_NO_SPRITE,{
    select
        l("Forge a new item"),
        rif(is_staff(), "Tweak an item"),
        l("Remove an item tweaks");
    mes "";
    if (@menu == 2) {
        SmithTweakSystem();
        close;
    }
    if (@menu == 3) {
        SmithTweakReset();
        close;
    }

    // Script begins here
    do
    {
        mesc l("What will you forge today?");
        mesc l("You might need to have a @@ equipped for some recipes!", getitemlink(Knife));
        if (SmithSystem(CRAFT_GUILD))
        {
            mesc l("Success!"), 3;
            next;
        }
        else
        {
            mesc l("That didn't work!"), 1;
            next;
        }
        mesc l("Try again?");
    } while (askyesno() == ASK_YES);
    close;

OnInit:
    .distance=2;
    end;
}