Advertisement
Guest User

config.h

a guest
Jul 18th, 2019
19
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. #ifndef __INC_METIN_II_GAME_CONFIG_H__
  3. #define __INC_METIN_II_GAME_CONFIG_H__
  4.  
  5. enum
  6. {
  7.     ADDRESS_MAX_LEN = 15
  8. };
  9.  
  10. void config_init(const std::string& st_localeServiceName); // default "" is CONFIG
  11.  
  12. extern char sql_addr[256];
  13.  
  14. extern WORD mother_port;
  15. extern WORD p2p_port;
  16.  
  17. extern char db_addr[ADDRESS_MAX_LEN + 1];
  18. extern WORD db_port;
  19.  
  20. extern char teen_addr[ADDRESS_MAX_LEN + 1];
  21. extern WORD teen_port;
  22.  
  23. extern char passpod_addr[ADDRESS_MAX_LEN + 1];
  24. extern WORD passpod_port;
  25.  
  26. extern int passes_per_sec;
  27. extern int save_event_second_cycle;
  28. extern int ping_event_second_cycle;
  29. extern int test_server;
  30. extern bool guild_mark_server;
  31. extern BYTE guild_mark_min_level;
  32. extern bool distribution_test_server;
  33. extern bool china_event_server;
  34.  
  35. extern bool g_bNoMoreClient;
  36. extern bool g_bNoRegen;
  37.  
  38. extern bool g_bEmpireShopPriceTrippleDisable;
  39. extern bool g_bShoutAddonEnable;
  40. extern bool g_bGlobalShoutEnable;
  41. extern bool g_bDisablePrismNeed;
  42. extern bool g_bDisableEmotionMask;
  43. extern BYTE g_bItemCountLimit;
  44. extern bool g_bDisableItemBonusChangeTime;
  45. extern bool g_bAllMountAttack;
  46.  
  47. extern bool g_bTrafficProfileOn;        ///< true 이면 TrafficProfiler 를 켠다.
  48.  
  49. extern BYTE g_bChannel;
  50.  
  51. extern bool map_allow_find(int index);
  52. extern void map_allow_copy(long * pl, int size);
  53. extern bool no_wander;
  54.  
  55. extern int      g_iUserLimit;
  56. extern time_t   g_global_time;
  57.  
  58. const char *    get_table_postfix();
  59.  
  60. extern std::string  g_stHostname;
  61. extern std::string  g_stLocale;
  62. extern std::string  g_stLocaleFilename;
  63.  
  64. extern char     g_szPublicIP[16];
  65. extern char     g_szInternalIP[16];
  66. #ifdef FIX_LOGIN
  67. extern char     g_szExternPublicIP[16];
  68. #endif
  69.  
  70. extern int (*is_twobyte) (const char * str);
  71. extern int (*check_name) (const char * str);
  72.  
  73. extern bool     g_bSkillDisable;
  74.  
  75. extern int      g_iFullUserCount;
  76. extern int      g_iBusyUserCount;
  77. extern void     LoadStateUserCount();
  78.  
  79. extern bool g_bEmpireWhisper;
  80.  
  81. extern BYTE g_bAuthServer;
  82. extern BYTE g_bBilling;
  83.  
  84. extern BYTE PK_PROTECT_LEVEL;
  85.  
  86. extern void LoadValidCRCList();
  87. extern bool IsValidProcessCRC(DWORD dwCRC);
  88. extern bool IsValidFileCRC(DWORD dwCRC);
  89.  
  90. extern std::string  g_stAuthMasterIP;
  91. extern WORD     g_wAuthMasterPort;
  92.  
  93. extern std::string  g_stClientVersion;
  94. extern bool     g_bCheckClientVersion;
  95. extern void     CheckClientVersion();
  96.  
  97. extern std::string  g_stQuestDir;
  98. //extern std::string    g_stQuestObjectDir;
  99. extern std::set<std::string> g_setQuestObjectDir;
  100.  
  101.  
  102. extern std::vector<std::string> g_stAdminPageIP;
  103. extern std::string  g_stAdminPagePassword;
  104.  
  105. extern int  SPEEDHACK_LIMIT_COUNT;
  106. extern int  SPEEDHACK_LIMIT_BONUS;
  107.  
  108. extern int g_iSyncHackLimitCount;
  109.  
  110. extern int g_server_id;
  111. extern std::string g_strWebMallURL;
  112.  
  113. extern int VIEW_RANGE;
  114. extern int VIEW_BONUS_RANGE;
  115.  
  116. extern bool g_bCheckMultiHack;
  117. extern bool g_protectNormalPlayer;      // 범법자가 "평화모드" 인 일반유저를 공격하지 못함
  118. extern bool g_noticeBattleZone;         // 중립지대에 입장하면 안내메세지를 알려줌
  119.  
  120. extern DWORD g_GoldDropTimeLimitValue;
  121.  
  122. extern bool isHackShieldEnable;
  123. extern int  HackShield_FirstCheckWaitTime;
  124. extern int  HackShield_CheckCycleTime;
  125. extern bool bXTrapEnabled;
  126.  
  127. extern int gPlayerMaxLevel;
  128. extern int gShutdownAge;
  129. extern int gShutdownEnable; // 기본 0. config에서 지정해야함.
  130.  
  131. extern bool gHackCheckEnable;
  132.  
  133. extern bool g_BlockCharCreation;
  134.  
  135. #endif /* __INC_METIN_II_GAME_CONFIG_H__ */
Advertisement
RAW Paste Data Copied
Advertisement