diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-07-16 11:30:25 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-07-16 11:30:25 -0300 |
commit | 8e8f495d502883349e60dcb633755d9a98e20e5a (patch) | |
tree | 3d532544d554faa3174cc3eea24fe7f428e1ff1d | |
parent | a0c1e24789fea0891d0f38013da2c493dff951c8 (diff) | |
download | serverdata-8e8f495d502883349e60dcb633755d9a98e20e5a.tar.gz serverdata-8e8f495d502883349e60dcb633755d9a98e20e5a.tar.bz2 serverdata-8e8f495d502883349e60dcb633755d9a98e20e5a.tar.xz serverdata-8e8f495d502883349e60dcb633755d9a98e20e5a.zip |
Preparatives
-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) |