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






                                                               









                                         






















                                                                                             
// 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");
    mes "";
    if (@menu == 2) {
        SmithTweakSystem();
        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;
}