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.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/npc/config/magic.txt b/npc/config/magic.txt
index 0b016b2bf..ca59dbc82 100644
--- a/npc/config/magic.txt
+++ b/npc/config/magic.txt
@@ -50,12 +50,13 @@ function script MagicCheck {
return 1;
}
-// SkillID, Mana, MobID{, MP per level, MobPerSkillLevel=2}
+// SkillID, Mana, MobID{, MP per level, MobPerSkillLevel=2{, Level Override}}
function script SummonMagic {
.@sk=getarg(0);
.@mp=getarg(1);
.@id=getarg(2);
.@adj=getarg(4,2);
+ .@lv=getarg(5,getskilllv(.@sk));
if (.@adj < 1) {
debugmes "\033[31mInvalid MobPerSkillLevel for SummonMagic (.@adj): "+.@adj+"\033[0m";
@@ -75,8 +76,8 @@ function script SummonMagic {
// Cause effect
// Summoned monsters live from 45 to 60 seconds, and each skill levels grants 10s extra life
// The 35~50 is not a defect, remember skill starts at level 1...
- for (.@i = 0; .@i < (getskilllv(.@sk)+(.@adj-1))/.@adj; .@i++)
- summon("Summoned Monster", .@id, rand(35,50)+getskilllv(.@sk)*10);
+ for (.@i = 0; .@i < (.@lv+(.@adj-1))/.@adj; .@i++)
+ summon("Summoned Monster", .@id, rand(35,50)+.@lv*10);
dispbottom l("All monsters summoned!");
}