From e7aac80a59d9902e173409da062f49bc6f0372f3 Mon Sep 17 00:00:00 2001 From: Vincent Petithory Date: Sun, 24 Mar 2013 12:41:09 +0100 Subject: Candor fix: Clean dead players' variables with OnPCDieEvent --- world/map/npc/029-3/parua.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/world/map/npc/029-3/parua.txt b/world/map/npc/029-3/parua.txt index 4fab5b6b..148e1d4d 100644 --- a/world/map/npc/029-3/parua.txt +++ b/world/map/npc/029-3/parua.txt @@ -274,7 +274,7 @@ onTick: // called on each player when a new round begins onNewRound: if (isdead()) - goto L_CleanUp_Player; + end; if ($@FIGHT_CAVE_LEVEL < 600) end; set @candor_oldx, @candor_x; @@ -318,6 +318,9 @@ L_CleanUp_Announcement: setnpctimer 0; end; +OnPCDieEvent: + // fall through L_CleanUp_Player + L_CleanUp_Player: set @candor_oldx, 0; set @candor_oldy, 0; @@ -333,7 +336,7 @@ L_IdleCheckPassed: onReward: if (isdead()) - goto L_CleanUp_Player; + end; set BOSS_POINTS, BOSS_POINTS + 100; message strcharinfo(0), "You gain 100 Boss Points giving you a total of " + BOSS_POINTS; goto L_CleanUp_Player; -- cgit v1.2.3-60-g2f50