diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-07-02 02:45:38 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-07-02 02:45:38 -0300 |
commit | fb8d19363797c0f2d4fdeb32fb5537602c1d3bf2 (patch) | |
tree | c98b8513806194298441ad5f05859ac2e185daf9 /npc | |
parent | 63512370c198b52c75e77765ae6874ad3564d304 (diff) | |
download | serverdata-fb8d19363797c0f2d4fdeb32fb5537602c1d3bf2.tar.gz serverdata-fb8d19363797c0f2d4fdeb32fb5537602c1d3bf2.tar.bz2 serverdata-fb8d19363797c0f2d4fdeb32fb5537602c1d3bf2.tar.xz serverdata-fb8d19363797c0f2d4fdeb32fb5537602c1d3bf2.zip |
Change SummonedMobNumber (flexibilize). Do not go below 1 mob per skill level.
Diffstat (limited to 'npc')
-rw-r--r-- | npc/config/magic.txt | 12 | ||||
-rw-r--r-- | npc/magic/zarkor.txt | 2 |
2 files changed, 10 insertions, 4 deletions
diff --git a/npc/config/magic.txt b/npc/config/magic.txt index 9ad6d0b9a..1617bfeff 100644 --- a/npc/config/magic.txt +++ b/npc/config/magic.txt @@ -6,12 +6,18 @@ // Used for our pseudo-magic. // These are only helpers, you can add more restrictions and effects freely. -// SkillID, Mana, MobID{, MP per level, Script} +// SkillID, Mana, MobID{, MP per level, MobPerSkillLevel=2} function script SummonMagic { .@sk=getarg(0); .@mp=getarg(1); .@id=getarg(2); - .@scr$=getarg(4,"Cassia::OnSkip"); + .@adj=getarg(4,2); + + if (.@adj < 1) { + debugmes "\033[31mInvalid MobPerSkillLevel for SummonMagic (.@adj): "+.@adj+"\033[0m"; + dispbottom l("Invalid parameter specified, blame saulc."); + end; + } // PRE EXECUTION // Check Skill @@ -36,7 +42,7 @@ 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)+1)/2; .@i++) + for (.@i = 0; .@i < (getskilllv(.@sk)+(.@adj-1))/.@adj; .@i++) summon("Summoned Monster", .@id, rand(35000,50000)+getskilllv(.@sk)*10000); dispbottom l("All monsters summoned!"); diff --git a/npc/magic/zarkor.txt b/npc/magic/zarkor.txt index 20cbb3f12..35f625055 100644 --- a/npc/magic/zarkor.txt +++ b/npc/magic/zarkor.txt @@ -24,7 +24,7 @@ OnCall: /* TODO */ // Summon Magic - SummonMagic(TMW2_ZARKOR, 400, CaveMaggot, 75, "sk#zarkor::OnNone"); + SummonMagic(TMW2_ZARKOR, 400, CaveMaggot, 75, 2); /* |