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/SealedShrine.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/SealedShrine.txt')
-rw-r--r-- | npc/instances/SealedShrine.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/npc/instances/SealedShrine.txt b/npc/instances/SealedShrine.txt index f6a028dd9..05a14c931 100644 --- a/npc/instances/SealedShrine.txt +++ b/npc/instances/SealedShrine.txt @@ -209,6 +209,7 @@ monk_test,309,146,3 script Friar Patrick#edq 412,{ if (checkquest(3040)>=0) erasequest 3040; if (checkquest(3041)>=0) erasequest 3041; if (checkquest(3045)>=0) erasequest 3045; + set party_instance_id4,0; mes "[Friar Patrick]"; mes "Huu... It's over. Now that I've released Baphomet's Curse, you can enter again."; } @@ -279,10 +280,15 @@ monk_test,306,151,3 script Grave of Baphomet#edq 111,{ if (has_instance("1@cata") == "") { mes "It's cold to the touch. It doesn't respond."; } + if((party_instance_id4 != 0) && (party_instance_id4 != getcharid(1))) { + mes "It seems you have entered this shrine recently... You cannot reenter because Baphomet's Curse still remains. Baphomet's Curse disappears only after a certain amount of time has passed."; + } else { mapannounce "monk_test","[" + strcharinfo(0) + "] member of the [" + getpartyname(.@party_id) + "] party has entered the Sealed Shrine.",bc_map,"0x00ff99"; if (checkquest(3040) == -1) setquest 3040; + set party_instance_id4,getcharid(1); warp "1@cata",100,224; + end; } } else if (.@ins_bapho_check == 0 || .@ins_bapho_check == 1) { @@ -300,6 +306,7 @@ monk_test,306,151,3 script Grave of Baphomet#edq 111,{ if (checkquest(3040)>=0) erasequest 3040; if (checkquest(3041)>=0) erasequest 3041; if (checkquest(3045)>=0) erasequest 3045; + set party_instance_id4,0; next; mes "[Friar Patrick]"; mes "Huu... It's over. Now I released all of the curses on you. You can enter again."; |