diff options
author | Jesusaves <cpntb1@ymail.com> | 2024-01-23 13:29:20 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2024-01-23 13:29:20 -0300 |
commit | bb79647e212b2e893866097bcb16adeee18e4b22 (patch) | |
tree | 1a2f678d348fda3b7de9458ac241734bf66aa585 /npc | |
parent | e81c1800b4d9dd43b4b6df701a21089bad2f177d (diff) | |
download | serverdata-bb79647e212b2e893866097bcb16adeee18e4b22.tar.gz serverdata-bb79647e212b2e893866097bcb16adeee18e4b22.tar.bz2 serverdata-bb79647e212b2e893866097bcb16adeee18e4b22.tar.xz serverdata-bb79647e212b2e893866097bcb16adeee18e4b22.zip |
Impose the third - and last - scenario restriction on MK showdown.
If a single one of the five legendary heroes is missing, it'll be slightly harder.
Diffstat (limited to 'npc')
-rw-r--r-- | npc/026-7/boss.txt | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/npc/026-7/boss.txt b/npc/026-7/boss.txt index c8e704616..513769d16 100644 --- a/npc/026-7/boss.txt +++ b/npc/026-7/boss.txt @@ -82,23 +82,35 @@ OnBegin: setunitdata(.MK, UDT_RACE, RC_Legendary); // If the number of players is below the expected, BUFF the damage // +20% max damage every missing player - .@bcr=getunitdata(.MK, UDT_CRIT); .@crc=5; if (getmapusers("026-7") < 5) { .@bat=getunitdata(.MK, UDT_ATKMAX); .@bat += .@bat / 5 * (5-getmapusers("026-7")); setunitdata(.MK, UDT_ATKMAX, .@bat); } - // If the level of the players is below the expected, BUFF the criticals + // Some restrictions are based on the players + .@crc=5; .@leg=5; .@c=getunits(BL_PC, .@pcs, MAX_CYCLE_PC, "026-7"); for (.@i = 0; .@i < .@c; .@i++) { if (readparam(BaseLevel, .@pcs[.@i]) >= 109) .@crc -= 1; + if (islegendary(strcharinfo(0, "", .@pcs[.@i]))) + .@leg -= 1; } + // If the level of the players is below the expected, BUFF the criticals if (.@crc > 0) { .@bcr=getunitdata(.MK, UDT_CRIT); .@bcr += .@bcr / 5 * .@crc); setunitdata(.MK, UDT_CRIT, .@bcr); } + // If the legendary players is below the expected, BUFF the speed and range + if (.@leg > 0) { + .@bs1=getunitdata(.MK, UDT_SPEED); + .@bs1 -= .@leg * 10; + .@bs2=getunitdata(.MK, UDT_ATKRANGE); + .@bs1 += .@leg; + setunitdata(.MK, UDT_SPEED, .@bs1); + setunitdata(.MK, UDT_ATKRANGE, .@bs2); + } // The Four Generals which command his immortality .GUARD1=monster("026-7", 35, 30, "Air General", MonsterGeneral, 1); .GUARD4=monster("026-7", 44, 45, "Fire General", MonsterGeneral, 1); |