From 71f02a26a555a561f333ea5aa49c40737a1d7d18 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 2 Jul 2018 02:10:35 -0300 Subject: Try to create guards to protect Tulimshar from sieges --- npc/003-1/lieutenantdausen.txt | 47 ++++++++++++++++++++++++++++++------------ 1 file changed, 34 insertions(+), 13 deletions(-) diff --git a/npc/003-1/lieutenantdausen.txt b/npc/003-1/lieutenantdausen.txt index 3246d12fd..3de5c2d63 100644 --- a/npc/003-1/lieutenantdausen.txt +++ b/npc/003-1/lieutenantdausen.txt @@ -128,7 +128,7 @@ L_MKSmall: pvpon("003-1"); pvpon("004-1"); announce(l("##1WARNING! WARNING! Siege starting at Tulimshar!!"), bc_all); - areamonster("004-1", 0, 0, 79, 81, l("Black Scorpion"), 1074, 10, "Lieutenant Dausen::OnBlackScorpionDeath"); + areamonster("004-1", 0, 0, 79, 81, l("Black Scorpion"), BlackScorpion, 10, "Lieutenant Dausen::OnBlackScorpionDeath"); initnpctimer; close; @@ -141,7 +141,7 @@ L_MKMedium: pvpon("003-1"); pvpon("004-1"); announce(l("##1WARNING! WARNING! Siege starting at Tulimshar!!"), bc_all); - areamonster("004-1", 0, 0, 79, 81, l("Black Scorpion"), 1074, 15, "Lieutenant Dausen::OnBlackScorpionDeath"); + areamonster("004-1", 0, 0, 79, 81, l("Black Scorpion"), BlackScorpion, 15, "Lieutenant Dausen::OnBlackScorpionDeath"); initnpctimer; close; @@ -154,18 +154,21 @@ L_MKHuge: pvpon("003-1"); pvpon("004-1"); announce(l("##1WARNING! WARNING! Siege starting at Tulimshar!!"), bc_all); - areamonster("004-1", 0, 0, 79, 81, l("Black Scorpion"), 1074, 30, "Lieutenant Dausen::OnBlackScorpionDeath"); + areamonster("004-1", 0, 0, 79, 81, l("Black Scorpion"), BlackScorpion, 30, "Lieutenant Dausen::OnBlackScorpionDeath"); initnpctimer; close; +OnGuardDeath: + end; + OnBlackScorpionDeath: - areamonster("004-1", 0, 0, 79, 81, l("Black Scorpion"), 1074, 1, "Lieutenant Dausen::OnBlackScorpionDeath"); + areamonster("004-1", 0, 0, 79, 81, l("Black Scorpion"), BlackScorpion, 1, "Lieutenant Dausen::OnBlackScorpionDeath"); if (rand(10000) <= 90+($@SIEGE_TULIM*10)) getitem StrangeCoin, 1; end; OnBlackScorpion2Death: - areamonster("003-1", 0, 0, 120, 155, l("Black Scorpion"), 1074, 1, "Lieutenant Dausen::OnBlackScorpion2Death"); + areamonster("003-1", 0, 0, 120, 155, l("Black Scorpion"), BlackScorpion, 1, "Lieutenant Dausen::OnBlackScorpion2Death"); if (rand(10000) <= 850+($@SIEGE_TULIM*100)) getitem StrangeCoin, 1; end; @@ -202,8 +205,8 @@ OnColonelDeath: end; OnTimer5000: - areamonster("004-1", 0, 0, 79, 81, "Black Scorpion", 1074, 5+$@SIEGE_TULIM, "Lieutenant Dausen::OnBlackScorpionDeath"); - areamonster("003-1", 0, 0, 120, 155, "Black Scorpion", 1074, 5+$@SIEGE_TULIM, "Lieutenant Dausen::OnBlackScorpion2Death"); + areamonster("004-1", 0, 0, 79, 81, "Black Scorpion", BlackScorpion, 5+$@SIEGE_TULIM, "Lieutenant Dausen::OnBlackScorpionDeath"); + areamonster("003-1", 0, 0, 120, 155, "Black Scorpion", BlackScorpion, 5+$@SIEGE_TULIM, "Lieutenant Dausen::OnBlackScorpion2Death"); mapannounce("003-1", "##2Message to all Tulimshar NPCs: Take shelter!", bc_map); disablenpc "Ched"; disablenpc "Aahna"; @@ -228,11 +231,29 @@ OnTimer5000: disablenpc "Tinris"; disablenpc "#water_animation0"; disablenpc "Sailors#003-1"; + + // Create guards + monster("003-1", 98, 100, ("Guard Philip"), FallenGuard1, 1, "Lieutenant Dausen::OnGuardDeath", Size_Medium, 1); + monster("003-1", 98, 121, ("Guard Defou"), FallenGuard1, 1, "Lieutenant Dausen::OnGuardDeath", Size_Medium, 1); + monster("003-1",102, 121, ("Guard Avou"), FallenGuard1, 1, "Lieutenant Dausen::OnGuardDeath", Size_Medium, 1); + monster("003-1", 58, 158, ("Guard Benji"), FallenGuard1, 1, "Lieutenant Dausen::OnGuardDeath", Size_Medium, 1); + monster("003-1", 62, 158, ("Guard Valou"), FallenGuard1, 1, "Lieutenant Dausen::OnGuardDeath", Size_Medium, 1); + monster("003-1", 71, 138, ("Guard Nutelo"), FallenGuard1, 1, "Lieutenant Dausen::OnGuardDeath", Size_Medium, 1); + monster("003-1", 58, 128, ("Guard Moustacha"), FallenGuard1, 1, "Lieutenant Dausen::OnGuardDeath", Size_Medium, 1); + monster("003-1", 58, 100, ("Guard Popaul"), FallenGuard1, 1, "Lieutenant Dausen::OnGuardDeath", Size_Medium, 1); + monster("003-1", 51, 73, ("Guard Yen"), FallenGuard1, 1, "Lieutenant Dausen::OnGuardDeath", Size_Medium, 1); + monster("003-1", 54, 52, ("Guard Maxim"), FallenGuard1, 1, "Lieutenant Dausen::OnGuardDeath", Size_Medium, 1); + monster("003-1", 50, 36, ("Guard Totor"), FallenGuard1, 1, "Lieutenant Dausen::OnGuardDeath", Size_Medium, 1); + monster("003-1", 53, 36, ("Guard Roukin"), FallenGuard1, 1, "Lieutenant Dausen::OnGuardDeath", Size_Medium, 1); + monster("003-1", 35, 34, ("Guard Falko"), FallenGuard1, 1, "Lieutenant Dausen::OnGuardDeath", Size_Medium, 1); + monster("003-1",111, 101, ("Guard Froma"), FallenGuard1, 1, "Lieutenant Dausen::OnGuardDeath", Size_Medium, 1); + monster("003-1",102, 80, ("Guard Tetric"), FallenGuard1, 1, "Lieutenant Dausen::OnGuardDeath", Size_Medium, 1); + monster("003-1",107, 80, ("Guard Biscop"), FallenGuard1, 1, "Lieutenant Dausen::OnGuardDeath", Size_Medium, 1); end; OnTimer15000: - areamonster("004-1", 0, 0, 79, 81, ("Black Scorpion"), 1074, 5, "Lieutenant Dausen::OnBlackScorpionDeath"); - areamonster("003-1", 0, 0, 120, 155, ("Black Scorpion"), 1074, 10, "Lieutenant Dausen::OnBlackScorpion2Death"); + areamonster("004-1", 0, 0, 79, 81, ("Black Scorpion"), BlackScorpion, 5, "Lieutenant Dausen::OnBlackScorpionDeath"); + areamonster("003-1", 0, 0, 120, 155, ("Black Scorpion"), BlackScorpion, 10, "Lieutenant Dausen::OnBlackScorpion2Death"); disablenpc "Aidan"; disablenpc "Inar"; disablenpc "Malivox"; @@ -249,7 +270,7 @@ OnTimer60000: mapannounce("003-1", "##1The Monster Lieutenant arrived!", bc_map); areamonster("003-1", 0, 0, 120, 155, ("Monster Lieutenant"), 1077, 1, "Lieutenant Dausen::OnLieutenantDeath"); } - areamonster("003-1", 0, 0, 120, 155, ("Black Scorpion"), 1074, 3, "Lieutenant Dausen::OnBlackScorpion2Death"); + areamonster("003-1", 0, 0, 120, 155, ("Black Scorpion"), BlackScorpion, 3, "Lieutenant Dausen::OnBlackScorpion2Death"); areamonster("003-1", 0, 0, 120, 155, ("Green Slime"), 1085, 10+$@SIEGE_TULIM, "Lieutenant Dausen::OnGreenSlimeDeath"); areamonster("003-1", 0, 0, 120, 155, ("Candied Slime"), 1089, 1+$@SIEGE_TULIM, "Lieutenant Dausen::OnCandiedSlimeDeath"); end; @@ -260,21 +281,21 @@ OnTimer120000: areamonster("003-1", 0, 0, 120, 155, ("Monster Colonel"), 1036, 1, "Lieutenant Dausen::OnColonelDeath"); } areamonster("003-1", 0, 0, 120, 155, ("Slime Blast"), 1090, 15); - areamonster("003-1", 0, 0, 120, 155, ("Black Scorpion"), 1074, 1, "Lieutenant Dausen::OnBlackScorpion2Death"); + areamonster("003-1", 0, 0, 120, 155, ("Black Scorpion"), BlackScorpion, 1, "Lieutenant Dausen::OnBlackScorpion2Death"); areamonster("003-1", 0, 0, 120, 155, ("Green Slime"), 1085, 10, "Lieutenant Dausen::OnGreenSlimeDeath"); areamonster("003-1", 0, 0, 120, 155, ("Mana Ghost"), 1068, 2, "Lieutenant Dausen::OnManaGhostDeath"); end; OnTimer180000: areamonster("003-1", 0, 0, 120, 155, ("Slime Blast"), 1090, 25); - areamonster("003-1", 0, 0, 120, 155, ("Black Scorpion"), 1074, 1, "Lieutenant Dausen::OnBlackScorpion2Death"); + areamonster("003-1", 0, 0, 120, 155, ("Black Scorpion"), BlackScorpion, 1, "Lieutenant Dausen::OnBlackScorpion2Death"); areamonster("003-1", 0, 0, 120, 155, ("Candied Slime"), 1089, 10, "Lieutenant Dausen::OnCandiedSlimeDeath"); areamonster("003-1", 0, 0, 120, 155, ("Mana Ghost"), 1068, 2, "Lieutenant Dausen::OnManaGhostDeath"); end; OnTimer240000: areamonster("003-1", 0, 0, 120, 155, ("Slime Blast"), 1090, 25); - areamonster("003-1", 0, 0, 120, 155, ("Black Scorpion"), 1074, 1, "Lieutenant Dausen::OnBlackScorpion2Death"); + areamonster("003-1", 0, 0, 120, 155, ("Black Scorpion"), BlackScorpion, 1, "Lieutenant Dausen::OnBlackScorpion2Death"); areamonster("003-1", 0, 0, 120, 155, ("Mana Ghost"), 1068, 2, "Lieutenant Dausen::OnManaGhostDeath"); end; -- cgit v1.2.3-60-g2f50