Skip to content

Commit 91e0941

Browse files
committed
Update Mado Gear Renter NPC.
- added option to obtain mado gear box and cooling devices.
1 parent e935820 commit 91e0941

File tree

1 file changed

+66
-1
lines changed

1 file changed

+66
-1
lines changed

npc/re/merchants/renters.txt

Lines changed: 66 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ prontera,125,208,5 script Peco Peco Remover 8W_SOLDIER,{
174174
mes "Would you like to rent a Pushcart or";
175175
mes "ride a Mado Gear?";
176176
next;
177-
switch(select("Rent a Pushcart", "Ride a Mado Gear", "Cancel")) {
177+
switch(select("Rent a Pushcart", "Ride a Mado Gear", "Buy Emergency Mado Gear", "Upgrade Cooling Device", "Cancel")) {
178178
case 1:
179179
if (checkcart()) {
180180
mes "[Mado Gear Armorer]";
@@ -206,13 +206,78 @@ prontera,125,208,5 script Peco Peco Remover 8W_SOLDIER,{
206206
mes "Have fun, and please come again!";
207207
close;
208208
case 3:
209+
mes "[Mado Gear Armorer]";
210+
mes "Emergency Mado Gear is really useful for emergency situations and it is sold at 1,000,000 Zeny.";
211+
next;
212+
if (select("Purchase", "Cancel") == 2) {
213+
mes "[Mado Gear Armorer]";
214+
mes "I see. Please feel free to ask me";
215+
mes "if you change your mind.";
216+
close;
217+
}
218+
if (countitem(Mado_Box) > 0) {
219+
mes "[Mado Gear Armorer]";
220+
mes "I'm sorry, but you already have an Emergency Mado Gear.";
221+
close;
222+
}
223+
if (Zeny < 1000000) {
224+
mes "[Mado Gear Armorer]";
225+
mes "I'm sorry, but you don't have enough Zeny to purchase the Emergency Mado Gear.";
226+
close;
227+
}
228+
Zeny -= 1000000;
229+
getitem Mado_Box, 1;
230+
mes "[Mado Gear Armorer]";
231+
mes "There you go!";
232+
close;
233+
case 4:
234+
mes "[Mado Gear Armorer]";
235+
mes "Which device do you want to upgrade?";
236+
next;
237+
if (select("Cooling Device", "High Quality Cooler") == 1) {
238+
mes "[Mado Gear Armorer]";
239+
mes "Upgrading Cooling Device to High Quality Cooler needs 1 Cooling Device and 2,000,000 Zeny.";
240+
next;
241+
.@itemid = Cooling_Device;
242+
.@cost = 2000000;
243+
} else {
244+
mes "[Mado Gear Armorer]";
245+
mes "Upgrading High Quality Cooler to Special Cooler needs 1 High Quality Cooler and 4,000,000 Zeny.";
246+
next;
247+
.@itemid = High_Quality_Cooler;
248+
.@cost = 4000000;
249+
}
250+
if (select("Upgrade", "Cancel") == 2) {
251+
mes "[Mado Gear Armorer]";
252+
mes "I see. Please feel free to ask me";
253+
mes "if you change your mind.";
254+
close;
255+
}
256+
if (!countitem(.@itemid)) {
257+
mes "[Mado Gear Armorer]";
258+
mes "I'm sorry, but you don't have the " + getitemname(.@itemid) + ".";
259+
close;
260+
}
261+
if (Zeny < .@cost) {
262+
mes "[Mado Gear Armorer]";
263+
mes "I'm sorry, but you don't have enough Zeny to upgrade the device.";
264+
close;
265+
}
266+
Zeny -= .@cost;
267+
delitem .@itemid, 1;
268+
getitem (.@itemid == Cooling_Device ? High_Quality_Cooler : Special_Cooler), 1;
269+
mes "[Mado Gear Armorer]";
270+
mes "Here you are! Your very own " + getitemname(.@itemid) + ".";
271+
close;
272+
case 5:
209273
close;
210274
}
211275
}
212276
mes "How may I help you?";
213277
mes "Mado Gears are only available for Mechanics.";
214278
close;
215279
}
280+
216281
prontera,163,178,3 duplicate(mgm) Mado Gear Armorer#prt 8W_SOLDIER
217282
geffen,103,55,5 duplicate(mgm) Mado Gear Armorer#gef 8W_SOLDIER
218283
payon,166,106,5 duplicate(mgm) Mado Gear Armorer#pay 8W_SOLDIER

0 commit comments

Comments
 (0)