diff options
author | Reid <reidyaro@gmail.com> | 2015-10-20 17:57:39 +0200 |
---|---|---|
committer | Reid <reidyaro@gmail.com> | 2015-10-20 17:59:38 +0200 |
commit | 96af1cd6a6d8320f5c42c2a05d11930de343fa19 (patch) | |
tree | 50b48ad283cdec76b38160d4a4ca05bfed5b7f71 /npc | |
parent | f75f5112767afc61b59addee62ce6b2474c88553 (diff) | |
download | serverdata-96af1cd6a6d8320f5c42c2a05d11930de343fa19.tar.gz serverdata-96af1cd6a6d8320f5c42c2a05d11930de343fa19.tar.bz2 serverdata-96af1cd6a6d8320f5c42c2a05d11930de343fa19.tar.xz serverdata-96af1cd6a6d8320f5c42c2a05d11930de343fa19.zip |
Move masks functions to their own file.
Diffstat (limited to 'npc')
-rw-r--r-- | npc/functions/masks.txt | 68 | ||||
-rw-r--r-- | npc/scripts.conf | 3 |
2 files changed, 70 insertions, 1 deletions
diff --git a/npc/functions/masks.txt b/npc/functions/masks.txt new file mode 100644 index 000000000..fb43d61b0 --- /dev/null +++ b/npc/functions/masks.txt @@ -0,0 +1,68 @@ +// Evol functions. +// Authors: +// Reid +// Description: +// Triggers functions to add and remove masks. +// Variables: +// none + +// Artis Aemil's Legion + +function script artisALRemTopMask { + 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; + } + return 0; +} + +function script artisALAddTopMask { + 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; + } + return 0; +} + +function script artisALRemBotMask { + if (getareausers("001-2-33.gat", 23, 32, 45, 46) >= 1) + { + removemapmask "001-2-33", 8; + } + return 0; +} + +function script artisALAddBotMask { + if (getareausers("001-2-33.gat", 23, 32, 45, 46) == 0) + { + addmapmask "001-2-33", 8; + } + return 0; +} + +function script artisALUpdateMask { + if (getareausers("001-2-33.gat", 23, 32, 45, 46) >= 1) + { + removemapmask "001-2-33", 8; + } + else + { + addmapmask "001-2-33", 8; + } + 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; + } + else + { + addmapmask "001-2-33", 4; + } + + return 0; +} diff --git a/npc/scripts.conf b/npc/scripts.conf index d4a606f88..5fe4a8438 100644 --- a/npc/scripts.conf +++ b/npc/scripts.conf @@ -10,12 +10,13 @@ npc: npc/functions/asleep.txt npc: npc/functions/barber.txt npc: npc/functions/clientversion.txt npc: npc/functions/doors.txt +npc: npc/functions/goodbye.txt npc: npc/functions/hammocks.txt npc: npc/functions/harbours.txt npc: npc/functions/input.txt npc: npc/functions/inventoryplace.txt npc: npc/functions/npcmove.txt -npc: npc/functions/goodbye.txt +npc: npc/functions/masks.txt npc: npc/functions/sailordialogue.txt npc: npc/functions/savepoint.txt npc: npc/functions/shops.txt |