summaryrefslogtreecommitdiff
path: root/npc/config
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-07-16 11:25:13 -0300
committerJesusaves <cpntb1@ymail.com>2018-07-16 11:25:13 -0300
commita0c1e24789fea0891d0f38013da2c493dff951c8 (patch)
treeec3c565902fb930fe209465545af2ecb9c287594 /npc/config
parent5274879426338b935da6822ab194d0755dc3a40c (diff)
downloadserverdata-a0c1e24789fea0891d0f38013da2c493dff951c8.tar.gz
serverdata-a0c1e24789fea0891d0f38013da2c493dff951c8.tar.bz2
serverdata-a0c1e24789fea0891d0f38013da2c493dff951c8.tar.xz
serverdata-a0c1e24789fea0891d0f38013da2c493dff951c8.zip
Add Kalmurk to skill system, and allow level override on summon magic
Diffstat (limited to 'npc/config')
-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!");
}