summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
Diffstat (limited to 'npc')
-rw-r--r--npc/config/magic.txt18
-rw-r--r--npc/functions/hub.txt3
-rw-r--r--npc/magic/kalmurk.txt4
-rw-r--r--npc/magic/zarkor.txt1
4 files changed, 26 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;
+}
+
diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt
index aa5265b32..a306fe883 100644
--- a/npc/functions/hub.txt
+++ b/npc/functions/hub.txt
@@ -196,6 +196,9 @@ function script HUB_SkillInvoke {
case TMW2_ZARKOR:
SK_zarkor();
break;
+ case TMW2_KALMURK:
+ SK_summon(Maggot, MAGIC_LVL+getskilllv(@sk)-1, 2);
+ break;
}
// Debug
diff --git a/npc/magic/kalmurk.txt b/npc/magic/kalmurk.txt
index 10ba98d7c..50aca887a 100644
--- a/npc/magic/kalmurk.txt
+++ b/npc/magic/kalmurk.txt
@@ -16,6 +16,10 @@ OnFriendlyDeath:
*/
OnCall:
+ // Deprecated
+ dispbottom l("The usage of @sk-commands was deprecated");
+ end;
+
// Other requeriments
if (countitem(MaggotSlime) < 2) {
dispbottom l("You need 2x @@ to cast this skill.", getitemlink(MaggotSlime));
diff --git a/npc/magic/zarkor.txt b/npc/magic/zarkor.txt
index b205fcf92..9763189bb 100644
--- a/npc/magic/zarkor.txt
+++ b/npc/magic/zarkor.txt
@@ -29,6 +29,7 @@ OnFriendlyDeath:
OnCall:
// Deprecated
+ dispbottom l("The usage of @sk-commands was deprecated");
end;
// Other requeriments