diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-08-10 22:18:15 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-08-10 22:18:15 -0300 |
commit | eb97c9821bf5bf9af11fd9a24f5dad280701cf06 (patch) | |
tree | ec3668f6cc3c54841731f8cb17dc924002a696ce /npc/magic/transmigration.txt | |
parent | 3340ad0a75ea00b05ffea9464e1d57dc1ed7e098 (diff) | |
download | serverdata-eb97c9821bf5bf9af11fd9a24f5dad280701cf06.tar.gz serverdata-eb97c9821bf5bf9af11fd9a24f5dad280701cf06.tar.bz2 serverdata-eb97c9821bf5bf9af11fd9a24f5dad280701cf06.tar.xz serverdata-eb97c9821bf5bf9af11fd9a24f5dad280701cf06.zip |
Rewrite a bit Transmigration Code to be cleaner to work
Diffstat (limited to 'npc/magic/transmigration.txt')
-rw-r--r-- | npc/magic/transmigration.txt | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/npc/magic/transmigration.txt b/npc/magic/transmigration.txt index 439333d77..ddc2dcdc8 100644 --- a/npc/magic/transmigration.txt +++ b/npc/magic/transmigration.txt @@ -29,27 +29,27 @@ OnCall: l("Mouboo Figurine"), MoubooFigurine; mes ""; + mesc l("Transmutating @@ will require:", getitemlink(@menuret)); + + // Requeriments listing switch (@menuret) { case CrazyRum: - mesc l("Transmutating @@ will require:", getitemlink(@menuret)); mesc l("* @@/@@ @@", countitem(Plushroom), 10, getitemlink(Plushroom)); mesc l("* @@/@@ @@", countitem(Milk), 1, getitemlink(Milk)); - next; - mesc l("Transmute?!"); - if (askyesno() == ASK_NO) - @menuret=0; break; case MoubooFigurine: - mesc l("Transmutating @@ will require:", getitemlink(@menuret)); mesc l("* @@/@@ @@", countitem(WoodenLog), 1, getitemlink(WoodenLog)); - next; - mesc l("Transmute?!"); - if (askyesno() == ASK_NO) - @menuret=0; break; default: Exception("ERROR, INVALID TRANSMIGRATION OPTION", RB_DEFAULT|RB_SPEECH); @menuret=0; break; } + // Confirmation + if (@menuret) { + next; + mesc l("Transmute?!"); + if (askyesno() == ASK_NO) + @menuret=0; + } } while (!@menuret); // Close the dialog |