diff options
Diffstat (limited to 'npc/026-7')
-rw-r--r-- | npc/026-7/boss.txt | 51 |
1 files changed, 44 insertions, 7 deletions
diff --git a/npc/026-7/boss.txt b/npc/026-7/boss.txt index efe35478e..6d785cb6a 100644 --- a/npc/026-7/boss.txt +++ b/npc/026-7/boss.txt @@ -167,7 +167,8 @@ OnTimer10000: kamibroadcast("The MONSTER KING has WON the showdown!", "WORLD HEART"); } stopnpctimer; - end; + //end; + goto OnPrepBlight; } /* Prepare some combat data */ @@ -525,7 +526,8 @@ L_NextAct: //charcommand("@reloadbattleconf"); // Careful! //donpcevent("@exprate::OnReload"); //donpcevent("@droprate::OnReload"); - end; + //end; + goto OnPrepBlight; OnVictory: // Not killed by a player? It doesn't counts, then @@ -536,7 +538,7 @@ OnVictory: getitem StrangeCoin, 50; if (!MK_WINNER) { MK_WINNER=gettimetick(2); // TODO - getitem StrangeCoin, 2450; + getitem StrangeCoin, 1950; // Total: 2,000 Strange Coins on first win getitembound MysteriousFruit, 3, 4; // You get 3 char bound fruits } // Effects @@ -544,12 +546,47 @@ OnVictory: // Bailout sleep2(5000); warp "025-1", 99, 22; - // Disabled code (for translation only) - /* - dispbottom l("For defeating the Monster King, you've got the Legendary @@.", getitemlink(AegisShield)); + close; + +OnPrepBlight: + if ($SHADY_HOLDER$ != "") end; + .@c=getunits(BL_PC, .@pcs, MAX_CYCLE_PC, "026-7"); + .@mvp=0;.@def=-1; + for (.@i = 0; .@i < .@c; .@i++) { + .@atk = readbattleparam(.@pcs[.@i], UDT_ATKMAX); + if (.@atk > .@def) { + // Lets check if they qualify + attachrid(.@pcs[.@i]); + if (islegendary()) .@atk=false; // Already legendary, so nope + if (ispcdead()) .@atk=false; // Dead, so nope + if (!checkweight(Blightbringer, 1)) .@atk=false; // Overweight, so nope + detachrid(); + // They qualify: Remember this, and look for someone worthier + if (.@atk) { + .@mvp=.@pcs[.@i]; + .@def=.@atk; + } + } // if qualified + } // for Loop + if (.@mvp) { + attachrid(.@mvp); + addtimer(10, "Impregnable#B7F::OnBlightbringer"); + } + end; + +OnBlightbringer: + // Repeat all checks + if ($SHADY_HOLDER$ != "") end; + if (islegendary()) end; + if (ispcdead()) end; + inventoryplace Blightbringer, 1; + + $SHADY_HOLDER$ = strcharinfo(0); + getitembound Blightbringer, 1, 1; // Account bound or char bound? (1 or 4) + dispbottom l("For defeating the Monster King, you've got the Legendary @@.", getitemlink(Blightbringer)); dispbottom l("This item cannot be traded normally and is a Legendary Item."); dispbottom l("You can transfer it with \"@grantpower\" command. Please contact a GM for more info."); - dispbottom l("Protip: If you plan in selling it, it's adviseable to ask for GM mediation."); */ + dispbottom l("Protip: If you plan in selling it, it's adviseable to ask for GM mediation."); end; } |