summaryrefslogtreecommitdiff
path: root/world/map/npc/033-1/kimarr.txt
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2011-08-27 17:36:35 -0700
committerBen Longbons <b.r.longbons@gmail.com>2011-08-27 17:36:35 -0700
commit21971fdba9e762401783bdbd133276d559a1b294 (patch)
tree7e9c9cf449013f014151b9abfaae9b98b9fc02de /world/map/npc/033-1/kimarr.txt
parent98afb628e0fb51dabae4e9c83ee8b5952f2933f2 (diff)
downloadserverdata-21971fdba9e762401783bdbd133276d559a1b294.tar.gz
serverdata-21971fdba9e762401783bdbd133276d559a1b294.tar.bz2
serverdata-21971fdba9e762401783bdbd133276d559a1b294.tar.xz
serverdata-21971fdba9e762401783bdbd133276d559a1b294.zip
Implement countdown timer for fluffy hunters
Diffstat (limited to 'world/map/npc/033-1/kimarr.txt')
-rw-r--r--world/map/npc/033-1/kimarr.txt35
1 files changed, 23 insertions, 12 deletions
diff --git a/world/map/npc/033-1/kimarr.txt b/world/map/npc/033-1/kimarr.txt
index 490ca063..5c036326 100644
--- a/world/map/npc/033-1/kimarr.txt
+++ b/world/map/npc/033-1/kimarr.txt
@@ -158,7 +158,7 @@ L_Game:
set $@Fluffy_PC_Deaths, PC_DIE_COUNTER;
set $@Fluffy_Fighter$, strcharinfo(0);
set $@Fluffy_FighterID, getcharid(3);
- set $@Fluffy_Time, 0;
+ set $@Fluffy_Time, 180;
//TODO: set minimum number of killed fluffies (maybe based on level?)
set $@Fluffy_Min, 2;
@@ -187,12 +187,26 @@ OnTimer1000:
goto L_Died;
// Checking if there is more than 1 player in the fight area
if (getareausers("033-1.gat", 79, 28, 88, 42) > 1)
- areatimer "033-1.gat", 79, 28, 88, 42, 10, "Kimarr::OnToomany";
-
- set $@Fluffy_Time, $@Fluffy_Time + 1;
- if ($@Fluffy_Time > 180)
+ areatimer "033-1.gat", 79, 28, 88, 42, 10, "Kimarr::OnTooMany";
+
+ if ($@Fluffy_Time == 180)
+ npctalk strcharinfo(0) + ", you have 3 minutes.";
+ if ($@Fluffy_Time == 120)
+ npctalk "You have 2 minutes left.";
+ if ($@Fluffy_Time == 60)
+ npctalk "You have 1 minute left.";
+ if ($@Fluffy_Time == 30)
+ npctalk "You have 30 seconds left.";
+ if ($@Fluffy_Time == 15)
+ npctalk "You have 15 seconds left.";
+ if ($@Fluffy_Time == 10)
+ npctalk "You have 10 seconds left.";
+ if ($@Fluffy_Time == 5)
+ npctalk "You have 5 seconds left.";
+ set $@Fluffy_Time, $@Fluffy_Time - 1;
+ if ($@Fluffy_Time < 0)
goto L_TimeOver;
- goto L_CheckDrops;
+ goto L_CheckDrops;
L_ContinueTimer:
setnpctimer 0;
@@ -204,12 +218,9 @@ L_GotOut:
callsub S_Clean;
end;
-OnToomany:
- if (getcharid(3) != $@Fluffy_FighterID)
- goto L_Warp;
- end;
-
-L_Warp:
+OnTooMany:
+ if (getcharid(3) == $@Fluffy_FighterID)
+ end;
warp "033-1.gat", 77, 34;
npctalk "Hey " + strcharinfo(0) + "! What are you doing there? This hunt is for " + $@Fluffy_Fighter$ + " alone!";
end;