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(-) 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-60-g2f50 From 749fdb72b80ee282419c45aeea9cd756bc8848ec Mon Sep 17 00:00:00 2001 From: Emistry Haoyan Date: Fri, 14 Dec 2018 14:16:19 -0200 Subject: Update npc/instances/SealedShrine.txt Co-Authored-By: carloshenrq --- npc/instances/SealedShrine.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/npc/instances/SealedShrine.txt b/npc/instances/SealedShrine.txt index c69c7dfe8..1c4f4b9d8 100644 --- a/npc/instances/SealedShrine.txt +++ b/npc/instances/SealedShrine.txt @@ -1108,7 +1108,7 @@ OnInstanceInit: next(); mes("The bottom of the Main Altar trembles furiously."); next(); - if ('ins_baphomet == 5 && getpartyleader(.@party_id, 2) == getcharid(CHAR_ID_CHAR)) { + if ('ins_baphomet == 5) { specialeffect(EF_METEORSTORM); specialeffect(EF_METEORSTORM); mesf("[%s]", strcharinfo(PC_NAME)); -- cgit v1.2.3-60-g2f50