diff options
author | masao87 <masao87@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-05-27 23:53:46 +0000 |
---|---|---|
committer | masao87 <masao87@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-05-27 23:53:46 +0000 |
commit | 3d4287cc5efb305ba392ab81875f117548e207f7 (patch) | |
tree | 8dc1149ed1f75afafaf2ce8f82b975d3f87afd8b /npc/instances/OrcsMemory.txt | |
parent | f8d5302f9f7352d4379061ebc8ad38e55b4cf4b3 (diff) | |
download | hercules-3d4287cc5efb305ba392ab81875f117548e207f7.tar.gz hercules-3d4287cc5efb305ba392ab81875f117548e207f7.tar.bz2 hercules-3d4287cc5efb305ba392ab81875f117548e207f7.tar.xz hercules-3d4287cc5efb305ba392ab81875f117548e207f7.zip |
- Added an security check for each player which is entering an instance to make sure that the cool down time can't be bypassed which would lead to abuses of the according instance dungeons. bugreport:5768
- Some minor additions to the Magic Gear renter NPC.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16158 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'npc/instances/OrcsMemory.txt')
-rw-r--r-- | npc/instances/OrcsMemory.txt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/npc/instances/OrcsMemory.txt b/npc/instances/OrcsMemory.txt index 332159aeb..c8f5d2510 100644 --- a/npc/instances/OrcsMemory.txt +++ b/npc/instances/OrcsMemory.txt @@ -117,8 +117,14 @@ gef_fild10,242,202,0 script Dimensional Gorge Piece 406,{ mes "If your dungeon has been destroyed you must wait 7 days before re-entering."; close; } + if((party_instance_id3 != 0) && (party_instance_id3 != getcharid(1))) { + mes "The Memorial Dungeon "+.@md_name$+" does not exist."; + mes "The Memorial Dungeon has been destroyed by the Party Leader or because of the time limit. Please try again after 2 hours."; + close; + } mapannounce "gef_fild10", .@p_leader$ + " of the party, " + .@p_name$ + " is entering the "+.@md_name$+".",bc_map,"0x00ff99"; if (checkquest(12059)== -1) setquest 12059; + set party_instance_id3,getcharid(1); warp "1@orcs",179,15; end; case 3: @@ -132,7 +138,13 @@ gef_fild10,242,202,0 script Dimensional Gorge Piece 406,{ mes "The Memorial Dungeon has been destroyed by the Party Leader or because of the time limit. Please try again after 2 hours."; close; } + if((party_instance_id3 != 0) && (party_instance_id3 != getcharid(1))) { + mes "The Memorial Dungeon "+.@md_name$+" does not exist."; + mes "The Memorial Dungeon has been destroyed by the Party Leader or because of the time limit. Please try again after 2 hours."; + close; + } mapannounce "gef_fild10",.@p_name$+" Party's member "+.@p_leader$+" has entered the "+.@md_name$+".",bc_map,"0x00ff99"; + set party_instance_id3,getcharid(1); if (checkquest(12059)== -1) setquest 12059; warp "1@orcs",179,15; end; @@ -149,8 +161,14 @@ gef_fild10,242,202,0 script Dimensional Gorge Piece 406,{ mes "The Memorial Dungeon has been destroyed by the Party Leader or because of the time limit. Please try again after 2 hours."; close; } + if((party_instance_id3 != 0) && (party_instance_id3 != getcharid(1))) { + mes "The Memorial Dungeon "+.@md_name$+" does not exist."; + mes "The Memorial Dungeon has been destroyed by the Party Leader or because of the time limit. Please try again after 2 hours."; + close; + } mapannounce "gef_fild10",.@p_name$+" Party's member "+.@p_leader$+" has entered the "+.@md_name$+".",bc_map,"0x00ff99"; if (checkquest(12059)== -1) setquest 12059; + set party_instance_id3,getcharid(1); warp "1@orcs",179,15; end; case 2: @@ -159,6 +177,7 @@ gef_fild10,242,202,0 script Dimensional Gorge Piece 406,{ } else if (.@orctime == 2) { mes "^0000ffAll records and after-effects related to the Orc's Memory Dungeon are deleted. You can now regenerate or re-enter the dungeon.^000000"; + set party_instance_id2,0; erasequest 12059; close; } |