summaryrefslogtreecommitdiff
path: root/npc/instances/SealedShrine.txt
diff options
context:
space:
mode:
authormasao87 <masao87@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-05-12 20:49:09 +0000
committermasao87 <masao87@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-05-12 20:49:09 +0000
commit3844e61a6b9996de7c84420dad65e98275d927ca (patch)
treee3835dd3ac35afa85355e1b7b5dcda64ea95fce2 /npc/instances/SealedShrine.txt
parent17871cc1006e39afda8ce6a0ace4231fea42320b (diff)
downloadhercules-3844e61a6b9996de7c84420dad65e98275d927ca.tar.gz
hercules-3844e61a6b9996de7c84420dad65e98275d927ca.tar.bz2
hercules-3844e61a6b9996de7c84420dad65e98275d927ca.tar.xz
hercules-3844e61a6b9996de7c84420dad65e98275d927ca.zip
- Added an extra check to all instance script if there are actually 2 Players online in the Party to be able to enter the Dungeon. bugreport:3970
- Added a few new statuses to not disappear upon death. bugreport:2652 git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16107 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'npc/instances/SealedShrine.txt')
-rw-r--r--npc/instances/SealedShrine.txt10
1 files changed, 8 insertions, 2 deletions
diff --git a/npc/instances/SealedShrine.txt b/npc/instances/SealedShrine.txt
index 06eefab6b..9ffa659fd 100644
--- a/npc/instances/SealedShrine.txt
+++ b/npc/instances/SealedShrine.txt
@@ -91,7 +91,7 @@ monk_test,309,146,3 script Friar Patrick#edq 412,{
if (BaseLevel > 74) {
set .@party_id,getcharid(1);
- getpartymember(.@party_id);
+ getpartymember(.@party_id),1;
set .@partymembercount,$@partymembercount;
copyarray .@partymembername$[0],$@partymembername$[0],.@partymembercount;
@@ -104,8 +104,14 @@ monk_test,309,146,3 script Friar Patrick#edq 412,{
// Two hour play limit
//set .@ins_bapho_check2,checkquest(3045,PLAYTIME);
+ for(set .@i,0; .@i < .@partymembercount; set .@i,.@i+1){
+ if(isloggedin($@partymemberaid[.@i],$@partymembercid[.@i])){
+ set .@loggedin,.@loggedin+1;
+ }
+ }
+
if (.@ins_bapho_check == -1) {
- if ((getpartyleader(.@party_id,2) == getcharid(0)) && (.@partymembercount > 1)) {
+ if ((getpartyleader(.@party_id,2) == getcharid(0)) && (.@partymembercount > 1) && (.@loggedin > 1)) {
set .@instance, instance_create("Sealed Catacombs", .@party_id);
if (.@instance < 0) {
mes "[Friar Patrick]";