diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-06-08 15:36:50 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-06-08 15:36:50 -0300 |
commit | 38710c49f20e032f21ebe28a497d3e5b472fc0c4 (patch) | |
tree | 7f7a790aeacd88b5e7345d77d5ff5c50b0edcfe8 /npc/config | |
parent | ec834c7100653bdd93ceef67d5a124cee292dcc3 (diff) | |
download | serverdata-38710c49f20e032f21ebe28a497d3e5b472fc0c4.tar.gz serverdata-38710c49f20e032f21ebe28a497d3e5b472fc0c4.tar.bz2 serverdata-38710c49f20e032f21ebe28a497d3e5b472fc0c4.tar.xz serverdata-38710c49f20e032f21ebe28a497d3e5b472fc0c4.zip |
(Regular) Summoning: Abizit will now have less failure impact.
It'll also affect spawn lifetime.
Diffstat (limited to 'npc/config')
-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 290f0410f..1c73a9ab3 100644 --- a/npc/config/magic.txt +++ b/npc/config/magic.txt @@ -95,10 +95,11 @@ 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... + // PS. Abizit gives 3s per level, and +1 HP per level for (.@i = 0; .@i < (.@lv+(.@adj-1))/.@adj; .@i++) { - .@mids=summon("Summoned Monster", .@id, rand(35,50)+.@lv*10); + .@mids=summon("Summoned Monster", .@id, rand(35,50)+.@lv*10+abizit()*3); .@bhp=getunitdata(.@mids, UDT_MAXHP); - .@lvx=max(0, (.@lv-1)*.@bhp/50); + .@lvx=max(0, (.@lv-1)*.@bhp/50)+abizit(); setunitdata(.@mids, UDT_MAXHP, .@bhp+.@lvx); setunitdata(.@mids, UDT_HP, .@bhp+.@lvx); } @@ -145,7 +146,7 @@ function script SK_summon { .@mex=getarg(2); if ($@GM_OVERRIDE || debug) debugmes "Skill "+@skillId+" Lv "+@skillLv; - if (rand2(1,6) < abizit()+1) { + if (rand2(5) < abizit()) { // Summon Magic (with magic level bonus) SummonMagic(@skillId, .@mob, .@amt, MAGIC_LVL+@skillLv-1, @skillLv); } else { |