Aqui el script de python para usar locale_xx.addr

Topic created · 1 Posts · 341 Views
  • Aqui les dejo este codigo que tanto me costó encontrar... consegui descompliar el cliente del metin2.es ... asi que pues aqui les dejo el script y el serverinfo... Y AQUI POCO VENTANA DE GREMIOS ARREGLADA PARA .ES XDD
    Codigo...

    if locale.IsEUROPE():
    	name = app.GetLocalePath().replace("/", "_") + ".addr"
    	path = os.sep.join(("pack", name))
    	if os.access(path, os.R_OK):
    		print "load_locale_addr:", path
    
    		data = app.LoadLocaleAddr(path)
    
    		import cPickle
    		import cStringIO
    		info = cPickle.load(cStringIO.StringIO(data))
    
    		STATE_NONE = "..."
    
    		STATE_DICT = {
    			0 : "....",
    			1 : "NORM",
    			2 : "BUSY",
    			3 : "FULL"
    			}
    
    		REGION_NAME_DICT = info["NAME"]
    		REGION_AUTH_SERVER_DICT = info["AUTHADDR"]
    		REGION_DICT = info["GAMEADDR"]
    		MARKADDR_DICT = info["MARKADDR"]
Log in to reply