From 07e05d5f62cdcbbeb5e88fd3c1267bb14d812621 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 3 Jun 2019 20:46:38 -0300 Subject: Monster King death - safety flags --- npc/015-8-1/campaign.txt | 3 +++ npc/functions/gmbot.txt | 13 ++++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/npc/015-8-1/campaign.txt b/npc/015-8-1/campaign.txt index b2f836700..0158d6264 100644 --- a/npc/015-8-1/campaign.txt +++ b/npc/015-8-1/campaign.txt @@ -83,6 +83,9 @@ OnS04: // Status cleanup // 255 = PCBLOCK_ATTACK|PCBLOCK_SKILL|PCBLOCK_USEITEM|PCBLOCK_COMMANDS|PCBLOCK_SITSTAND|PCBLOCK_IMMUNE|PCBLOCK_CHAT|PCBLOCK_MOVE setpcblock(255, false); + // TODO: After x time, reinforcements on both sides + // BOSS: “Kill 'em all!” + // SAGGY: “Beings of florest, come to my aid and protect me!” end; // Assassin, HoodedNinja, HoodedAssassin (boss) diff --git a/npc/functions/gmbot.txt b/npc/functions/gmbot.txt index caa44cedd..1211c6fd9 100644 --- a/npc/functions/gmbot.txt +++ b/npc/functions/gmbot.txt @@ -34,11 +34,14 @@ OnSlaveDie: end; OnBourneAgain: - channelmes("#world", strcharinfo(0)+" did an act worth of notice."); - dispbottom l("Oh well, this sucks, but that was only an illusion."); - dispbottom l("The real Monster King is probably on his fortress. It'll take more than that to take him down."); - getexp BaseLevel**3, 0; - Mobpt = Mobpt + 165; + if (playerattached()) { + channelmes("#world", strcharinfo(0)+" did an act worth of notice."); + dispbottom l("Oh well, this sucks, but that was only an illusion."); + dispbottom l("The real Monster King is probably on his fortress. It'll take more than that to take him down."); + getexp BaseLevel**3, 0; + Mobpt = Mobpt + 165; + $MOST_HEROIC$=strcharinfo(0); + } // We need to start over .bar=true; OnInit: -- cgit v1.2.3-70-g09d2