From 3bc27299cbd43147a628c0b2cdb5736485a00530 Mon Sep 17 00:00:00 2001 From: Jesusalva Jesusalva Date: Tue, 18 Apr 2023 03:10:32 +0000 Subject: Minor bugfixes (security, music) --- world/map/npc/annuals/2022.txt | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'world/map/npc/annuals/2022.txt') diff --git a/world/map/npc/annuals/2022.txt b/world/map/npc/annuals/2022.txt index 8a23ea41..3b6df57a 100644 --- a/world/map/npc/annuals/2022.txt +++ b/world/map/npc/annuals/2022.txt @@ -9,7 +9,7 @@ end; OnFirst: - if (strcharinfo(0) != "Blanc" && GM < G_SYSOP) end; + if (strcharinfo(0) != "Blanc" && GM < G_ADMIN) end; wgm "==> Flagship spawned by "+strcharinfo(0); monster "002-1", 29, 61, "", MontBlanc, 1, "#CRC2022::OnExplode"; areatimer 0, "002-1", 20, 20, 100, 120, 10, "#CRC2023::OnMusic"; @@ -17,7 +17,7 @@ OnFirst: end; OnThird: - if (strcharinfo(0) != "Blanc" && GM < G_SYSOP) end; + if (strcharinfo(0) != "Blanc" && GM < G_ADMIN) end; gmlog strcharinfo(0)+" : @spawn CRCMonsters 25"; //set $@CRC22Mc, mobcount("002-1", "#CRC2022::OnDie")+1; set $@CRC22Mc, 0; @@ -34,10 +34,14 @@ OnMusic: music "Dramatic.ogg"; end; +OnDeMusic: + music "faith.ogg"; + end; + // Main ship cannon (range = infinity) OnBoom: misceffect 30, strcharinfo(0); - heal -(rand(BaseLevel*2)), 0; + heal -(rand(BaseLevel*3/2)), 0; end; // Extra wave control system [0] @@ -58,10 +62,15 @@ OnTimer5000: OnDie: end; +OnExplodeT: + if (strcharinfo(0) != "Blanc" && GM < G_ADMIN) end; + goto OnExplode; + OnExplode: wgm "==> Flagship sank by "+strcharinfo(0); stopnpctimer; mapannounce "002-1", "Mont Blanc : Captain! Fall back!! They have damaged the outer hull!", 0; + areatimer 0, "002-1", 20, 20, 100, 120, 10, "#CRC2023::OnDeMusic"; end; OnInit: @@ -69,7 +78,7 @@ OnInit: // Register commands registercmd "#crcflagship", strnpcinfo(0)+"::OnFirst"; registercmd "#crcmobs", strnpcinfo(0)+"::OnThird"; - registercmd "#crcdie", strnpcinfo(0)+"::OnExplode"; + registercmd "#crcdie", strnpcinfo(0)+"::OnExplodeT"; end; } -- cgit v1.2.3-60-g2f50