Cerere 2 in 1 client

Închis
Avatar utilizator
goghez18
Ţepar / Untrusted User

Ţepar / Untrusted User
Mesaje: 92
Membru din: 11 Noi 2014, 23:45
Server: https://trynity2.com
Regat: Chunjo
Aprecieri: 122  
Mulţumiri: 0
Medalii

Buna doresc sa bag 2 servere intr-un client ma poate ajuta cineva?

Multumesc!

serverinfo!!:
Warningimport app

app.ServerName = None

STATE_NONE = 'off'

STATE_DICT = {
0 : 'off',
1 : 'norm',
2 : 'busy',
3 : 'full' }

SERVER1_CHANNEL_DICT = {
1:{'key':11,'name':'{Channel I}','ip':'89.42.135.174','tcp_port':21110,'udp_port':21110,'state':STATE_NONE,},
2:{'key':12,'name':'{Channel II}','ip':'89.42.135.174','tcp_port':22000,'udp_port':22000,'state':STATE_NONE,},
3:{'key':14,'name':'{Channel III}','ip':'89.42.135.174','tcp_port':23000,'udp_port':23000,'state':STATE_NONE,},
4:{'key':13,'name':'{Channel IV}','ip':'89.42.135.174','tcp_port':21039,'udp_port':21039,'state':STATE_NONE,},
}
REGION_NAME_DICT = {
0 : 'TAIWAN',
}

REGION_AUTH_SERVER_DICT = {
0 : {
1 : { 'ip':'89.42.135.174', 'port':31009, },

}
}

REGION_DICT = {
0 : {
1 : { 'name' : '|cFFFFD700|h{Metin2Zewa}', 'channel' : SERVER1_CHANNEL_DICT, },
},
}

MARKADDR_DICT = {
10 : { 'ip' : '89.42.135.174', 'tcp_port' : 21000, 'mark' : '10.tga', 'symbol_path' : '10', },
}

TESTADDR = { 'ip' : '89.42.135.174', 'tcp_port' : 50000, 'udp_port' : 50000, }

#DONE
Avatar utilizator
adrianadyy
Nivel 4

Nivel 4
Mesaje: 662
Membru din: 09 Ian 2017, 20:18
Server: Odisian2
Regat: Shinsoo
Aprecieri: 38  
Mulţumiri: 8  
 Contact:
Medalii

goghez18 scrie:Buna doresc sa bag 2 servere intr-un client ma poate ajuta cineva?

Multumesc!

serverinfo!!:
Warningimport app

app.ServerName = None

STATE_NONE = 'off'

STATE_DICT = {
0 : 'off',
1 : 'norm',
2 : 'busy',
3 : 'full' }

SERVER1_CHANNEL_DICT = {
1:{'key':11,'name':'{Channel I}','ip':'89.42.135.174','tcp_port':21110,'udp_port':21110,'state':STATE_NONE,},
2:{'key':12,'name':'{Channel II}','ip':'89.42.135.174','tcp_port':22000,'udp_port':22000,'state':STATE_NONE,},
3:{'key':14,'name':'{Channel III}','ip':'89.42.135.174','tcp_port':23000,'udp_port':23000,'state':STATE_NONE,},
4:{'key':13,'name':'{Channel IV}','ip':'89.42.135.174','tcp_port':21039,'udp_port':21039,'state':STATE_NONE,},
}
REGION_NAME_DICT = {
0 : 'TAIWAN',
}

REGION_AUTH_SERVER_DICT = {
0 : {
1 : { 'ip':'89.42.135.174', 'port':31009, },

}
}

REGION_DICT = {
0 : {
1 : { 'name' : '|cFFFFD700|h{Metin2Zewa}', 'channel' : SERVER1_CHANNEL_DICT, },
},
}

MARKADDR_DICT = {
10 : { 'ip' : '89.42.135.174', 'tcp_port' : 21000, 'mark' : '10.tga', 'symbol_path' : '10', },
}

TESTADDR = { 'ip' : '89.42.135.174', 'tcp_port' : 50000, 'udp_port' : 50000, }

#DONE
Salut!
Ai nevoie de 2 hosturi (nu poti porni ambele sv cu un singur host pt ca ai un singur ip)
Trebuie neaparat sa folosesti acelasi svf cu acelasi client (nu poti avea sv 1 pvm clasic fara alchimie si sv 2 pvp cu alchimie)

[ Postat de pe Android ] Imagine
https://www.facebook.com/Metin2Odisian/
Pvm-pvp max lv 105
Deschiderea are loc pe data de 27/06/2020
site http://odisian2.com/
Afișează semnătura
Avatar utilizator
goghez18
Ţepar / Untrusted User

Ţepar / Untrusted User
Mesaje: 92
Membru din: 11 Noi 2014, 23:45
Server: https://trynity2.com
Regat: Chunjo
Aprecieri: 122  
Mulţumiri: 0
Medalii

Deci am 2 hosturi doar ca le am la firme diferite, altchimie nu are nici un server, si am si aceasi svfile!
Avatar utilizator
LastGuards
Nivel 2

Nivel 2
Mesaje: 170
Membru din: 20 Iun 2018, 12:12
Server: LastGuards
Regat: Jinno
Aprecieri: 331  
Mulţumiri: 19  
Medalii

Incearca asa :
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 = '...'

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

CHANNELS1 = [
{'name':'CH1','ip':'188.215.234.59','tcp_port':21000,'udp_port':21000,'state':STATE_NONE,},
{'name':'CH2','ip':'188.215.234.59','tcp_port':32000,'udp_port':32000,'state':STATE_NONE,},
{'name':'CH3','ip':'188.215.234.59','tcp_port':35000,'udp_port':35000,'state':STATE_NONE,},
{'name':'CH4','ip':'188.215.234.59','tcp_port':34000,'udp_port':34000,'state':STATE_NONE,},
]
CHANNELS2 = [
{'name':'CH1','ip':'iptest','tcp_port':12100,'udp_port':12100,'state':STATE_NONE,},
]
MARK1 = { 'ip' : '188.215.234.59', 'tcp_port' : 21000, 'mark' : '10.tga', 'symbol_path' : '10', }
MARK2 = { 'ip' : 'iptest', 'tcp_port' : 12100, 'mark' : '10.tga', 'symbol_path' : '10', }
AUTH1 = {'ip':'188.215.234.59','port':31009, }
AUTH2 = {'ip':'iptest','port':51008, }
NAME1 = { 'name' : 'Server 1 principal'}
NAME2 = { 'name' : 'Test-Server'}
REGION0_ORDER_LIST = [
(NAME1, AUTH1, MARK1, CHANNELS1),
(NAME2, AUTH2, MARK2, CHANNELS2),
]
NEW_REGION0, NEW_REGION0_AUTH_SERVER_DICT, NEW_MARKADDR_DICT = BuildServerList(REGION0_ORDER_LIST)
# RESULT
NEW_REGION_NAME_DICT = {0 : 'ROMANIA',}
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' : '188.215.234.59', 'tcp_port' : 50000, 'udp_port' : 50000, }
Pentru acest mesaj, LastGuards for the post:
goghez18
Avatar utilizator
goghez18
Ţepar / Untrusted User

Ţepar / Untrusted User
Mesaje: 92
Membru din: 11 Noi 2014, 23:45
Server: https://trynity2.com
Regat: Chunjo
Aprecieri: 122  
Mulţumiri: 0
Medalii

Rezolvat multumesc!
Avatar utilizator
FastReview
Veteran

Veteran
Mesaje: 2624
Membru din: 25 Oct 2015, 00:01
Aprecieri: 77  
Mulţumiri: 111  
Discord: Copiază ID
Medalii

Cerere rezolvata, mutat.
Închis

Înapoi la “Cereri Rezolvate”

  • Informaţie
  • Cine este conectat

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