From 3b95a3a20be9b7963f9ea0ec357f37a6be70dbea Mon Sep 17 00:00:00 2001 From: Carlos Henrique Date: Tue, 4 Dec 2018 16:14:36 -0200 Subject: Added test to don't invoke sealed baphomet twice or more. Only if already not summoned and player who are talking is the party leader. --- npc/instances/SealedShrine.txt | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'npc/instances/SealedShrine.txt') diff --git a/npc/instances/SealedShrine.txt b/npc/instances/SealedShrine.txt index 91771c31c..c69c7dfe8 100644 --- a/npc/instances/SealedShrine.txt +++ b/npc/instances/SealedShrine.txt @@ -1108,13 +1108,15 @@ OnInstanceInit: next(); mes("The bottom of the Main Altar trembles furiously."); next(); - specialeffect(EF_METEORSTORM); - specialeffect(EF_METEORSTORM); - mesf("[%s]", strcharinfo(PC_NAME)); - mes("Watch out! Something... Something is coming."); - 'ins_baphomet = 6; - donpcevent(instance_npcname("ins_2f_hero_broad")+"::OnEnable"); - disablenpc(instance_npcname("The Main Altar#ss")); + if ('ins_baphomet == 5 && getpartyleader(.@party_id, 2) == getcharid(CHAR_ID_CHAR)) { + specialeffect(EF_METEORSTORM); + specialeffect(EF_METEORSTORM); + mesf("[%s]", strcharinfo(PC_NAME)); + mes("Watch out! Something... Something is coming."); + 'ins_baphomet = 6; + donpcevent(instance_npcname("ins_2f_hero_broad")+"::OnEnable"); + disablenpc(instance_npcname("The Main Altar#ss")); + } close(); } else { mes("An evil power, too terrible to describe, lies under the great altar radiating a violet color."); -- cgit v1.2.3-70-g09d2