diff options
author | shennetsind <ind@henn.et> | 2013-03-09 00:04:28 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-03-09 00:04:28 -0300 |
commit | d2d734ce0983fbed72e69f555f57f29de04f30b3 (patch) | |
tree | a3332e1eea882a9df5a2253d9a63153a9197851a /src/login/account.h | |
parent | bb0f807d0683fcb2c0e9fdd6a5d1e54686dfc816 (diff) | |
download | hercules-d2d734ce0983fbed72e69f555f57f29de04f30b3.tar.gz hercules-d2d734ce0983fbed72e69f555f57f29de04f30b3.tar.bz2 hercules-d2d734ce0983fbed72e69f555f57f29de04f30b3.tar.xz hercules-d2d734ce0983fbed72e69f555f57f29de04f30b3.zip |
Hercules Renewal'd Pin Code
Feature is not, I repeat, NOT complete. the decryption is not fully functional which leads to dial values different from the ones the player used.
Credits:
lemongrass3110 for the base
yommy for the packets
LightFighter for the decrypt function (altho its not stable :P)
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/login/account.h')
-rw-r--r-- | src/login/account.h | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/src/login/account.h b/src/login/account.h index 56708d5e9..be5bad988 100644 --- a/src/login/account.h +++ b/src/login/account.h @@ -38,18 +38,20 @@ struct mmo_account { int account_id; char userid[NAME_LENGTH]; - char pass[32+1]; // 23+1 for plaintext, 32+1 for md5-ed passwords - char sex; // gender (M/F/S) - char email[40]; // e-mail (by default: a@a.com) - int group_id; // player group id - uint8 char_slots; // this accounts maximum character slots (maximum is limited to MAX_CHARS define in char server) - unsigned int state; // packet 0x006a value + 1 (0: compte OK) - time_t unban_time; // (timestamp): ban time limit of the account (0 = no ban) - time_t expiration_time; // (timestamp): validity limit of the account (0 = unlimited) - unsigned int logincount;// number of successful auth attempts - char lastlogin[24]; // date+time of last successful login - char last_ip[16]; // save of last IP of connection - char birthdate[10+1]; // assigned birth date (format: YYYY-MM-DD, default: 0000-00-00) + char pass[32+1]; // 23+1 for plaintext, 32+1 for md5-ed passwords + char sex; // gender (M/F/S) + char email[40]; // e-mail (by default: a@a.com) + int group_id; // player group id + uint8 char_slots; // this accounts maximum character slots (maximum is limited to MAX_CHARS define in char server) + unsigned int state; // packet 0x006a value + 1 (0: compte OK) + time_t unban_time; // (timestamp): ban time limit of the account (0 = no ban) + time_t expiration_time; // (timestamp): validity limit of the account (0 = unlimited) + unsigned int logincount; // number of successful auth attempts + unsigned int pincode_change;// (timestamp): last time of pincode change + char pincode[4+1]; // pincode value + char lastlogin[24]; // date+time of last successful login + char last_ip[16]; // save of last IP of connection + char birthdate[10+1]; // assigned birth date (format: YYYY-MM-DD, default: 0000-00-00) int account_reg2_num; struct global_reg account_reg2[ACCOUNT_REG2_NUM]; // account script variables (stored on login server) }; |