summaryrefslogtreecommitdiff
path: root/npc/023-2
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-11-01 14:50:01 -0200
committerJesusaves <cpntb1@ymail.com>2018-11-01 14:50:01 -0200
commit14a13de605ecc04164a10e5f38222c78f2c97985 (patch)
tree0fe8bad1e1afef97b1c167ff97b3606ed51ec19c /npc/023-2
parent93a5e549f6814fc8244bfc8f48c6e3b1de410542 (diff)
downloadserverdata-14a13de605ecc04164a10e5f38222c78f2c97985.tar.gz
serverdata-14a13de605ecc04164a10e5f38222c78f2c97985.tar.bz2
serverdata-14a13de605ecc04164a10e5f38222c78f2c97985.tar.xz
serverdata-14a13de605ecc04164a10e5f38222c78f2c97985.zip
Prepare the fight
Diffstat (limited to 'npc/023-2')
-rw-r--r--npc/023-2/mk.txt21
1 files changed, 20 insertions, 1 deletions
diff --git a/npc/023-2/mk.txt b/npc/023-2/mk.txt
index b88e67633..d383f5310 100644
--- a/npc/023-2/mk.txt
+++ b/npc/023-2/mk.txt
@@ -41,6 +41,26 @@ OnHour00:
}
end;
+
+// Event Handler
+
+OnCycle:
+ .@pl=getareausers("023-2", 21, 109, 31, 114);
+ .@pla=getmapusers("023-2");
+ if (.@pl <= 0 && .@pla > 0)
+ mapannounce "023-2", "##1WARNING: Players outside the Monster King room counts toward DEFEAT count!", 0;
+ .victory_count+=.@pl;
+ if (.@pl <= 0)
+ .defeat_count+=1;
+ end;
+
+OnBegin:
+ .defeat_count=0;
+ .victory_count=0;
+ announce "The fight against the Monster King ends in 15 minutes. If he is forced to flee, that'll result as victory.", bc_all|bc_npc;
+ announce "Each cycle there are players fighting against him will result in victory points. The opposite will result in defeat points.", bc_all|bc_npc;
+ announce "More players fighting will result in more victory points. This may affect drastically the result.", bc_all|bc_npc;
+ end;
}
@@ -132,4 +152,3 @@ OnTouch:
}
-// Event