From e6daabfe8687f6713f8c94591e6758d6b7d04df0 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 25 Jan 2020 22:30:56 -0300 Subject: Wands no longer give passive MP regeneration. Only equipment does so. Instead, wands will allow you to use a skill to convert 20% of HP to MP. The ratio is 6:1 (as opposed to official ratio, something close to 4:1) --- npc/magic/mpgen.txt | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 npc/magic/mpgen.txt (limited to 'npc/magic/mpgen.txt') diff --git a/npc/magic/mpgen.txt b/npc/magic/mpgen.txt new file mode 100644 index 000000000..1a45de552 --- /dev/null +++ b/npc/magic/mpgen.txt @@ -0,0 +1,36 @@ +// TMW2 script +// Author: Jesusalva +// +// Magic Script: - +// +// mpgen to make mana from HP + +function script SK_mpregen { + // Convert HP to mana (20% HP - 1) (To prevent 5 casts from killing) + .@basehp=(MaxHp/5)-1; + // How much MP is that worth? + // Well, 400HP:120MP so base formula is 4:1 + // Let's have a 50% penalty, so, 6:1 + .@mpheal=.@basehp/6; + heal -.@basehp, .@mpheal; + return; +} + +/* +- script sk#mpgen 32767,{ + end; + +OnCall: + // Must have magic + if (!MAGIC_LVL) + end; + + unitskilluseid(getcharid(3), TMW2_MPREGEN, 1, getcharid(3)); + end; + +OnInit: + bindatcmd "sk-mpgen", "sk#mpgen::OnCall", 0, 100, 0; + end; +} +*/ + -- cgit v1.2.3-60-g2f50