diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-07-16 11:25:13 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-07-16 11:25:13 -0300 |
commit | a0c1e24789fea0891d0f38013da2c493dff951c8 (patch) | |
tree | ec3c565902fb930fe209465545af2ecb9c287594 /npc/config/magic.txt | |
parent | 5274879426338b935da6822ab194d0755dc3a40c (diff) | |
download | serverdata-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/magic.txt')
-rw-r--r-- | npc/config/magic.txt | 7 |
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!"); } |