client/bin/pack/root/serverinfo.py

48 lines
1.1 KiB
Python
Raw Normal View History

2023-07-21 21:55:58 +03:00
SERVER_NAME = "Metin2"
SERVER_IP = "127.0.0.1"
2023-07-21 21:55:58 +03:00
CH1_NAME = "CH1"
CH2_NAME = "CH2"
CH3_NAME = "CH3"
CH4_NAME = "CH4"
PORT_1 = 13000
PORT_2 = 13010
PORT_3 = 13020
PORT_4 = 13030
PORT_AUTH = 11000
PORT_MARK = 13000
STATE_NONE = "..."
STATE_DICT = {
2023-07-21 21:55:58 +03:00
0 : "....",
1 : "NORM",
2 : "BUSY",
3 : "FULL"
}
SERVER01_CHANNEL_DICT = {
1: {"key": 11, "name": CH1_NAME, "ip": SERVER_IP, "tcp_port": PORT_1, "udp_port": PORT_1, "state": STATE_NONE},
2: {"key": 12, "name": CH2_NAME, "ip": SERVER_IP, "tcp_port": PORT_2, "udp_port": PORT_2, "state": STATE_NONE},
3: {"key": 13, "name": CH3_NAME, "ip": SERVER_IP, "tcp_port": PORT_3, "udp_port": PORT_3, "state": STATE_NONE},
4: {"key": 14, "name": CH4_NAME, "ip": SERVER_IP, "tcp_port": PORT_4, "udp_port": PORT_4, "state": STATE_NONE},
}
2023-07-21 21:55:58 +03:00
REGION_NAME_DICT = {
0: "",
}
REGION_AUTH_SERVER_DICT = {
0: {
1: {"ip": SERVER_IP, "port": PORT_AUTH},
}
}
REGION_DICT = {
0: {
1: {"name": SERVER_NAME, "channel": SERVER01_CHANNEL_DICT},
2023-07-21 21:55:58 +03:00
},
}
MARKADDR_DICT = {
10: {"ip": SERVER_IP, "tcp_port": PORT_MARK, "mark": "10.tga", "symbol_path": "10"},
2023-07-21 21:55:58 +03:00
}