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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
|
// TODO: Silversmith on 24, 25
017-5,24,25,0 script Silversmith NPC135,{
mesn "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:
mesn "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:
mesn "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:
mesn "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:
mesn "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;
mesn "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;
mesn "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;
mesn "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;
mesn "Smith Silvers";
mes "\"There you go. Would you like anything else silvered?\"";
menu
"Yes.", L_Smithmenu,
"No.", L_No;
L_Missing:
mesn "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:
mesn "Smith Silvers";
mes "\"You don't have enough money, come back later!\"";
goto L_close;
L_No:
mesn "Smith Silvers";
mes "\"Have a great day!\"";
goto L_close;
L_close:
close;
}
|