diff options
Diffstat (limited to 'npc/001-2-33')
-rw-r--r-- | npc/001-2-33/triggers.txt | 21 |
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; } |