diff options
author | Jesusaves <cpntb1@ymail.com> | 2023-10-13 17:49:33 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2023-10-13 17:49:33 -0300 |
commit | bf0009c85d890598029c159912f5c7a76aa38d51 (patch) | |
tree | a51855c39a013f2927740c93e1a3271bda6c0c44 | |
parent | 0a94a7f9bf531cb5d9d0f6ac6e3290862696735c (diff) | |
download | serverdata-bf0009c85d890598029c159912f5c7a76aa38d51.tar.gz serverdata-bf0009c85d890598029c159912f5c7a76aa38d51.tar.bz2 serverdata-bf0009c85d890598029c159912f5c7a76aa38d51.tar.xz serverdata-bf0009c85d890598029c159912f5c7a76aa38d51.zip |
After Monster King defeat, magic requirements suffer a sharp cut down
-rw-r--r-- | npc/026-7/boss.txt | 42 | ||||
-rw-r--r-- | npc/functions/util.txt | 6 |
2 files changed, 47 insertions, 1 deletions
diff --git a/npc/026-7/boss.txt b/npc/026-7/boss.txt index b2df2a388..14ed25a2a 100644 --- a/npc/026-7/boss.txt +++ b/npc/026-7/boss.txt @@ -4,9 +4,49 @@ // Description: // The Impregnable Fortress Control Files - Boss Chamber - Final Showdown -- script Impregnable#B7F NPC_HIDDEN,{ +026-7,39,34,0 script Impregnable#B7F NPC_HIDDEN,{ end; +// Maybe not OnTouch, but OnSit? +OnTouch: + if (strcharinfo(2) == "Monster King") end; + slide 39, 35; + percentheal -15,0; + dispbottom l("The throne is cursed, only the Monster King may seat on it."); + end; + +// Controls the Event +OnBegin: + end; + +// Monster King was defeated - game won +OnVictory: + // Not killed by a player? It doesn't counts, then + if (!playerattached()) + end; + $@MK_CHALLENGE=false; + kamibroadcast("has just defeated the Monster King.", strcharinfo(0)); + stopnpctimer; + mapwarp("boss", "017-1", 120, 88); + $GAME_STORYLINE=5; + $MANA_BLVL-=10; // Set base level to 5~15 + $MANA_BLVL=max(0, $MANA_BLVL); + specialeffect(FX_FANFARE, AREA, getcharid(3)); + // Without the Monster King to rule monsters... TODO Isbamuth, Moubootaur + // This disables all mosnters :< + setbattleflag("monster_ai", 0x209); + setbattleflag("monster_active_enable", false); + setbattleflag("mob_count_rate", 25); + //charcommand("@reloadbattleconf"); // Careful! + donpcevent("@exprate::OnReload"); + donpcevent("@droprate::OnReload"); + // Player Reward + /*getitembound(AegisShield, 1, 1); + dispbottom l("For defeating the Monster King, you've got the Legendary @@.", getitemlink(AegisShield)); + 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."); */ + end; } diff --git a/npc/functions/util.txt b/npc/functions/util.txt index e9d521a1d..4ffd4a884 100644 --- a/npc/functions/util.txt +++ b/npc/functions/util.txt @@ -766,6 +766,12 @@ function script mstone { .lvl=15; .jlv=10; + // After Monster King defeat, you need less int and job level to rank up! + if ($GAME_STORYLINE >= 5) { + .int = 3; + .jlvl = 5; + } + return ( MAGIC_LVL == .@v && readparam2(bInt) >= $MANA_BINT+(.int*.@v) && |