diff options
Diffstat (limited to 'npc')
-rw-r--r-- | npc/functions/util.txt | 8 | ||||
-rw-r--r-- | npc/magic/kalmurk.txt | 4 |
2 files changed, 10 insertions, 2 deletions
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) |