summaryrefslogtreecommitdiff
path: root/world/map
diff options
context:
space:
mode:
authorcoffee <coffee@coffee-EP45-UD3L.(none)>2011-08-27 21:14:07 -0300
committercoffee <coffee@coffee-EP45-UD3L.(none)>2011-08-27 21:14:07 -0300
commit98afb628e0fb51dabae4e9c83ee8b5952f2933f2 (patch)
tree73c812b12adaa40d40b775fde818e37be45119f1 /world/map
parent317c964db85d96adb47b1420aa0397956905751d (diff)
downloadserverdata-98afb628e0fb51dabae4e9c83ee8b5952f2933f2.tar.gz
serverdata-98afb628e0fb51dabae4e9c83ee8b5952f2933f2.tar.bz2
serverdata-98afb628e0fb51dabae4e9c83ee8b5952f2933f2.tar.xz
serverdata-98afb628e0fb51dabae4e9c83ee8b5952f2933f2.zip
Checks for more than 1 player at the area of the fight and warps everyone, except the fighter, outside.
Diffstat (limited to 'world/map')
-rw-r--r--world/map/npc/033-1/kimarr.txt15
1 files changed, 14 insertions, 1 deletions
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.";