summaryrefslogtreecommitdiff
path: root/npc/functions/vault.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/vault.txt')
-rw-r--r--npc/functions/vault.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/npc/functions/vault.txt b/npc/functions/vault.txt
index 55ae5ae9f..ec69c435f 100644
--- a/npc/functions/vault.txt
+++ b/npc/functions/vault.txt
@@ -4,12 +4,19 @@
// Description:
// Vault Utilities
+function script getvaultid {
+ if ($BETASERVER)
+ return ##VAULT;
+ else
+ return 0;
+}
+
function script getvaultexp {
.@exp=getarg(0);
if (.@exp > 100)
Exception("ILLEGAL VAULT EXPERIENCE, FIXME URGENTLY. STOPPING SCRIPT BY FORCE WHILE DOING NOTHING.",
RB_DEBUGMES | RB_IRCBROADCAST | RB_GLOBALANNOUNCE | RB_ISFATAL);
- if (##VAULT) {
+ if (getvaultid()) {
##VAULT_EXP+=.@exp;
debugmes("Granting %d Soul Exp to %d under the Moubootaur's authority.",
.@exp, ##VAULT);