summaryrefslogtreecommitdiff
path: root/npc/config/magic.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/config/magic.txt')
-rw-r--r--npc/config/magic.txt18
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;
+}
+