From 5b8737fc66c4308223feafcff7d23fe22c0ab298 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 6 Nov 2019 21:09:58 -0300 Subject: Convert [Sunny Crystal] in 3x [Mylarin Dust] --- npc/007-1/pylon.txt | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'npc/007-1/pylon.txt') diff --git a/npc/007-1/pylon.txt b/npc/007-1/pylon.txt index 3d9236cf2..ed2f2c015 100644 --- a/npc/007-1/pylon.txt +++ b/npc/007-1/pylon.txt @@ -38,6 +38,7 @@ L_Menu: rif(countitem(Topaz) >= 1 && Zeny >= 100, l("Yeah sure, take my Topaz!")), rif(countitem(Amethyst) >= 1 && Zeny >= 100, l("Yeah sure, take my Amethyst!")), rif(countitem(IronOre) >= 1 && Zeny >= 100, l("And what's about Iron Ore?")), + rif(countitem(SunnyCrystal) >= 1 && Zeny >= 1000, l("And what's about Sunny Crystal?")), l("No, thanks, I will keep my gems."); mes ""; @@ -50,6 +51,9 @@ L_Menu: goto L_Ore; break; case 9: + goto L_Savior; + break; + case 10: close; break; default: @@ -128,6 +132,31 @@ L_Powder: goto L_Menu; +L_Savior: + // FIXME This is a dirt hack. TODO There should be no such checks + if (checkbound(SunnyCrystal)) { + mesn; + mesc l("Not every @@ with you belongs to you.", getitemlink(SunnyCrystal)), 1; + close; + } + mesn; + mesq l("I can make @@ from @@, but this costs @@ GP.", getitemlink(MylarinDust), getitemlink(SunnyCrystal), 1000); + next; + mesn; + mesc l("WARNING, THIS IS A RARE ITEM AND THIS OPERATION CANNOT BE REVERTED!!"); + next; + mesn; + mesc l("Are you sure you want to smash it?"), 1; + next; + if (askyesno() == ASK_YES) { + Zeny-=1000; + delitem SunnyCrystal, 1; + getitem MylarinDust, 3; + mesc l("SMASH! And it is now only dust..."), 3; + next; + } + goto L_Menu; + L_Close: close; -- cgit v1.2.3-60-g2f50