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.txt38
1 files changed, 38 insertions, 0 deletions
diff --git a/npc/functions/vault.txt b/npc/functions/vault.txt
index 1cfe7c99..17f0457b 100644
--- a/npc/functions/vault.txt
+++ b/npc/functions/vault.txt
@@ -73,6 +73,44 @@ function script setvaultvar {
return set(getvaultvar(getarg(0), getarg(2, "")), getarg(1));
}
+// This function comes from Moubootaur Legends
+// getvaultexp(Exp)
+function script getvaultexp {
+ .@exp=getarg(0);
+ // Illegal, do nothing
+ if (.@exp > 100)
+ return;
+ // Illegal, do nothing
+ if (!SERVER_USES_VAULT)
+ return;
+ // Assign the Experience
+ if (getvaultid()) {
+ ##VAULT_EXP+=.@exp;
+ consolemes(CONSOLEMES_INFO,
+ "Granting %d Soul Exp to %d under the rEvolution's authority.",
+ .@exp, getvaultid());
+ }
+ return;
+}
+
+// This function comes from Moubootaur Legends
+// MirrorLakeSendTo(World, Lake)
+function script MirrorLakeSendTo {
+ .@w=getarg(0);
+ .@t=getarg(1);
+ // Illegal, do nothing
+ if (!SERVER_USES_VAULT)
+ return;
+ ##VAULT_GOTO=.@w;
+ ##VAULT_MLTO=.@t;
+ closeclientdialog;
+ dispbottom l("Darkness fills your vision...");
+ sleep2(1000);
+ kick(getcharid(3), 7); // 7 is not a valid kick reason
+ //atcommand("@kick "+strcharinfo(0));
+ end;
+}
+
/**
* handles Vault hooks on player login
*/