Skip to content

Commit

Permalink
Update Mado Gear Renter NPC.
Browse files Browse the repository at this point in the history
- added option to obtain mado gear box and cooling devices.
  • Loading branch information
Emistry committed May 5, 2019
1 parent e935820 commit 91e0941
Showing 1 changed file with 66 additions and 1 deletion.
67 changes: 66 additions & 1 deletion npc/re/merchants/renters.txt
Expand Up @@ -174,7 +174,7 @@ prontera,125,208,5 script Peco Peco Remover 8W_SOLDIER,{
mes "Would you like to rent a Pushcart or";
mes "ride a Mado Gear?";
next;
switch(select("Rent a Pushcart", "Ride a Mado Gear", "Cancel")) {
switch(select("Rent a Pushcart", "Ride a Mado Gear", "Buy Emergency Mado Gear", "Upgrade Cooling Device", "Cancel")) {
case 1:
if (checkcart()) {
mes "[Mado Gear Armorer]";
Expand Down Expand Up @@ -206,13 +206,78 @@ prontera,125,208,5 script Peco Peco Remover 8W_SOLDIER,{
mes "Have fun, and please come again!";
close;
case 3:
mes "[Mado Gear Armorer]";
mes "Emergency Mado Gear is really useful for emergency situations and it is sold at 1,000,000 Zeny.";
next;
if (select("Purchase", "Cancel") == 2) {
mes "[Mado Gear Armorer]";
mes "I see. Please feel free to ask me";
mes "if you change your mind.";
close;
}
if (countitem(Mado_Box) > 0) {
mes "[Mado Gear Armorer]";
mes "I'm sorry, but you already have an Emergency Mado Gear.";
close;
}
if (Zeny < 1000000) {
mes "[Mado Gear Armorer]";
mes "I'm sorry, but you don't have enough Zeny to purchase the Emergency Mado Gear.";
close;
}
Zeny -= 1000000;
getitem Mado_Box, 1;
mes "[Mado Gear Armorer]";
mes "There you go!";
close;
case 4:
mes "[Mado Gear Armorer]";
mes "Which device do you want to upgrade?";
next;
if (select("Cooling Device", "High Quality Cooler") == 1) {
mes "[Mado Gear Armorer]";
mes "Upgrading Cooling Device to High Quality Cooler needs 1 Cooling Device and 2,000,000 Zeny.";
next;
.@itemid = Cooling_Device;
.@cost = 2000000;
} else {
mes "[Mado Gear Armorer]";
mes "Upgrading High Quality Cooler to Special Cooler needs 1 High Quality Cooler and 4,000,000 Zeny.";
next;
.@itemid = High_Quality_Cooler;
.@cost = 4000000;
}
if (select("Upgrade", "Cancel") == 2) {
mes "[Mado Gear Armorer]";
mes "I see. Please feel free to ask me";
mes "if you change your mind.";
close;
}
if (!countitem(.@itemid)) {
mes "[Mado Gear Armorer]";
mes "I'm sorry, but you don't have the " + getitemname(.@itemid) + ".";
close;
}
if (Zeny < .@cost) {
mes "[Mado Gear Armorer]";
mes "I'm sorry, but you don't have enough Zeny to upgrade the device.";
close;
}
Zeny -= .@cost;
delitem .@itemid, 1;
getitem (.@itemid == Cooling_Device ? High_Quality_Cooler : Special_Cooler), 1;
mes "[Mado Gear Armorer]";
mes "Here you are! Your very own " + getitemname(.@itemid) + ".";
close;
case 5:
close;
}
}
mes "How may I help you?";
mes "Mado Gears are only available for Mechanics.";
close;
}

prontera,163,178,3 duplicate(mgm) Mado Gear Armorer#prt 8W_SOLDIER
geffen,103,55,5 duplicate(mgm) Mado Gear Armorer#gef 8W_SOLDIER
payon,166,106,5 duplicate(mgm) Mado Gear Armorer#pay 8W_SOLDIER
Expand Down

0 comments on commit 91e0941

Please sign in to comment.