summaryrefslogtreecommitdiff
path: root/world/map/npc/029-3/parua.txt
diff options
context:
space:
mode:
Diffstat (limited to 'world/map/npc/029-3/parua.txt')
-rw-r--r--world/map/npc/029-3/parua.txt36
1 files changed, 19 insertions, 17 deletions
diff --git a/world/map/npc/029-3/parua.txt b/world/map/npc/029-3/parua.txt
index 837e913a..41b5d79c 100644
--- a/world/map/npc/029-3/parua.txt
+++ b/world/map/npc/029-3/parua.txt
@@ -1,5 +1,6 @@
// Parua's fight
-029-3.gat,50,25,0|script|Parua|183,{
+029-3.gat,50,25,0|script|Parua|183,
+{
if ($@FIGHT_CAVE_STATUS == 1) goto L_Enjoy;
if ($@FIGHT_CAVE_STATUS >= 2) goto L_Wait;
mes "[Parua]";
@@ -138,7 +139,7 @@ OnTimer5000:
L_Return_1:
set $@FIGHT_CAVE_PLAYER_COUNT, 0;
- areatimer "029-3.gat", 20, 20, 70, 60, 10, "Parua::onTick";
+ areatimer "029-3.gat", 20, 20, 70, 60, 10, "Parua::OnTick";
end;
L_CaveLogic:
@@ -148,7 +149,7 @@ L_CaveLogic:
if ($@FIGHT_CAVE_PLAYER_COUNT <= 0)
goto L_CleanUp;
set $@FIGHT_CAVE_ROUND_TIMER, $@FIGHT_CAVE_ROUND_TIMER + 5; // Advance 5 seconds
- if (mobcount("029-3.gat", "Parua::onPetDeath") <= 0)
+ if (mobcount("029-3.gat", "Parua::OnPetDeath") <= 0)
goto L_NextRound;
if ($@FIGHT_CAVE_ROUND_TIMER + $@FIGHT_CAVE_ROUND_PEN >= 120)
goto L_NextRound;
@@ -166,7 +167,7 @@ L_NextRound:
goto L_CleanUp;
set $@FIGHT_CAVE_POINTS, $@FIGHT_CAVE_LEVEL;
- areatimer "029-3.gat", 20, 20, 70, 60, 10, "Parua::onNewRound";
+ areatimer "029-3.gat", 20, 20, 70, 60, 10, "Parua::OnNewRound";
mapannounce "029-1.gat", "Parua: The next round (level " + $@FIGHT_CAVE_LEVEL + ") is starting with " + $@FIGHT_CAVE_PLAYER_COUNT + " player(s) left alive." , 0;
mapannounce "029-3.gat", "Parua: The next round (level " + $@FIGHT_CAVE_LEVEL + ") is starting with " + $@FIGHT_CAVE_PLAYER_COUNT + " player(s) left alive." , 0;
@@ -232,47 +233,47 @@ L_Fifteen_Minutes:
L_MOB1:
set $@MOB_1_SUMMON, $@MOB_1_SUMMON + 1;
set $@FIGHT_CAVE_POINTS, $@FIGHT_CAVE_POINTS - 243;
- areamonster "029-3.gat", 20, 20, 70, 60, "", 1022, 1, "Parua::onPetDeath";
+ areamonster "029-3.gat", 20, 20, 70, 60, "", 1022, 1, "Parua::OnPetDeath";
goto L_Summon;
L_MOB2:
set $@MOB_2_SUMMON, $@MOB_2_SUMMON + 1;
set $@FIGHT_CAVE_POINTS, $@FIGHT_CAVE_POINTS - 81;
- areamonster "029-3.gat", 20, 20, 70, 60, "", 1045, 1, "Parua::onPetDeath";
+ areamonster "029-3.gat", 20, 20, 70, 60, "", 1045, 1, "Parua::OnPetDeath";
goto L_Summon;
L_MOB3:
set $@MOB_3_SUMMON, $@MOB_3_SUMMON + 1;
set $@FIGHT_CAVE_POINTS, $@FIGHT_CAVE_POINTS - 27;
- areamonster "029-3.gat", 20, 20, 70, 60, "", 1024, 1, "Parua::onPetDeath";
+ areamonster "029-3.gat", 20, 20, 70, 60, "", 1024, 1, "Parua::OnPetDeath";
goto L_Summon;
L_MOB4:
set $@MOB_4_SUMMON, $@MOB_4_SUMMON + 1;
set $@FIGHT_CAVE_POINTS, $@FIGHT_CAVE_POINTS - 9;
- areamonster "029-3.gat", 20, 20, 70, 60, "", 1043, 1, "Parua::onPetDeath";
+ areamonster "029-3.gat", 20, 20, 70, 60, "", 1043, 1, "Parua::OnPetDeath";
goto L_Summon;
L_MOB5:
set $@MOB_5_SUMMON, $@MOB_5_SUMMON + 1;
set $@FIGHT_CAVE_POINTS, $@FIGHT_CAVE_POINTS - 3;
- areamonster "029-3.gat", 20, 20, 70, 60, "", 1010, 1, "Parua::onPetDeath";
+ areamonster "029-3.gat", 20, 20, 70, 60, "", 1010, 1, "Parua::OnPetDeath";
goto L_Summon;
L_MOB6:
set $@MOB_6_SUMMON, $@MOB_6_SUMMON + 1;
set $@FIGHT_CAVE_POINTS, $@FIGHT_CAVE_POINTS - 1;
- areamonster "029-3.gat", 20, 20, 70, 60, "", 1008, 1, "Parua::onPetDeath";
+ areamonster "029-3.gat", 20, 20, 70, 60, "", 1008, 1, "Parua::OnPetDeath";
goto L_Summon;
// Called on each player once every 5 seconds
-onTick:
+OnTick:
if (isdead()) end;
set $@FIGHT_CAVE_PLAYER_COUNT, $@FIGHT_CAVE_PLAYER_COUNT + 1;
end;
// called on each player when a new round begins
-onNewRound:
+OnNewRound:
if (isdead())
end;
if ($@FIGHT_CAVE_LEVEL < 600)
@@ -289,22 +290,23 @@ onNewRound:
message strcharinfo(0), "The evil energy of this place hurts you. You should keep moving!";
end;
-onPetDeath:
+OnPetDeath:
end;
-onInit:
+OnInit:
+ if (debug >= 2) end;
initnpctimer;
stopnpctimer;
L_CleanUp:
npctalk "Game Over";
mapannounce "029-1.gat", "Parua: The dungeon is now ready for its next victims.", 0;
- areatimer "029-3.gat", 20, 20, 70, 60, 10, "Parua::onReward";
+ areatimer "029-3.gat", 20, 20, 70, 60, 10, "Parua::OnReward";
set $@FIGHT_CAVE_STATUS, 0;
set $@FIGHT_CAVE_PLAYER_COUNT, 0;
set $@FIGHT_CAVE_LEVEL, 1;
set $@FIGHT_CAVE_ROUND_TIMER, 0;
- killmonster "029-3.gat", "Parua::onPetDeath";
+ killmonster "029-3.gat", "Parua::OnPetDeath";
stopnpctimer;
setnpctimer 0;
end;
@@ -334,7 +336,7 @@ L_IdleCheckPassed:
//set @candor_idle_counter, 0;
end;
-onReward:
+OnReward:
if (isdead())
end;
set BOSS_POINTS, BOSS_POINTS + 100;