summaryrefslogtreecommitdiff
path: root/world/map/npc/002-2/inya.txt
blob: d05b19b4bb69b715d3631a68957cfcc2a0253276 (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
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
//Gemstones: Diamond (white) , Ruby (red), Emerald (green), Sapphire (blue), Topaz (yellow), Amethyst (purple)
//The power of the gems is important to future balance of these rings. Are they related to stats, tiers of power, schools of magic?

002-2.gat,116,61,0|shop|#InyaShop|127,SimpleRing:*1

002-2.gat,116,61,0|script|Inya|106
{
    mes "[Inya]";
    mes "\"I am Inya, a jeweler of fine rings. I sell and make rings.\"";
    next;
    mes "\"If you have a Simple Ring and a gem, I can set the gem in it for 100,000 gold pieces.\"";
    next;
    mes "\"Also, if you have a ring with gems on it, I can remove the gems and return the Simple Ring to you for 50,000 gold pieces.\"";
    next;
    mes "\"So, how can I help you?\"";
    menu
        "What jewelry do you have for sale?", L_Inya_Shop,
        "I have a wedding ring, will that do?", L_Inya_Wedding_Ring,
        "I'd like to remove a gem (50000 GP).", L_Inya_Remove_RingGem,
        "I'd like to add a gem (100000 GP).", L_Inya_Add_RingGem,
        "Not interested.", L_Inya_NotInterested;

L_Inya_Shop:
    close2;
    shop "#InyaShop";

L_Inya_Wedding_Ring:
    mes "[Inya]";
    mes "\"No, sorry. I do not alter wedding rings at this time.\"";
    close;

L_Inya_Remove_RingGem:
    mes "[Inya]";
    mes "\"What kind of gem would you like to have removed?\"";
    menu
        "Diamond.", L_Inya_Remove_Diamond,
        "Ruby.", L_Inya_Remove_Ruby,
        "Emerald.", L_Inya_Remove_Emerald,
        "Sapphire.", L_Inya_Remove_Sapphire,
        "Topaz.", L_Inya_Remove_Topaz,
        "Amethyst.", L_Inya_Remove_Amethyst,
        "I've changed my mind.", L_Inya_NotInterested;

L_Inya_Add_RingGem:
    mes "[Inya]";
    mes "\"What kind of gem would you like to add?\"";
    menu
        "Diamond.", L_Inya_Add_Diamond,
        "Ruby.", L_Inya_Add_Ruby,
        "Emerald.", L_Inya_Add_Emerald,
        "Sapphire.", L_Inya_Add_Sapphire,
        "Topaz.", L_Inya_Add_Topaz,
        "Amethyst.", L_Inya_Add_Amethyst,
        "I've changed my mind.", L_Inya_NotInterested;

L_Inya_Remove_Diamond:
    if ( (Zeny < 50000)
        | (countitem ("DiamondRing") < 1) )
            goto L_Inya_Not_Enough;
    set Zeny, Zeny - 50000;
    delitem "DiamondRing", 1;
    getitem "SimpleRing", 1;
    mes "[Inya]";
    mes "\"Here you go.\"";
    close;

L_Inya_Remove_Ruby:
    if ( (Zeny < 50000)
        | (countitem ("RubyRing") < 1) )
            goto L_Inya_Not_Enough;
    set Zeny, Zeny - 50000;
    delitem "RubyRing", 1;
    getitem "SimpleRing", 1;
    mes "[Inya]";
    mes "\"Here you go.\"";
    close;

L_Inya_Remove_Emerald:
    if ( (Zeny < 50000)
        | (countitem ("EmeraldRing") < 1) )
            goto L_Inya_Not_Enough;
    set Zeny, Zeny - 50000;
    delitem "EmeraldRing", 1;
    getitem "SimpleRing", 1;
    mes "[Inya]";
    mes "\"Here you go.\"";
    close;

L_Inya_Remove_Sapphire:
    if ( (Zeny < 50000)
        | (countitem ("SapphireRing") < 1) )
            goto L_Inya_Not_Enough;
    set Zeny, Zeny - 50000;
    delitem "SapphireRing", 1;
    getitem "SimpleRing", 1;
    mes "[Inya]";
    mes "\"Here you go.\"";
    close;

L_Inya_Remove_Topaz:
    if ( (Zeny < 50000)
        | (countitem ("TopazRing") < 1) )
            goto L_Inya_Not_Enough;
    set Zeny, Zeny - 50000;
    delitem "TopazRing", 1;
    getitem "SimpleRing", 1;
    mes "[Inya]";
    mes "\"Here you go.\"";
    close;

L_Inya_Remove_Amethyst:
    if ( (Zeny < 50000)
        | (countitem ("AmethystRing") < 1) )
            goto L_Inya_Not_Enough;
    set Zeny, Zeny - 50000;
    delitem "AmethystRing", 1;
    getitem "SimpleRing", 1;
    mes "[Inya]";
    mes "\"Here you go.\"";
    close;

L_Inya_Add_Diamond:
    if ( (Zeny < 100000)
        | (countitem ("SimpleRing") < 1)
        | (countitem ("Diamond") < 1) )
            goto L_Inya_Not_Enough;
    set Zeny, Zeny - 100000;
    delitem "SimpleRing", 1;
    delitem "Diamond", 1;
    getitem "DiamondRing", 1;
    mes "[Inya]";
    mes "\"Here you go.\"";
    close;

L_Inya_Add_Ruby:
    if ( (Zeny < 100000)
        | (countitem ("SimpleRing") < 1)
        | (countitem ("Ruby") < 1) )
            goto L_Inya_Not_Enough;
    set Zeny, Zeny - 100000;
    delitem "SimpleRing", 1;
    delitem "Ruby", 1;
    getitem "RubyRing", 1;
    mes "[Inya]";
    mes "\"Here you go.\"";
    close;

L_Inya_Add_Emerald:
    if ( (Zeny < 100000)
        | (countitem ("SimpleRing") < 1)
        | (countitem ("Emerald") < 1) )
            goto L_Inya_Not_Enough;
    set Zeny, Zeny - 100000;
    delitem "SimpleRing", 1;
    delitem "Emerald", 1;
    getitem "EmeraldRing", 1;
    mes "[Inya]";
    mes "\"Here you go.\"";
    close;

L_Inya_Add_Sapphire:
    if ( (Zeny < 100000)
        | (countitem ("SimpleRing") < 1)
        | (countitem ("Sapphire") < 1) )
            goto L_Inya_Not_Enough;
    set Zeny, Zeny - 100000;
    delitem "SimpleRing", 1;
    delitem "Sapphire", 1;
    getitem "SapphireRing", 1;
    mes "[Inya]";
    mes "\"Here you go.\"";
    close;

L_Inya_Add_Topaz:
    if ( (Zeny < 100000)
        | (countitem ("SimpleRing") < 1)
        | (countitem ("Topaz") < 1) )
            goto L_Inya_Not_Enough;
    set Zeny, Zeny - 100000;
    delitem "SimpleRing", 1;
    delitem "Topaz", 1;
    getitem "TopazRing", 1;
    mes "[Inya]";
    mes "\"Here you go.\"";
    close;

L_Inya_Add_Amethyst:
    if ( (Zeny < 100000)
        | (countitem ("SimpleRing") < 1)
        | (countitem ("Amethyst") < 1) )
            goto L_Inya_Not_Enough;
    set Zeny, Zeny - 100000;
    delitem "SimpleRing", 1;
    delitem "Amethyst", 1;
    getitem "AmethystRing", 1;
    mes "[Inya]";
    mes "\"Here you go.\"";
    close;

L_Inya_NotInterested:
    mes "[Inya]";
    mes "\"Come back later and I will try to be of assistance.\"";
    close;

L_Inya_Not_Enough:
    mes "[Inya]";
    mes "\"I am sorry, you simply do not seem to have the necessary items for me to help you. Please come back when you do, and I would be more than happy to help you out.\"";
    close;
}