summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-04-09 22:39:09 +0000
committerJesusaves <cpntb1@ymail.com>2019-04-09 22:39:09 +0000
commitb5d4e37e67ac1d2f1d4e8f5132906461d0f8f4e7 (patch)
tree13d42ecd9dfa9ebdfd009f6e8b43cfe95cf42c64 /npc/functions
parent1132423156249187136ea464b721e7ac2b6041f2 (diff)
downloadserverdata-b5d4e37e67ac1d2f1d4e8f5132906461d0f8f4e7.tar.gz
serverdata-b5d4e37e67ac1d2f1d4e8f5132906461d0f8f4e7.tar.bz2
serverdata-b5d4e37e67ac1d2f1d4e8f5132906461d0f8f4e7.tar.xz
serverdata-b5d4e37e67ac1d2f1d4e8f5132906461d0f8f4e7.zip
Change Legion Main Hall Map Mask System
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/masks.txt68
1 files changed, 21 insertions, 47 deletions
diff --git a/npc/functions/masks.txt b/npc/functions/masks.txt
index 9fb54919..03c81630 100644
--- a/npc/functions/masks.txt
+++ b/npc/functions/masks.txt
@@ -4,65 +4,39 @@
// Description:
// Triggers functions to add and remove masks.
// Variables:
-// none
+// 4 - Top Mask
+// 8 - Bottom Mask
+// Default mask: 13 (Top + Bottom + Display mask)
// 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;
- }
+function script artisALResetMask {
+ .@m=getmapmask("001-2-33");
+ sendmapmask(.@m);
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;
- }
+function script artisALTopMask {
+ addtimer 30, "artisALTopMaskDO::OnDoIt";
return 0;
}
-function script artisALRemBotMask {
- if (getareausers("001-2-33", 23, 32, 45, 46) >= 1)
- {
- removemapmask "001-2-33", 8;
- }
+function script artisALBottomMask {
+ addtimer 30, "artisALBottomMaskDO::OnDoIt";
return 0;
}
-function script artisALAddBotMask {
- if (getareausers("001-2-33", 23, 32, 45, 46) == 0)
- {
- addmapmask "001-2-33", 8;
- }
- return 0;
+// Show bottom mask is the same as hiding top mask
+- script artisALBottomMaskDO NPC_HIDDEN,{
+OnDoIt:
+ .@m=getmapmask("001-2-33");
+ sendmapmask(.@m^4);
}
-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;
+// Show top mask is the same as hiding bottom mask
+- script artisALTopMaskDO NPC_HIDDEN,{
+OnDoIt:
+ .@m=getmapmask("001-2-33");
+ sendmapmask(.@m^8);
}
+