From 98afb628e0fb51dabae4e9c83ee8b5952f2933f2 Mon Sep 17 00:00:00 2001 From: coffee Date: Sat, 27 Aug 2011 21:14:07 -0300 Subject: Checks for more than 1 player at the area of the fight and warps everyone, except the fighter, outside. --- world/map/npc/033-1/kimarr.txt | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'world') diff --git a/world/map/npc/033-1/kimarr.txt b/world/map/npc/033-1/kimarr.txt index 0e4b77af..490ca063 100644 --- a/world/map/npc/033-1/kimarr.txt +++ b/world/map/npc/033-1/kimarr.txt @@ -185,7 +185,10 @@ OnTimer1000: goto L_GotOut; if (PC_DIE_COUNTER > $@Fluffy_PC_Deaths) 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) goto L_TimeOver; @@ -201,6 +204,16 @@ L_GotOut: callsub S_Clean; end; +OnToomany: + if (getcharid(3) != $@Fluffy_FighterID) + goto L_Warp; + end; + +L_Warp: + warp "033-1.gat", 77, 34; + npctalk "Hey " + strcharinfo(0) + "! What are you doing there? This hunt is for " + $@Fluffy_Fighter$ + " alone!"; + end; + L_Died: warp "033-1.gat", 77, 34; message strcharinfo(0), "You are dead."; -- cgit v1.2.3-60-g2f50