From 3347809ecedd324ac862c6bde3caa813d0fc8914 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 10 May 2021 11:42:40 -0300 Subject: Implement API_FLUSHVAULT --- npc/functions/hub.txt | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'npc') diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt index 3c639e31d..229005953 100644 --- a/npc/functions/hub.txt +++ b/npc/functions/hub.txt @@ -225,8 +225,19 @@ function script HUB_Logout { } // Register logout time - if (!.@dead) + if (!.@dead) { CHAREG_CLEANUP=gettimetick(2); + // Send updates to Vault API + if (##VAULT) { + .@api$=json_encode("UID", ##VAULT, + "GID", getcharid(3), + "VAR1N", "HELLO", + "VAR1V", ##01_HELLO, + "VAR2N", "WORLD", + "VAR2V", ##01_WORLD); + api_send(API_FLUSHVAULT, .@api$); + } + } callfunc "02524_Avenge_BlackBox", .@dead; return; -- cgit v1.2.3-60-g2f50