summaryrefslogtreecommitdiff
path: root/src/login_sql/login.h
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-03-30 19:01:09 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-03-30 19:01:09 +0000
commitbff2ef1b4645a065ee105ee5a53af3a5f1f0ab48 (patch)
tree65e77521c51df5e29e5691d281764dddc6d52f9b /src/login_sql/login.h
parent77b25285e66e43ff2bc112d7a03dc02428adbc04 (diff)
downloadhercules-bff2ef1b4645a065ee105ee5a53af3a5f1f0ab48.tar.gz
hercules-bff2ef1b4645a065ee105ee5a53af3a5f1f0ab48.tar.bz2
hercules-bff2ef1b4645a065ee105ee5a53af3a5f1f0ab48.tar.xz
hercules-bff2ef1b4645a065ee105ee5a53af3a5f1f0ab48.zip
Yet more login server stuff:
* jA data structure compatibility renaming / adjustments * mmo_account -> login_session_data, auth_data -> mmo_account * made gender variable usage consistent for the entire login server * rewrote TXT's new account creation procedure to match SQL's git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12450 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/login_sql/login.h')
-rw-r--r--src/login_sql/login.h44
1 files changed, 35 insertions, 9 deletions
diff --git a/src/login_sql/login.h b/src/login_sql/login.h
index babe47b82..4cee1c747 100644
--- a/src/login_sql/login.h
+++ b/src/login_sql/login.h
@@ -13,18 +13,24 @@
// supported encryption types: 1- passwordencrypt, 2- passwordencrypt2, 3- both
#define PASSWORDENC 3
-struct mmo_account {
- int version;
- char userid[NAME_LENGTH];
- char passwd[NAME_LENGTH];
- int passwdenc;
-
+struct login_session_data {
+
int account_id;
long login_id1;
long login_id2;
+ char sex;
+
+ char userid[NAME_LENGTH];
+ char passwd[NAME_LENGTH];
+ int passwdenc;
+ char md5key[20];
+ uint16 md5keylen;
+
char lastlogin[24];
- int sex;
uint8 level;
+ int version;
+
+ int fd;
};
struct mmo_char_server {
@@ -37,7 +43,7 @@ struct mmo_char_server {
int new_;
};
-extern struct Login_Config {
+struct Login_Config {
uint32 login_ip; // the address to bind to
uint16 login_port; // the port to bind to
@@ -63,6 +69,26 @@ extern struct Login_Config {
bool use_dnsbl; // dns blacklist blocking ?
char dnsbl_servs[1024]; // comma-separated list of dnsbl servers
-} login_config;
+};
+
+struct mmo_account {
+
+ int account_id;
+ char sex;
+ char userid[24];
+ char pass[32+1]; // 23+1 for normal, 32+1 for md5-ed passwords
+ char lastlogin[24];
+ int logincount;
+ uint32 state; // packet 0x006a value + 1 (0: compte OK)
+ char email[40]; // e-mail (by default: a@a.com)
+ char error_message[20]; // Message of error code #6 = Your are Prohibited to log in until %s (packet 0x006a)
+ time_t ban_until_time; // # of seconds 1/1/1970 (timestamp): ban time limit of the account (0 = no ban)
+ time_t connect_until_time; // # of seconds 1/1/1970 (timestamp): Validity limit of the account (0 = unlimited)
+ char last_ip[16]; // save of last IP of connection
+ char memo[255]; // a memo field
+ int account_reg2_num;
+ struct global_reg account_reg2[ACCOUNT_REG2_NUM]; // account script variables (stored on login server)
+};
+
#endif /* _LOGIN_SQL_H_ */