diff options
-rw-r--r-- | db/re/mob_db.conf | 8 | ||||
-rw-r--r-- | npc/006-7/ctrl.txt | 25 |
2 files changed, 27 insertions, 6 deletions
diff --git a/db/re/mob_db.conf b/db/re/mob_db.conf index d7bd605c3..bd918b0e2 100644 --- a/db/re/mob_db.conf +++ b/db/re/mob_db.conf @@ -11898,8 +11898,8 @@ mob_db: ( Dex: 40 Luk: 25 } - ViewRange: 6 - ChaseRange: 14 + ViewRange: 12 + ChaseRange: 16 Race: 2 Element: (1, 2) Mode: { @@ -11957,8 +11957,8 @@ mob_db: ( AttackDelay: 1000 AttackMotion: 672 DamageMotion: 200 - ViewRange: 7 - ChaseRange: 11 + ViewRange: 14 + ChaseRange: 18 Drops: { FluoPowder: 900 FluoPowder: 50 diff --git a/npc/006-7/ctrl.txt b/npc/006-7/ctrl.txt index 1a89b35ca..3217e432e 100644 --- a/npc/006-7/ctrl.txt +++ b/npc/006-7/ctrl.txt @@ -18,6 +18,7 @@ OnRw: } 006-7,44,50,0 script Ice Lord NPC_YETIFLY,{ + if ($@ICICLE_CHALLENGE) end; if (.ticks > gettimetick(2)) { mesn; mesq l("This challenge will be available in %s. Please wait until then.", FuzzyTime(.ticks)); @@ -44,7 +45,7 @@ OnRw: .BOSS = monster("006-7", 44, 36, "Der Schneemann", SnowmanBoss, 1); .@mlt = (@menu == 2 ? 10 : 15); - setunitdata(.BOSS, UDT_MAXHP, 1000000 * .@mlt / 10); + setunitdata(.BOSS, UDT_MAXHP, 1000000 * .@mlt / 10); // 1M ~ 1.5M setunitdata(.BOSS, UDT_HP, 1000000 * .@mlt / 10); // Reconfigure the AI .@opt=getunitdata(.BOSS, UDT_MODE); @@ -68,7 +69,7 @@ OnRw: setunitdata(.BOSS, UDT_MODE, .@opt); // Nerf the damage, but never miss a hit - setunitdata(.BOSS, UDT_ATKMIN, 60 * .@mlt / 10); + setunitdata(.BOSS, UDT_ATKMIN, 60 * .@mlt / 10); // 60~90 dmg setunitdata(.BOSS, UDT_ATKMAX, 60 * .@mlt / 10); setunitdata(.BOSS, UDT_ADELAY, 2220 / .@mlt * 10); // 2220 or 1480ms setunitdata(.BOSS, UDT_HIT, 2400); @@ -80,6 +81,7 @@ OnRw: // And weak against Fire (snow) and Wind (100% dmg) // Otherwise, behave as Ghost element + $@ICICLE_CHALLENGE = true; disablenpc .name$; initnpctimer; closeclientdialog; @@ -87,6 +89,7 @@ OnRw: // Heart OnTimer5000: + /* Maybe the fight is over */ if (!mobcount("006-7", "all")) maptimer2("006-7", 10, "#OutOf0067::OnRw"); if (.ticks < gettimetick(2) || !mobcount("006-7", "all") || !getmapusers("006-7")) { @@ -94,10 +97,28 @@ OnTimer5000: enablenpc .name$; .ticks = min(.ticks, gettimetick(2) + 1800); // Min. Cooldown: 30 min .beats = 0; + $@ICICLE_CHALLENGE = false; stopnpctimer; end; } + + /* Prepare some data */ + .@hp = getunitdata(.BOSS, UDT_HP) * 100 / getunitdata(.BOSS, UDT_MAXHP); .beats += 1; + + /* Decide the skill to use based on ~5s beats over 3 minutes */ + switch (.beats % 18) { + // Summon Reinforcements (every 60s) + case 0: + case 6: + case 12: + unittalk(.BOSS, "Come forth, snow army, for the Icicle shall live forever!"); + specialeffect(64, AREA, .BOSS); + sleep(500); + monster("006-7", 44, 22, strmobinfo(1, Snowman), Snowman, max(1, (11 - .@hp) / 10)); + break; + } + initnpctimer; end; |