diff options
author | masao87 <masao87@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-05-12 20:49:09 +0000 |
---|---|---|
committer | masao87 <masao87@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-05-12 20:49:09 +0000 |
commit | 3844e61a6b9996de7c84420dad65e98275d927ca (patch) | |
tree | e3835dd3ac35afa85355e1b7b5dcda64ea95fce2 /npc/instances/EndlessTower.txt | |
parent | 17871cc1006e39afda8ce6a0ace4231fea42320b (diff) | |
download | hercules-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/EndlessTower.txt')
-rw-r--r-- | npc/instances/EndlessTower.txt | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/npc/instances/EndlessTower.txt b/npc/instances/EndlessTower.txt index 48d9bf98d..43bde99a5 100644 --- a/npc/instances/EndlessTower.txt +++ b/npc/instances/EndlessTower.txt @@ -210,7 +210,7 @@ e_tower,81,105,0 script Tower Protection Stone 406,{ set .@md_name$,"Endless Tower"; set .@p_name2$,strcharinfo(0); - getpartymember(.@party_id); + getpartymember(.@party_id),1; set .@partymembercount,$@partymembercount; copyarray .@partymembername$[0],$@partymembername$[0],.@partymembercount; @@ -225,7 +225,13 @@ e_tower,81,105,0 script Tower Protection Stone 406,{ set .@dun_m,(.@dun_ent_t - (.@dun_h * 3600)) / 60; set .@dun_s,.@dun_ent_t - ((.@dun_h * 3600) + (.@dun_m * 60)); - if ((.@party_id > 0) && (.@partymembercount > 1)) { + for(set .@i,0; .@i < .@partymembercount; set .@i,.@i+1){ + if(isloggedin($@partymemberaid[.@i],$@partymembercid[.@i])){ + set .@loggedin,.@loggedin+1; + } + } + + if ((.@party_id > 0) && (.@partymembercount > 1) && (.@loggedin > 1)) { if (.@etower_timer == -1) { if (.@ins_mas == getcharid(0)) { mes "Confirmed the party has been made. Would you like to reserve entrance to the Endless Tower?"; |