From 8e8f495d502883349e60dcb633755d9a98e20e5a Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 16 Jul 2018 11:30:25 -0300 Subject: Preparatives --- npc/functions/util.txt | 8 ++++++++ npc/magic/kalmurk.txt | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'npc') diff --git a/npc/functions/util.txt b/npc/functions/util.txt index a924286ed..de172bda6 100644 --- a/npc/functions/util.txt +++ b/npc/functions/util.txt @@ -303,3 +303,11 @@ function script sk_intcost { return 0; } +// Returns a value defining your current magic control (affects success ratio, higher is better) +// A value of '5' means perfect control, and a value of '0' means overwhelm. +// abizit() +function script abizit { + .@base=(MAGIC_LVL**3); + return (MAGIC_EXP/.@base); +} + diff --git a/npc/magic/kalmurk.txt b/npc/magic/kalmurk.txt index 761b28c53..11d1859df 100644 --- a/npc/magic/kalmurk.txt +++ b/npc/magic/kalmurk.txt @@ -31,8 +31,8 @@ OnCall: } // Summon Magic - // SummonMagic( SkillID, Mana, MobID{, MP per level, MobPerSkillLevel=2} ) - SummonMagic(TMW2_KALMURK, 200, Maggot, 50, 2); + // SummonMagic( SkillID, Mana, MobID{, MP per level, MobPerSkillLevel=2},{Lvl Override} ) + SummonMagic(TMW2_KALMURK, 200, Maggot, 50, 2, (MAGIC_LVL-1)); delitem MaggotSlime, 2; // Get a single mana experience point (this is NOT used by Soul Menhir) -- cgit v1.2.3-70-g09d2