summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Petithory <vincent.petithory@gmail.com>2013-03-24 12:41:09 +0100
committerVincent Petithory <vincent.petithory@gmail.com>2013-03-24 12:41:09 +0100
commite7aac80a59d9902e173409da062f49bc6f0372f3 (patch)
tree35d1f294c20a4a6a79a148edcee2ad590819cb1d
parent0465893d31020aa8b78eed3105b3b37761d3038c (diff)
downloadclassic-serverdata-e7aac80a59d9902e173409da062f49bc6f0372f3.tar.gz
classic-serverdata-e7aac80a59d9902e173409da062f49bc6f0372f3.tar.bz2
classic-serverdata-e7aac80a59d9902e173409da062f49bc6f0372f3.tar.xz
classic-serverdata-e7aac80a59d9902e173409da062f49bc6f0372f3.zip
Candor fix: Clean dead players' variables with OnPCDieEvent
-rw-r--r--world/map/npc/029-3/parua.txt7
1 files 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;