login.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. // Copyright (c) Athena Dev Teams - Licensed under GNU GPL
  2. // For more information, see LICENCE in the main folder
  3. #ifndef _LOGIN_H_
  4. #define _LOGIN_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. #ifndef SQL_DEBUG
  10. #define mysql_query(_x, _y) mysql_real_query(_x, _y, strlen(_y)) //supports ' in names and runs faster [Kevin]
  11. #else
  12. #define mysql_query(_x, _y) debug_mysql_query(__FILE__, __LINE__, _x, _y)
  13. #endif
  14. #define PASSWORDENC 3 // A definition is given when making an encryption password correspond.
  15. // It is 1 at the time of passwordencrypt.
  16. // It is made into 2 at the time of passwordencrypt2.
  17. // When it is made 3, it corresponds to both.
  18. struct mmo_account {
  19. int version; //Added by sirius for versioncheck
  20. char userid[NAME_LENGTH];
  21. char passwd[NAME_LENGTH];
  22. int passwdenc;
  23. long account_id;
  24. long login_id1;
  25. long login_id2;
  26. long char_id;
  27. char lastlogin[24];
  28. int sex;
  29. int level; // added [zzo]
  30. };
  31. struct mmo_char_server {
  32. char name[20];
  33. long ip;
  34. short port;
  35. int users;
  36. int maintenance;
  37. int new_;
  38. };
  39. #endif