Metin2Problema

Închis
Avatar utilizator
betstar12345
Utilizator interzis !

Utilizator interzis !
Mesaje: 98
Membru din: 12 Feb 2014, 13:38
Server: WarOfLords
Regat: Chunjo
Aprecieri: 2  
Mulţumiri: 1  
 Contact:
Medalii

imi poate spune cineva cum fac porturile ? doar la ch1 si la auth
import locale
def BuildServerList(orderList):
retMarkAddrDict = {}
retAuthAddrDict = {}
retRegion0 = {}

ridx = 1
for region, auth, mark, channels in orderList:
cidx = 1
channelDict = {}
for channel in channels:
key = ridx * 10 + cidx
channel['key'] = key
channelDict[cidx] = channel
cidx += 1

region['channel'] = channelDict

retRegion0[ridx] = region
retAuthAddrDict[ridx] = auth
retMarkAddrDict[ridx*10] = mark
ridx += 1

return retRegion0, retAuthAddrDict, retMarkAddrDict
if locale.IsEUROPE():
STATE_NONE = 'Inchis'

STATE_DICT = {
0 : '....',
1 : 'Deschis',
2 : 'BUSY',
3 : 'FULL',
}

CHANNELS1 = [
{'name':'CH1','ip':'89.33.242.249','tcp_port':19131,'udp_port':19131,'state':STATE_NONE,},
{'name':'CH2','ip':'89.33.242.249','tcp_port':19232,'udp_port':19232,'state':STATE_NONE,},
{'name':'CH3','ip':'89.33.242.249','tcp_port':19193,'udp_port':19193,'state':STATE_NONE,},
{'name':'CH4','ip':'89.33.242.249','tcp_port':19180,'udp_port':19180,'state':STATE_NONE,},
]
MARK1 = { 'ip' : '89.33.242.249', 'tcp_port' : 19131, 'mark' : '120.tga', 'symbol_path' : '', }
AUTH1 = {'ip':'89.33.242.249','port':54259, }
NAME1 = { 'name' : 'Metin2DW'}
REGION0_ORDER_LIST = [
(NAME1, AUTH1, MARK1, CHANNELS1),
]
NEW_REGION0, NEW_REGION0_AUTH_SERVER_DICT, NEW_MARKADDR_DICT = BuildServerList(REGION0_ORDER_LIST)
# RESULT
NEW_REGION_NAME_DICT = {0 : 'POLAND',}
NEW_REGION_AUTH_SERVER_DICT = {0 : NEW_REGION0_AUTH_SERVER_DICT,}
NEW_REGION_DICT = {0 : NEW_REGION0,}

MARKADDR_DICT = NEW_MARKADDR_DICT
REGION_DICT = NEW_REGION_DICT
REGION_NAME_DICT = NEW_REGION_NAME_DICT
REGION_AUTH_SERVER_DICT = NEW_REGION_AUTH_SERVER_DICT

TESTADDR = { 'ip' : '89.33.242.249', 'tcp_port' : 50000, 'udp_port' : 50000, }
Ajutor Metin2 - Tehnician / Designer !
Imagine
Nu fac suport pe skype / facebook !
Afișează semnătura
Închis
Răspunsuri
2
Vizualizări
203

Înapoi la “Arhivă”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 3 vizitatori