Also wie gesagt, ich habe den alten Metin2.SG Client benutzt, nicht Padmak's Multiclient.
Code:
[COLOR="Blue"]import[/COLOR] os
[COLOR="Blue"]import[/COLOR] app
[COLOR="Blue"]import[/COLOR] locale
[COLOR="Blue"]import[/COLOR] debugInfo
CHINA_PORT = [COLOR="Red"]50000[/COLOR]
[COLOR="Blue"]if[/COLOR] locale.IsEUROPE[COLOR="Blue"]()[/COLOR]:
STATE_NONE = "offline"
STATE_DICT = [COLOR="Blue"]{[/COLOR]
[COLOR="Red"]0[/COLOR] : "Wartung",
[COLOR="Red"]1[/COLOR] : "normal",
[COLOR="Red"]2[/COLOR] : "befüllt",
[COLOR="Red"]3[/COLOR] : "voll"
[COLOR="Blue"]}[/COLOR]
EDG_SERVER_1 = [COLOR="Blue"]{[/COLOR]
[COLOR="Red"]1[/COLOR]:{"key":[COLOR="Red"]11[/COLOR],"name":"Alpha","ip":"213.73.112.137","tcp_port":[COLOR="Red"]1302[/COLOR],"udp_port":[COLOR="Red"]1302[/COLOR],"state":STATE_NONE,},
[COLOR="Red"]2[/COLOR]:{"key":[COLOR="Red"]12[/COLOR],"name":"Beta","ip":"213.73.112.152","tcp_port":[COLOR="Red"]1302[/COLOR],"udp_port":[COLOR="Red"]1302[/COLOR],"state":STATE_NONE,}
[COLOR="SeaGreen"]# 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,},[/COLOR]
[COLOR="Blue"]}[/COLOR]
EDG_SERVER_2 = [COLOR="Blue"]{[/COLOR]
[COLOR="SeaGreen"]# 1:{"key":21,"name":"HOME","ip":"192.168.2.100","tcp_port":13000,"udp_port":13000,"state":STATE_NONE,}[/COLOR]
[COLOR="Blue"]}[/COLOR]
REGION_NAME_DICT = [COLOR="Blue"]{[/COLOR]
[COLOR="Red"]0[/COLOR] : "Switzerland",
[COLOR="Blue"]}[/COLOR]
REGION_AUTH_SERVER_DICT = {
[COLOR="Red"]0[/COLOR] : {
[COLOR="Red"]1[/COLOR] : { "ip":"213.73.112.152", "port":[COLOR="Red"]1121[/COLOR], },
[COLOR="SeaGreen"]# 2 : { "ip":"192.168.2.100", "port":11002, }[/COLOR]
}
}
REGION_DICT = [COLOR="Blue"]{[/COLOR]
[COLOR="Red"]0[/COLOR] : {
[COLOR="Red"]1[/COLOR] : { "name" :"eDgMt2 - Fun Server", "channel" : EDG_SERVER_1, },
[COLOR="Red"]2[/COLOR] : { "name" :"ProXeG - DEx4 Server", "channel" : EDG_SERVER_2, }
},
[COLOR="Blue"]}[/COLOR]
MARKADDR_DICT = [COLOR="Blue"]{[/COLOR]
[COLOR="Red"]10[/COLOR] : { "ip" : "213.73.112.152", "tcp_port" : [COLOR="Red"]1302[/COLOR], "mark" : "10.tga", "symbol_path" : "10", },
[COLOR="SeaGreen"]# 20 : { "ip" : "192.168.2.100", "tcp_port" : 13000, "mark" : "20.tga", "symbol_path" : "20", }[/COLOR]
[COLOR="Blue"]}[/COLOR]
TESTADDR = { "ip" : "210.123.10.153", "tcp_port" : [COLOR="Red"]50000[/COLOR], "udp_port" : [COLOR="Red"]50000[/COLOR], }