diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-10-21 13:25:26 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-10-21 13:25:26 -0300 |
commit | abd28dc68f6f75093e2b551e22e021b49239f92a (patch) | |
tree | d25a896aa7ff40d4991870eb9d8b4deb0579fcfe /npc/config/magic.txt | |
parent | 7db84053b350e028196d81e537dcc509f02008e5 (diff) | |
download | serverdata-abd28dc68f6f75093e2b551e22e021b49239f92a.tar.gz serverdata-abd28dc68f6f75093e2b551e22e021b49239f92a.tar.bz2 serverdata-abd28dc68f6f75093e2b551e22e021b49239f92a.tar.xz serverdata-abd28dc68f6f75093e2b551e22e021b49239f92a.zip |
Let's try a different approach with Kalmurk
Diffstat (limited to 'npc/config/magic.txt')
-rw-r--r-- | npc/config/magic.txt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/npc/config/magic.txt b/npc/config/magic.txt index b21a5e6e9..5d2b898be 100644 --- a/npc/config/magic.txt +++ b/npc/config/magic.txt @@ -115,3 +115,21 @@ function script ShowAbizit { return; } +// SK_summon(ID, amount, mexp) +function script SK_summon { + .@mob=getarg(0); + .@amt=getarg(1); + .@mex=getarg(2); + + if (rand2(1,6) < abizit()+1) { + // Summon Magic (with magic level bonus) + SummonMagic(@skillId, .@mob, .@amt, MAGIC_LVL+.@amt-1, @skillLv); + } else { + dispbottom l("The spell fails!"); + } + + // Get a single mana experience point (this is NOT used by Mana Stone) + GetManaExp(@sk, .@mex); + return; +} + |