From f00b466e1c63d5bc9a4d168fd842016d1d16dbe4 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 6 Mar 2020 12:37:20 -0300 Subject: Fix @transmemo. Transmutation failure now have 50% chance of returning original item. PLEASE REPORT BUGS --- npc/magic/transmigration.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'npc/magic/transmigration.txt') diff --git a/npc/magic/transmigration.txt b/npc/magic/transmigration.txt index 03c383712..a3e4c38ad 100644 --- a/npc/magic/transmigration.txt +++ b/npc/magic/transmigration.txt @@ -137,6 +137,7 @@ OnCall: dispbottom l("Not enough items!"); end; } + .@me=WoodenLog; @menuret=Coal; break; // Snake Skin Chain @@ -304,7 +305,7 @@ OnCall: // Chance for you getting a junk item } else if (.@r > 0) { dispbottom l("Your spell takes a mind of its own and shapes in something else!"); - getitem WarpedLog, 1; + getitem any(WarpedLog, .@me), 1; // You were successful } else { dispbottom l("*plim*"); @@ -312,7 +313,7 @@ OnCall: } // Store to memory - @transmemo=@menuret; + @transmemo=.@me; // set cooldown @mkpot_at=gettimetick(2); -- cgit v1.2.3-60-g2f50