summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormekolat <mekolat@users.noreply.github.com>2015-05-06 16:03:31 -0400
committermekolat <mekolat@users.noreply.github.com>2015-05-06 16:03:31 -0400
commit821d5db25b3561850480ae1c0fded08fe4b2a039 (patch)
tree6c1e1f80d2a59635307c504ffc4c81f59ed50973
parent68a52cedb0ec97973358471129a6097dab55fca7 (diff)
downloadserverdata-821d5db25b3561850480ae1c0fded08fe4b2a039.tar.gz
serverdata-821d5db25b3561850480ae1c0fded08fe4b2a039.tar.bz2
serverdata-821d5db25b3561850480ae1c0fded08fe4b2a039.tar.xz
serverdata-821d5db25b3561850480ae1c0fded08fe4b2a039.zip
fix candor timer
-rw-r--r--world/map/npc/029-3/parua.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/world/map/npc/029-3/parua.txt b/world/map/npc/029-3/parua.txt
index 41e1fe8c..1ac59e0a 100644
--- a/world/map/npc/029-3/parua.txt
+++ b/world/map/npc/029-3/parua.txt
@@ -8,7 +8,7 @@
set @FIGHT_CAVE_ANNOUNCE_COST, 3000;
set @FIGHT_CAVE_ANNOUNCE_COST$, "3,000";
if ($@FIGHT_CAVE_STATUS == 1) goto L_Enjoy;
- if ($@FIGHT_CAVE_STATUS >= 2) goto L_Wait;
+ if ($@FIGHT_CAVE_STATUS >= 2 && $@ANNOUNCE_TIME > gettimetick(2)) goto L_Wait;
mes "[Parua]";
mes "\"Hello.\"";
next;
@@ -105,7 +105,7 @@ L_Enjoy:
goto L_Exit;
L_Wait:
- set @ms, ($@ANNOUNCE_TIME - gettimetick(2)) * 1000;
+ set @seconds, $@ANNOUNCE_TIME - gettimetick(2);
callfunc "HumanTime";
mes "[Parua]";
mes "\"Be Patient... The fight will start in " + @time$ + ".\"";
@@ -362,6 +362,7 @@ L_CleanUp:
donpcevent "#CandorAnnouncer::OnCommandTalk";
areatimer "029-3", 20, 20, 70, 60, 10, "Parua::OnReward";
set $@FIGHT_CAVE_STATUS, 0;
+ set $@ANNOUNCE_TIME, 0;
set $@FIGHT_CAVE_PAID, 0;
set $@FIGHT_CAVE_PLAYER_COUNT, 0;
set $@FIGHT_CAVE_LEVEL, 1;