summaryrefslogtreecommitdiff
path: root/npc/functions/masks.txt
diff options
context:
space:
mode:
authorSaulc <lucashelaine14@gmail.com>2018-01-13 20:50:42 +0100
committerSaulc <lucashelaine14@gmail.com>2018-01-13 20:50:42 +0100
commit20df2abc1aca00d6aa5dc78347133890f36b32f3 (patch)
tree4ad4a8bb8b0605473a702e314799a4626347721a /npc/functions/masks.txt
downloadserverdata-20df2abc1aca00d6aa5dc78347133890f36b32f3.tar.gz
serverdata-20df2abc1aca00d6aa5dc78347133890f36b32f3.tar.bz2
serverdata-20df2abc1aca00d6aa5dc78347133890f36b32f3.tar.xz
serverdata-20df2abc1aca00d6aa5dc78347133890f36b32f3.zip
Initial commit
Diffstat (limited to 'npc/functions/masks.txt')
-rw-r--r--npc/functions/masks.txt68
1 files changed, 68 insertions, 0 deletions
diff --git a/npc/functions/masks.txt b/npc/functions/masks.txt
new file mode 100644
index 000000000..98e8bdf87
--- /dev/null
+++ b/npc/functions/masks.txt
@@ -0,0 +1,68 @@
+// Evol functions.
+// Author:
+// Reid
+// Description:
+// Triggers functions to add and remove masks.
+// Variables:
+// none
+
+// Artis Aemil's Legion
+
+function script artisALRemTopMask {
+ if ((getareausers("001-2-33", 23, 27, 45, 31) >= 1) ||
+ (getareausers("001-2-33", 23, 32, 26, 38) >= 1) ||
+ (getareausers("001-2-33", 42, 32, 45, 38) >= 1))
+ {
+ removemapmask "001-2-33", 4;
+ }
+ return 0;
+}
+
+function script artisALAddTopMask {
+ if ((getareausers("001-2-33", 23, 27, 45, 31) == 0) &&
+ (getareausers("001-2-33", 23, 32, 26, 38) == 0) &&
+ (getareausers("001-2-33", 42, 32, 45, 38) == 0))
+ {
+ addmapmask "001-2-33", 4;
+ }
+ return 0;
+}
+
+function script artisALRemBotMask {
+ if (getareausers("001-2-33", 23, 32, 45, 46) >= 1)
+ {
+ removemapmask "001-2-33", 8;
+ }
+ return 0;
+}
+
+function script artisALAddBotMask {
+ if (getareausers("001-2-33", 23, 32, 45, 46) == 0)
+ {
+ addmapmask "001-2-33", 8;
+ }
+ return 0;
+}
+
+function script artisALUpdateMask {
+ if (getareausers("001-2-33", 23, 32, 45, 46) >= 1)
+ {
+ removemapmask "001-2-33", 8;
+ }
+ else
+ {
+ addmapmask "001-2-33", 8;
+ }
+ if ((getareausers("001-2-33", 23, 27, 45, 31) >= 1) ||
+ (getareausers("001-2-33", 23, 32, 26, 38) >= 1) ||
+ (getareausers("001-2-33", 42, 32, 45, 38) >= 1))
+ {
+ removemapmask "001-2-33", 4;
+ }
+ else
+ {
+ addmapmask "001-2-33", 4;
+ }
+
+ return 0;
+}