diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-11-06 21:09:58 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-11-06 21:09:58 -0300 |
commit | 5b8737fc66c4308223feafcff7d23fe22c0ab298 (patch) | |
tree | 881868641f52cad1c13690d34fcbbfa29c98566f /npc/007-1 | |
parent | 3f8e5dc360676674f34917eb62597d821cfe92d9 (diff) | |
download | serverdata-5b8737fc66c4308223feafcff7d23fe22c0ab298.tar.gz serverdata-5b8737fc66c4308223feafcff7d23fe22c0ab298.tar.bz2 serverdata-5b8737fc66c4308223feafcff7d23fe22c0ab298.tar.xz serverdata-5b8737fc66c4308223feafcff7d23fe22c0ab298.zip |
Convert [Sunny Crystal] in 3x [Mylarin Dust]
Diffstat (limited to 'npc/007-1')
-rw-r--r-- | npc/007-1/pylon.txt | 29 |
1 files changed, 29 insertions, 0 deletions
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; |