Principală » Fişiere » Altele |
14.Iul.05, 4:17 PM | |
Good evening! Here I release my Python-Script, which gets information from the ServerInfo.py. I guess many won't find this useful, but if you know the Packet-Key ("PONG") of a Server, you can easily create a seperate Client, with which you can connect to the Server The Script reads the following things: - ServerIP + PortTutorial: 1. Extract the archive to the "Metin2\" folder of your choice. 2. Edit the "Mi4uric3\Settings.txt"-File. This are the informations about Server & Channel. For example: Server 1 = ServerNumber=1 ; Channel 4 = ChannelNumber=4, keeps it very simple. 3. Start the Client. 4. The Log-File "Mi4uric3\ServerInformations.txt" will be created, in it are all information Example: Lets imagine the Server had this ServerInfo.py, but we can't extract the archives: import os import app import locale import debugInfo CHINA_PORT = 50000 if locale.IsEUROPE(): STATE_NONE = "offline" STATE_DICT = { 0 : "Wartung", 1 : "normal", 2 : "befüllt", 3 : "voll" } EDG_SERVER_1 = { 1:{"key":11,"name":"Alpha","ip":"213.73.112.137","tcp_port":1302,"udp_port":1302,"state":STATE_NONE,}, 2:{"key":12,"name":"Beta","ip":"213.73.112.152","tcp_port":1302,"udp_port":1302,"state":STATE_NONE,}, 3:{"key":13,"name":"Gamma","ip":"213.73.112.152","tcp_port":13003,"udp_port":13003,"state":STATE_NONE,}, 4:{"key":14,"name":"Delta","ip":"213.73.112.152","tcp_port":13004,"udp_port":13004,"state":STATE_NONE,}, 5:{"key":15,"name":"HOME","ip":"192.168.2.100","tcp_port":13000,"udp_port":13000,"state":STATE_NONE,} } EDG_SERVER_2 = { # 1:{"key":21,"name":"HOME","ip":"192.168.2.100","tcp_port":13000,"udp_port":13000,"state":STATE_NONE,} } REGION_NAME_DICT = { 0 : "Switzerland", } REGION_AUTH_SERVER_DICT = { 0 : { 1 : { "ip":"213.73.112.152", "port":1125, }, # 2 : { "ip":"192.168.2.100", "port":11002, } } } REGION_DICT = { 0 : { 1 : { "name" :"eDgMt2 - Fun Server", "channel" : EDG_SERVER_1, }, 2 : { "name" :"ProXeG - DEx4 Server", "channel" : EDG_SERVER_2, } }, } MARKADDR_DICT = { 10 : { "ip" : "213.73.112.152", "tcp_port" : 1302, "mark" : "10.tga", "symbol_path" : "10", }, # 20 : { "ip" : "192.168.2.100", "tcp_port" : 13000, "mark" : "20.tga", "symbol_path" : "20", } } TESTADDR = { "ip" : "210.123.10.153", "tcp_port" : 50000, "udp_port" : 50000, }Settings.txt: ServerNumber=1Result: Server: 213.73.112.152 : 1302 | |
Vizualizări: 1666 | Descărcări: 465 | |
Total comentarii : 0 | |
Beneficiile celor înregistrați |