From b46fcfd936c108b75a88ef5b9f09cbdbbb1a2edc Mon Sep 17 00:00:00 2001 From: coffee Date: Sun, 21 Aug 2011 17:00:22 -0300 Subject: Prevents parua from charging more than 1 player for the fight. --- world/map/npc/029-3/parua.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'world/map') diff --git a/world/map/npc/029-3/parua.txt b/world/map/npc/029-3/parua.txt index cfc269fe..fe8ac5d7 100644 --- a/world/map/npc/029-3/parua.txt +++ b/world/map/npc/029-3/parua.txt @@ -19,6 +19,8 @@ L_Paying: if (getareausers("029-3.gat", 20, 20, 70, 60) < 5) goto L_NotEnoughPlayers; if (zeny < 20000) goto L_NotEnough; +// Do not charge the money if the fight or the announces were already started by someone else + if ($@FIGHT_CAVE_STATUS != 0) close; set zeny, zeny - 20000; L_StartFight: @@ -46,8 +48,8 @@ L_CallPlayers: "In 15 minutes.", -, "In 30 minutes.", -, "I don't want to wait. Let's start it now!", L_Paying; - - if ($@FIGHT_CAVE_STATUS >= 2) close; +// Do not charge the money if the fight or the announces were already started by someone else + if ($@FIGHT_CAVE_STATUS != 0) 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); -- cgit v1.2.3-60-g2f50