From d5f52fb09f871d2ff1262a328e0b2a8473af1fec Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 11 Sep 2019 10:42:00 -0300 Subject: Transmigration: Store latest transmigration in a temporary memory, so it can be easily repeated. Beware it might not work well with: Coal, IronOre, Snake items, Scorpion items. --- npc/magic/transmigration.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'npc/magic/transmigration.txt') diff --git a/npc/magic/transmigration.txt b/npc/magic/transmigration.txt index a1cb2a958..b6c27e254 100644 --- a/npc/magic/transmigration.txt +++ b/npc/magic/transmigration.txt @@ -27,6 +27,7 @@ OnCall: mesc l("What will you transmute today?"); mes ""; menuint + rif(@transmemo, l("Repeat: ")+getitemname(@transmemo)), @transmemo, l("Crazy Rum"), CrazyRum, l("Coal"), 9901, // 9901 cheat code l("Mouboo Figurine"), MoubooFigurine, @@ -307,12 +308,15 @@ OnCall: getitem @menuret, 1; } + // Store to memory + @transmemo=@menuret; + // set cooldown @mkpot_at=gettimetick(2); @mkpot_at=@mkpot_at+6; // Get a few mana experience points (this is NOT used by Mana Stone) - GetManaExp(TMW2_TRANSMIGRATION, rand2(4,11)); + GetManaExp(TMW2_TRANSMIGRATION, rand2(4,9)); end; OnInit: -- cgit v1.2.3-60-g2f50