diff options
Diffstat (limited to 'npc/re')
-rw-r--r-- | npc/re/merchants/renters.txt | 67 |
1 files changed, 66 insertions, 1 deletions
diff --git a/npc/re/merchants/renters.txt b/npc/re/merchants/renters.txt index d998fb0b2..30d9679b0 100644 --- a/npc/re/merchants/renters.txt +++ b/npc/re/merchants/renters.txt @@ -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]"; @@ -206,6 +206,70 @@ 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; } } @@ -213,6 +277,7 @@ prontera,125,208,5 script Peco Peco Remover 8W_SOLDIER,{ 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 |