summaryrefslogblamecommitdiff
path: root/npc/00000SAVE/smiths/009-1_silversmith.txt
blob: 9be3acc8b1942175f4c6ec086606d639704452a4 (plain) (tree)




























































































































                                                                                                    
009-1,43,32,0	script	Silversmith	NPC135,{

    mes "[Smith Silvers]";
    mes "\"Hello, I am your local silversmith, here for all of your smithing needs!\"";
    goto L_Smithmenu;

L_Smithmenu:
    menu
        "Can you smith my Short Sword?", L_Sword,
        "How about a Crusade Helmet?", L_Helm,
        "Can you silver my Forest Bow?", L_Bow,
        "I'd like my Clover Silvered.", L_Clover,
        "I think I have everything I need, thanks.", L_close;

L_Sword:
    mes "[Smith Silvers]";
    mes "\"I can, it will cost you 9 Silver Ore, 5 Raw Coal, and 40,000 gp.\"";
    menu
        "Sure.", L_sword2,
        "What a ripoff!  No way!", L_close;

L_Helm:
    mes "[Smith Silvers]";
    mes "\"I can silver that helmet for 6 Silver Ore, 9 Raw coal, and 50,000 gp.\"";
    menu
        "Here you go.", L_helm2,
        "Are you nuts?! Forget it!", L_close;

L_Bow:
    mes "[Smith Silvers]";
    mes "\"I can silver that bow for 18 Silver Ore, 18 Raw Coal, and 200,000 gp.\"";
    menu
        "Sure.", L_bow2,
        "Whoa, that's way too much.", L_close;

L_Clover:
    mes "[Smith Silvers]";
    mes "\"I can silver your clover for 4 Silver Ore, 5 Raw Coal, and 50,000 gp.\"";
    menu
        "I have them right here.", L_Clover2,
        "Whoa, that's way too much.", L_close;

L_sword2:
    if (countitem("SilverOre") < 9) goto L_Missing;
    if (countitem("RawCoal") < 5) goto L_Missing;
    if (countitem("ShortSword") < 1) goto L_Missing;
    if (Zeny < 40000) goto L_NotEnoughMoney;
    delitem "SilverOre", 9;
    delitem "RawCoal", 5;
    delitem "ShortSword", 1;
    Zeny = Zeny - 40000;
    getitem "SilverSword", 1;
    mes "[Smith Silvers]";
    mes "\"There you go! Want me to silver anything else?\"";
    menu
        "Yes.", L_Smithmenu,
        "Nope.", L_No;

L_helm2:
    if (countitem("SilverOre") < 6) goto L_Missing;
    if (countitem("RawCoal") < 9) goto L_Missing;
    if (countitem("UnsilveredCrusadeHelmet") < 1) goto L_Missing;
    if (Zeny < 50000) goto L_NotEnoughMoney;
    delitem "RawCoal", 9;
    delitem "SilverOre", 6;
    delitem "UnsilveredCrusadeHelmet", 1;
    Zeny = Zeny - 50000;
    getitem "CrusadeHelmet", 1;
    mes "[Smith Silvers]";
    mes "\"There you go.  Would you like anything else silvered?\"";
    menu
        "Yes.", L_Smithmenu,
        "No.", L_No;

L_bow2:
    if (countitem("SilverOre") < 18) goto L_Missing;
    if (countitem("RawCoal") < 18) goto L_Missing;
    if (countitem("ForestBow") < 1) goto L_Missing;
    if (Zeny < 200000) goto L_NotEnoughMoney;
    delitem "RawCoal", 18;
    delitem "SilverOre", 18;
    delitem "ForestBow", 1;
    Zeny = Zeny - 200000;
    getitem "SilverBow", 1;
    mes "[Smith Silvers]";
    mes "\"There you go.  Would you like anything else silvered?\"";
    menu
        "Yes.", L_Smithmenu,
        "No.", L_No;

L_Clover2:
        if (countitem("SilverOre") < 4) goto L_Missing;
        if (countitem("RawCoal") < 5) goto L_Missing;
        if (countitem("FourLeafClover") < 1) goto L_Missing;
        if (Zeny < 50000) goto L_NotEnoughMoney;
        delitem "RawCoal", 5;
        delitem "SilverOre", 4;
        delitem "FourLeafClover", 1;
        Zeny = Zeny - 50000;
        getitem "SilverFourLeafAmulet", 1;
        mes "[Smith Silvers]";
        mes "\"There you go.  Would you like anything else silvered?\"";
        menu
            "Yes.", L_Smithmenu,
            "No.", L_No;

L_Missing:
    mes "[Smith Silvers]";
    mes "\"It looks like you're missing some items.  Please come back when you have what I need!\"";
    goto L_close;

L_NotEnoughMoney:
    mes "[Smith Silvers]";
    mes "\"You don't have enough money, come back later!\"";
    goto L_close;

L_No:
    mes "[Smith Silvers]";
    mes "\"Have a great day!\"";
    goto L_close;

L_close:
    close;
}