summaryrefslogtreecommitdiff
path: root/npc/001-2-33
diff options
context:
space:
mode:
authorReid <reidyaro@gmail.com>2015-10-20 16:15:54 +0200
committerReid <reidyaro@gmail.com>2015-10-20 16:15:54 +0200
commite6e18735a9cbe3ab9286bd4894a2d6d0214c81de (patch)
treecc8a474b72b7f0d252d36279c14ca1bc817cf7c1 /npc/001-2-33
parent74169f11e2801886041c078541c095d4a498c603 (diff)
downloadserverdata-e6e18735a9cbe3ab9286bd4894a2d6d0214c81de.tar.gz
serverdata-e6e18735a9cbe3ab9286bd4894a2d6d0214c81de.tar.bz2
serverdata-e6e18735a9cbe3ab9286bd4894a2d6d0214c81de.tar.xz
serverdata-e6e18735a9cbe3ab9286bd4894a2d6d0214c81de.zip
Fix areas on #33's triggers.
Diffstat (limited to 'npc/001-2-33')
-rw-r--r--npc/001-2-33/triggers.txt21
1 files changed, 11 insertions, 10 deletions
diff --git a/npc/001-2-33/triggers.txt b/npc/001-2-33/triggers.txt
index c8131642..4445b751 100644
--- a/npc/001-2-33/triggers.txt
+++ b/npc/001-2-33/triggers.txt
@@ -6,8 +6,11 @@
// Functions
+
function script artisALRemTopMask {
- if (getareausers("001-2-33.gat", 23, 32, 45, 46) >= 1)
+ if ((getareausers("001-2-33.gat", 23, 27, 45, 31) >= 1) ||
+ (getareausers("001-2-33.gat", 23, 32, 26, 38) >= 1) ||
+ (getareausers("001-2-33.gat", 42, 32, 45, 38) >= 1))
{
removemapmask "001-2-33", 4;
}
@@ -15,7 +18,9 @@ function script artisALRemTopMask {
}
function script artisALAddTopMask {
- if (getareausers("001-2-33.gat", 23, 32, 45, 46) == 0)
+ if ((getareausers("001-2-33.gat", 23, 27, 45, 31) == 0) &&
+ (getareausers("001-2-33.gat", 23, 32, 26, 38) == 0) &&
+ (getareausers("001-2-33.gat", 42, 32, 45, 38) == 0))
{
addmapmask "001-2-33", 4;
}
@@ -23,9 +28,7 @@ function script artisALAddTopMask {
}
function script artisALRemBotMask {
- if ((getareausers("001-2-33.gat", 23, 27, 45, 31) >= 0) ||
- (getareausers("001-2-33.gat", 23, 32, 26, 38) >= 0) ||
- (getareausers("001-2-33.gat", 43, 32, 45, 38) >= 0))
+ if (getareausers("001-2-33.gat", 23, 32, 45, 46) >= 1)
{
removemapmask "001-2-33", 8;
}
@@ -33,9 +36,7 @@ function script artisALRemBotMask {
}
function script artisALAddBotMask {
- if ((getareausers("001-2-33.gat", 23, 27, 45, 31) == 0) &&
- (getareausers("001-2-33.gat", 23, 32, 26, 38) == 0) &&
- (getareausers("001-2-33.gat", 43, 32, 45, 38) == 0))
+ if (getareausers("001-2-33.gat", 23, 32, 45, 46) == 0)
{
addmapmask "001-2-33", 8;
}
@@ -71,7 +72,7 @@ OnTouch:
001-2-33,25,32,0 script #001-2-33LeftRemBot NPC_HIDDEN,1,0,{
OnTouch:
- artisALAddTopMask;
+ artisALRemBotMask;
close;
}
@@ -83,7 +84,7 @@ OnTouch:
001-2-33,43,32,0 script #001-2-33RightRemBot NPC_HIDDEN,1,0,{
OnTouch:
- artisALAddTopMask;
+ artisALRemBotMask;
close;
}