From 93e8e99219e3935ccd47b27a8fdcdbff4bde12e9 Mon Sep 17 00:00:00 2001 From: The Kandiman Date: Sat, 18 Jun 2011 18:22:14 -0400 Subject: Small fix for Candor announce script Removes bug that allowed 2 chars to pay for announcement and would freeze timer. --- npc/029-3/parua.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/npc/029-3/parua.txt b/npc/029-3/parua.txt index c292f963..cfc269fe 100644 --- a/npc/029-3/parua.txt +++ b/npc/029-3/parua.txt @@ -47,6 +47,7 @@ L_CallPlayers: "In 30 minutes.", -, "I don't want to wait. Let's start it now!", L_Paying; + if ($@FIGHT_CAVE_STATUS >= 2) close; if (getareausers("029-3.gat", 20, 20, 70, 60) < 5) goto L_NotEnoughPlayers; if (zeny < 20000 + 3000) goto L_NotEnough_Announce; set zeny, zeny - (20000 + 3000); @@ -54,7 +55,7 @@ L_CallPlayers: set $@FIGHT_CAVE_STATUS, $@FIGHT_CAVE_STATUS + (@menu + 2); if ($@FIGHT_CAVE_STATUS == 3) set $@ANNOUNCE_TIME, gettimetick(2) + 300; if ($@FIGHT_CAVE_STATUS == 4) set $@ANNOUNCE_TIME, gettimetick(2) + 900; - if ($@FIGHT_CAVE_STATUS == 5) set $@ANNOUNCE_TIME, gettimetick(2) + 1800; + if ($@FIGHT_CAVE_STATUS >= 5) set $@ANNOUNCE_TIME, gettimetick(2) + 1800; startnpctimer; close; @@ -153,7 +154,7 @@ L_Announce: L_GlobalAnnounce: if ($@FIGHT_CAVE_STATUS == 3) goto L_Five_Minutes; if ($@FIGHT_CAVE_STATUS == 4) goto L_Fifteen_Minutes; - if ($@FIGHT_CAVE_STATUS == 5) goto L_Thirty_Minutes; + if ($@FIGHT_CAVE_STATUS >= 5) goto L_Thirty_Minutes; if (gettimetick(2) >= $@ANNOUNCE_TIME) goto L_StartFight; end; -- cgit v1.2.3-70-g09d2