diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-05-10 11:42:40 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-05-10 11:42:40 -0300 |
commit | 3347809ecedd324ac862c6bde3caa813d0fc8914 (patch) | |
tree | 25bdf449ec2bfe241c88ab4fb504f9fe5f412944 /npc/functions | |
parent | c0c859210e5b3583a93db9d9f3408e956c3cf58f (diff) | |
download | serverdata-3347809ecedd324ac862c6bde3caa813d0fc8914.tar.gz serverdata-3347809ecedd324ac862c6bde3caa813d0fc8914.tar.bz2 serverdata-3347809ecedd324ac862c6bde3caa813d0fc8914.tar.xz serverdata-3347809ecedd324ac862c6bde3caa813d0fc8914.zip |
Implement API_FLUSHVAULT
Diffstat (limited to 'npc/functions')
-rw-r--r-- | npc/functions/hub.txt | 13 |
1 files changed, 12 insertions, 1 deletions
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; |