summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-03-06 12:37:20 -0300
committerJesusaves <cpntb1@ymail.com>2020-03-06 12:37:20 -0300
commitf00b466e1c63d5bc9a4d168fd842016d1d16dbe4 (patch)
tree0fa947241186ebeb6777c889f8714e100970f69e
parent06f10ca407aef3682b057e30df8a408c4c06843b (diff)
downloadserverdata-f00b466e1c63d5bc9a4d168fd842016d1d16dbe4.tar.gz
serverdata-f00b466e1c63d5bc9a4d168fd842016d1d16dbe4.tar.bz2
serverdata-f00b466e1c63d5bc9a4d168fd842016d1d16dbe4.tar.xz
serverdata-f00b466e1c63d5bc9a4d168fd842016d1d16dbe4.zip
Fix @transmemo.
Transmutation failure now have 50% chance of returning original item. PLEASE REPORT BUGS
-rw-r--r--npc/magic/transmigration.txt5
1 files changed, 3 insertions, 2 deletions
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);