From abd28dc68f6f75093e2b551e22e021b49239f92a Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 21 Oct 2019 13:25:26 -0300 Subject: Let's try a different approach with Kalmurk --- npc/config/magic.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'npc/config/magic.txt') 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; +} + -- cgit v1.2.3-70-g09d2