login.h 948 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // Copyright (c) Athena Dev Teams - Licensed under GNU GPL
  2. // For more information, see LICENCE in the main folder
  3. #ifndef _LOGIN_SQL_H_
  4. #define _LOGIN_SQL_H_
  5. #define MAX_SERVERS 30
  6. #define LOGIN_CONF_NAME "conf/login_athena.conf"
  7. #define SQL_CONF_NAME "conf/inter_athena.conf"
  8. #define LAN_CONF_NAME "conf/subnet_athena.conf"
  9. // supported encryption types: 1- passwordencrypt, 2- passwordencrypt2, 3- both
  10. #define PASSWORDENC 3
  11. #ifndef SQL_DEBUG
  12. #define mysql_query(_x, _y) mysql_query(_x, _y)
  13. #else
  14. #define mysql_query(_x, _y) debug_mysql_query(__FILE__, __LINE__, _x, _y)
  15. #endif
  16. struct mmo_account {
  17. int version;
  18. char userid[NAME_LENGTH];
  19. char passwd[NAME_LENGTH];
  20. int passwdenc;
  21. int account_id;
  22. int char_id;
  23. long login_id1;
  24. long login_id2;
  25. char lastlogin[24];
  26. int sex;
  27. int level;
  28. };
  29. struct mmo_char_server {
  30. char name[20];
  31. uint32 ip;
  32. uint16 port;
  33. int users;
  34. int maintenance;
  35. int new_;
  36. };
  37. #endif /* _LOGIN_SQL_H_ */