diff options
author | Haru <haru@dotalux.com> | 2014-10-20 04:20:29 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2014-10-28 00:27:54 +0100 |
commit | 32169c383f2658192b6b8cb02d7f818a361dda03 (patch) | |
tree | ff1f1d902920d922b74eb879070e8c9973daa0dd /npc/instances/EndlessTower.txt | |
parent | 3e395756f10befe9aa0707169d8af7897706eb93 (diff) | |
download | hercules-32169c383f2658192b6b8cb02d7f818a361dda03.tar.gz hercules-32169c383f2658192b6b8cb02d7f818a361dda03.tar.bz2 hercules-32169c383f2658192b6b8cb02d7f818a361dda03.tar.xz hercules-32169c383f2658192b6b8cb02d7f818a361dda03.zip |
Removed use of 'checkquest' from scripts (common folder)
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'npc/instances/EndlessTower.txt')
-rw-r--r-- | npc/instances/EndlessTower.txt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/npc/instances/EndlessTower.txt b/npc/instances/EndlessTower.txt index 2da7c8719..8da1d93c7 100644 --- a/npc/instances/EndlessTower.txt +++ b/npc/instances/EndlessTower.txt @@ -213,14 +213,14 @@ e_tower,81,105,0 script Tower Protection Stone 2_MONEMUS,{ set .@p_name$,getpartyname(.@party_id); set .@md_name$,"Endless Tower"; - set .@etower_timer,checkquest(60200,PLAYTIME); // 1 week - set .@etower_timer2,checkquest(60201,PLAYTIME); // 4 hours + .@etower_timer = questprogress(60200,PLAYTIME); // 1 week + .@etower_timer2 = questprogress(60201,PLAYTIME); // 4 hours if (!instance_check_party(.@party_id,2)) { mes "Make or join a party with more than 1 member and try again."; close; } - if (.@etower_timer == -1) { + if (!.@etower_timer) { if (getcharid(0) == getpartyleader(.@party_id,2)) { mes "Confirmed the party has been made. Would you like to reserve entrance to the Endless Tower?"; next; @@ -267,7 +267,7 @@ e_tower,81,105,0 script Tower Protection Stone 2_MONEMUS,{ case 3: end; } - } else if ((.@etower_timer >= 0) && (.@etower_timer2 < 2)) { + } else if (.@etower_timer == 1) { mes "If you have the dungeon generated already, you can enter it. "; next; switch(select("Enter the "+.@md_name$+":Return to Alberta:Cancel")) { @@ -282,7 +282,7 @@ e_tower,81,105,0 script Tower Protection Stone 2_MONEMUS,{ break; } close; - } else if ((.@etower_timer >= 0) && (.@etower_timer < 2) && (.@etower_timer2 == 2)) { + } else if (.@etower_timer == 1 && .@etower_timer2 == 2) { set .@dun_lim_time,etower_timer+604800; // 1 week set .@dun_lim_time2,etower_timer+14400; // 4 hours |