From 1b6ef8f9b16448afcce73a2269f3cf0849b7eb2d Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 8 Apr 2019 08:44:07 -0300 Subject: The monster king now automatically sieges Tulimshar, and @toevent works when that is set ^.^ This means a new degree in how events are handled --- npc/003-1/lieutenantdausen.txt | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) (limited to 'npc/003-1') diff --git a/npc/003-1/lieutenantdausen.txt b/npc/003-1/lieutenantdausen.txt index 788cb993d..c578f6c2e 100644 --- a/npc/003-1/lieutenantdausen.txt +++ b/npc/003-1/lieutenantdausen.txt @@ -124,6 +124,19 @@ L_MKControl: l("Abort"), -; close; +OnMKSiege: + addmapmask "003-1", MASK_MATTACK; + addmapmask "004-1", MASK_MATTACK; + changemusic "003-1", any("mythica.ogg", "eric_matyas_ghouls.ogg", "misuse.ogg", "Arabesque.ogg"); + disablenpc("Mana Stone"); + $@SIEGE_TULIM=($@MK_AGGRO/30); // Each 30 aggro raises difficulty in 1 + pvpon("003-1"); + pvpon("004-1"); + announce(("##1WARNING! WARNING! Siege starting at Tulimshar!!"), bc_all); + areamonster("004-1", 0, 0, 79, 81, l("Black Scorpion"), BlackScorpion, 10, "Lieutenant Dausen::OnBlackScorpionDeath"); + initnpctimer; + end; + L_MKSmall: addmapmask "003-1", MASK_MATTACK; addmapmask "004-1", MASK_MATTACK; @@ -132,7 +145,7 @@ L_MKSmall: $@SIEGE_TULIM=0; // factor zero pvpon("003-1"); pvpon("004-1"); - announce(l("##1WARNING! WARNING! Siege starting at Tulimshar!!"), bc_all); + announce(("##1WARNING! WARNING! Siege starting at Tulimshar!!"), bc_all); areamonster("004-1", 0, 0, 79, 81, l("Black Scorpion"), BlackScorpion, 10, "Lieutenant Dausen::OnBlackScorpionDeath"); initnpctimer; close; @@ -145,7 +158,7 @@ L_MKMedium: $@SIEGE_TULIM=1; // factor one pvpon("003-1"); pvpon("004-1"); - announce(l("##1WARNING! WARNING! Siege starting at Tulimshar!!"), bc_all); + announce(("##1WARNING! WARNING! Siege starting at Tulimshar!!"), bc_all); areamonster("004-1", 0, 0, 79, 81, l("Black Scorpion"), BlackScorpion, 15, "Lieutenant Dausen::OnBlackScorpionDeath"); initnpctimer; close; @@ -158,7 +171,7 @@ L_MKHuge: $@SIEGE_TULIM=5; // factor five pvpon("003-1"); pvpon("004-1"); - announce(l("##1WARNING! WARNING! Siege starting at Tulimshar!!"), bc_all); + announce(("##1WARNING! WARNING! Siege starting at Tulimshar!!"), bc_all); areamonster("004-1", 0, 0, 79, 81, l("Black Scorpion"), BlackScorpion, 30, "Lieutenant Dausen::OnBlackScorpionDeath"); initnpctimer; close; @@ -345,6 +358,8 @@ OnTimer540000: end; OnTimer600000: + $@MK_SCENE=MK_NONE; + $@MK_AGGRO=$@MK_AGGRO/20; mapannounce("003-1", "##1The Monster King army is preparing to withdraw!", bc_map); end; @@ -353,7 +368,7 @@ OnTimer630000: removemapmask "004-1", MASK_MATTACK; changemusic "003-1", "bartk_adventure.ogg"; // Restore to default enablenpc("Mana Stone"); - $@SIEGE_TULIM$=0; + $@SIEGE_TULIM=0; killmonsterall("003-1", 0); killmonsterall("004-1", 0); pvpoff("003-1"); -- cgit v1.2.3-60-g2f50