summaryrefslogblamecommitdiff
path: root/npc/guilds/forge.txt
blob: 0d192e9fe71772baeb4ecb6a0156b45c18d69a51 (plain) (tree)
1
2
3
4
5
6
7
8
9






                                                               

                              

                                         




                           



                          

                         






















                                                                                             
// 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;
}