From ee281a26174c68e4de3a5afe32e0232e2c832570 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Sat, 16 Nov 2013 03:03:45 -0200 Subject: Fixed char server's maintenance mode Enabling the maintenance mode will now restrict login based on group id (previously maintenance mode was merely cosmetic and would allow all accounts to access). Renamed char-server.conf setting char_maintenance to char_server_type, added char_maintenance_min_group_id to be used in conjunction with char_server_type:1 Signed-off-by: shennetsind --- src/common/mmo.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/common') diff --git a/src/common/mmo.h b/src/common/mmo.h index 369f5c894..309203aa8 100644 --- a/src/common/mmo.h +++ b/src/common/mmo.h @@ -853,6 +853,14 @@ enum ammo_type { A_THROWWEAPON //9 }; +enum e_char_server_type { + CST_NORMAL = 0, + CST_MAINTENANCE = 1, + CST_OVER18 = 2, + CST_PAYING = 3, + CST_P2P = 4, +}; + /* packet size constant for itemlist */ #if MAX_INVENTORY > MAX_STORAGE && MAX_INVENTORY > MAX_CART #define MAX_ITEMLIST MAX_INVENTORY -- cgit v1.2.3-70-g09d2