summaryrefslogtreecommitdiff
path: root/npc/functions/hub.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/hub.txt')
-rw-r--r--npc/functions/hub.txt19
1 files changed, 3 insertions, 16 deletions
diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt
index ae347bd..a10b9a9 100644
--- a/npc/functions/hub.txt
+++ b/npc/functions/hub.txt
@@ -143,22 +143,9 @@ function script HUB_Logout {
// Register logout time
if (!.@dead) {
CHAREG_CLEANUP=gettimetick(2);
- // Send updates to Vault API
- if (getvaultid()) {
- .@api$=json_encode("UID", ##VAULT,
- "GID", getcharid(3),
- "VAR1N", "CRQUEST",
- "VAR1V", ##01_CRQUEST,
- //"VAR2N", "CRWORLD",
- //"VAR2V", ##01_CRWORLD,
- "VEXP", ##VAULT_EXP,
- "GOTO", ##VAULT_GOTO,
- "MLTO", ##VAULT_MLTO);
- ##VAULT_EXP=0;
- ##VAULT_GOTO=0;
- ##VAULT_MLTO=0;
- api_send(API_FLUSHVAULT, .@api$);
- }
+ export_vault();
+ ##VAULT_GOTO=0;
+ ##VAULT_MLTO=0;
}
return;