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/char/char.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/char/char.h')
-rw-r--r-- | src/char/char.h | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/src/char/char.h b/src/char/char.h index e16350cb3..d75dc21f9 100644 --- a/src/char/char.h +++ b/src/char/char.h @@ -7,8 +7,7 @@ #include "../config/core.h" #include "../common/core.h" // CORE_ST_LAST -enum E_CHARSERVER_ST -{ +enum E_CHARSERVER_ST { CHARSERVER_ST_RUNNING = CORE_ST_LAST, CHARSERVER_ST_SHUTDOWN, CHARSERVER_ST_LAST @@ -16,6 +15,24 @@ enum E_CHARSERVER_ST struct mmo_charstatus; +struct char_session_data { + bool auth; // whether the session is authed or not + int account_id, login_id1, login_id2, sex; + int found_char[MAX_CHARS]; // ids of chars on this account + char email[40]; // e-mail (default: a@a.com) by [Yor] + time_t expiration_time; // # of seconds 1/1/1970 (timestamp): Validity limit of the account (0 = unlimited) + int group_id; // permission + uint8 char_slots; + uint32 version; + uint8 clienttype; + char pincode[4+1]; + uint16 pincode_seed; + uint16 pincode_try; + uint32 pincode_change; + char new_name[NAME_LENGTH]; + char birthdate[10+1]; // YYYY-MM-DD +}; + #define MAX_MAP_SERVERS 30 #define DEFAULT_AUTOSAVE_INTERVAL 300*1000 @@ -39,7 +56,7 @@ int char_family(int pl1,int pl2,int pl3); int request_accreg2(int account_id, int char_id); int save_accreg2(unsigned char* buf, int len); - +int login_fd; extern int char_name_option; extern char char_name_letters[]; extern bool char_gm_read; |