summaryrefslogtreecommitdiff
path: root/npc/instances/SealedShrine.txt
diff options
context:
space:
mode:
authorCarlos Henrique <carloshlfzanon@gmail.com>2018-12-04 16:14:36 -0200
committerCarlos Henrique <carloshlfzanon@gmail.com>2018-12-04 16:15:50 -0200
commit3b95a3a20be9b7963f9ea0ec357f37a6be70dbea (patch)
tree33b7074465652b8afc7b88846ab483b794c72df5 /npc/instances/SealedShrine.txt
parent41d370cd3308be48b4ce00a50ee46515742978b0 (diff)
downloadhercules-3b95a3a20be9b7963f9ea0ec357f37a6be70dbea.tar.gz
hercules-3b95a3a20be9b7963f9ea0ec357f37a6be70dbea.tar.bz2
hercules-3b95a3a20be9b7963f9ea0ec357f37a6be70dbea.tar.xz
hercules-3b95a3a20be9b7963f9ea0ec357f37a6be70dbea.zip
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.
Diffstat (limited to 'npc/instances/SealedShrine.txt')
-rw-r--r--npc/instances/SealedShrine.txt16
1 files 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.");