summaryrefslogtreecommitdiff
path: root/world/map/npc/functions/vault.txt
diff options
context:
space:
mode:
Diffstat (limited to 'world/map/npc/functions/vault.txt')
-rw-r--r--world/map/npc/functions/vault.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/world/map/npc/functions/vault.txt b/world/map/npc/functions/vault.txt
index 1c08dba1..ee30863c 100644
--- a/world/map/npc/functions/vault.txt
+++ b/world/map/npc/functions/vault.txt
@@ -6,6 +6,7 @@
function|script|VaultLogin
{
if (##VAULT < 1) goto L_Return;
+ // TODO: Or #VAULT ? Which of the two is set?
callsub S_Exp;
callsub S_Gold;
@@ -170,3 +171,17 @@ L_Flush2:
return;
}
+function|script|VaultLogout
+{
+ if (##VAULT < 1) goto L_Return;
+ // TODO: Or #VAULT ? Which of the two is set?
+ set $@API_PROTOCOL, API_VAULT;
+ set $@API_DATA$, "'UID': "+##VAULT+", 'GID': "+getcharid(3);
+ callfunc "FlushAPI";
+
+ return;
+
+L_Return:
+ return;
+}
+