summaryrefslogtreecommitdiff
path: root/npc/instances/NydhoggsNest.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/instances/NydhoggsNest.txt')
-rw-r--r--npc/instances/NydhoggsNest.txt10
1 files changed, 8 insertions, 2 deletions
diff --git a/npc/instances/NydhoggsNest.txt b/npc/instances/NydhoggsNest.txt
index c497cffe8..2ff7438a1 100644
--- a/npc/instances/NydhoggsNest.txt
+++ b/npc/instances/NydhoggsNest.txt
@@ -127,11 +127,17 @@ nyd_dun02,100,201,3 script Yggdrasil Gatekeeper 111,8,8,{
set .@leader,getpartyleader(.@party,2);
set .@md_name$,"Nidhoggur's Nest";
- getpartymember(.@party);
+ getpartymember(.@party),1;
set .@partymembercount,$@partymembercount;
copyarray .@partymembername$[0],$@partymembername$[0],.@partymembercount;
- if ((.@party > 0) && ((.@partymembercount > 1)) && (.@leader == getcharid(0))) {
+ for(set .@i,0; .@i < .@partymembercount; set .@i,.@i+1){
+ if(isloggedin($@partymemberaid[.@i],$@partymembercid[.@i])){
+ set .@loggedin,.@loggedin+1;
+ }
+ }
+
+ if ((.@party > 0) && ((.@partymembercount > 1)) && (.@leader == getcharid(0)) && (.@loggedin > 1)) {
set .@instance, instance_create(.@md_name$, .@party);
if (.@instance < 0) {
mes "[Yggdrasil Gatekeeper]";