diff options
author | celest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-03-30 17:47:54 +0000 |
---|---|---|
committer | celest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-03-30 17:47:54 +0000 |
commit | 327439273a8addb07b4e05908ba5e931b2f679ea (patch) | |
tree | 6931405dc488b786fbbe288b97808f0140d13e6d /src/char_sql/inter.c | |
parent | 56f8c49f065831c21156dd88bd5397b6ba355813 (diff) | |
download | hercules-327439273a8addb07b4e05908ba5e931b2f679ea.tar.gz hercules-327439273a8addb07b4e05908ba5e931b2f679ea.tar.bz2 hercules-327439273a8addb07b4e05908ba5e931b2f679ea.tar.xz hercules-327439273a8addb07b4e05908ba5e931b2f679ea.zip |
* Fixed @reloadgmdb in SQL
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1344 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char_sql/inter.c')
-rw-r--r-- | src/char_sql/inter.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/char_sql/inter.c b/src/char_sql/inter.c index 1a2a2d751..83fcc967f 100644 --- a/src/char_sql/inter.c +++ b/src/char_sql/inter.c @@ -395,6 +395,27 @@ int mapif_account_reg_reply(int fd,int account_id) return 0; } +int mapif_send_gmaccounts() +{ + int i, len = 4; + unsigned char buf[32000]; + + // forward the gm accounts to the map server + len = 4; + WBUFW(buf,0) = 0x2b15; + + for(i = 0; i < GM_num; i++) { + WBUFL(buf, len) = gm_account[i].account_id; + WBUFB(buf, len+4) = (unsigned char)gm_account[i].level; + len += 5; + } + WBUFW(buf, 2) = len; + mapif_sendall(buf, len); + + return 0; +} + + //-------------------------------------------------------- // Existence check of WISP data |