summaryrefslogtreecommitdiff
path: root/npc/magic
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-09-11 10:42:00 -0300
committerJesusaves <cpntb1@ymail.com>2019-09-11 10:42:00 -0300
commitd5f52fb09f871d2ff1262a328e0b2a8473af1fec (patch)
treece765f28553badcd23d35148c47d37b097e5c3b3 /npc/magic
parent73f1b9bec5af29d45047364ef60d141a2c14d416 (diff)
downloadserverdata-d5f52fb09f871d2ff1262a328e0b2a8473af1fec.tar.gz
serverdata-d5f52fb09f871d2ff1262a328e0b2a8473af1fec.tar.bz2
serverdata-d5f52fb09f871d2ff1262a328e0b2a8473af1fec.tar.xz
serverdata-d5f52fb09f871d2ff1262a328e0b2a8473af1fec.zip
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.
Diffstat (limited to 'npc/magic')
-rw-r--r--npc/magic/transmigration.txt6
1 files changed, 5 insertions, 1 deletions
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: