Jump to content

Recommended Posts

 

def __SetServerInfo(self, name):
	        net.SetServerInfo(name.strip())

 
def Channel99_ListMapIndex(self):
	        indexMap = [
	            "season1/metin2_map_oxevent",
	            "metin2_map_devilsCatacomb",
	        ]
	        if str(background.GetCurrentMapName()) in indexMap:
	            pass

 
	if self.Channel99_ListMapIndex():    
		serverName = "Metin2YourName"
		m2_devChannel99 = "Channel 99"
		self.__SetServerInfo(serverName + m2_devChannel99)

 

I have not tested, but when you get to teleport in full you entered in the list that is on channel99, automatic channel name will change to channel 99.

 

 

 

 

  • Love 1
  • Active+ Member
24 minutes ago, VegaS said:

 


def __SetServerInfo(self, name):
	        net.SetServerInfo(name.strip())


 

def Channel99_ListMapIndex(self):
	        indexMap = [
	            "season1/metin2_map_oxevent",
	            "metin2_map_devilsCatacomb",
	        ]
	        if str(background.GetCurrentMapName()) in indexMap:
	            pass


 

	if self.Channel99_ListMapIndex():    
		serverName = "Metin2YourName"
		m2_devChannel99 = "Channel 99"
		self.__SetServerInfo(serverName + m2_devChannel99)


 

I have not tested, but when you get to teleport in full you entered in the list that is on channel99, automatic channel name will change to channel 99.

 

 

 

 

Thank you man. I will try this :)

I'll be always helpful!  😉

A small mistake which makes it easier to adapt introLoading xD

 

Delete:

 

def __SetServerInfo(self, name):
	        net.SetServerInfo(name.strip())

Change:

self.__SetServerInfo(serverName + m2_devChannel99)

with:

net.SetServerInfo(serverName + m2_devChannel99)
  • Active+ Member
2 hours ago, VegaS said:

A small mistake which makes it easier to adapt introLoading xD

 

Delete:

 


def __SetServerInfo(self, name):
	        net.SetServerInfo(name.strip())

Change:


self.__SetServerInfo(serverName + m2_devChannel99)

with:


net.SetServerInfo(serverName + m2_devChannel99)

Okay. Thank you. And can I put this code into game.py? or must be in specific file?

I'll be always helpful!  😉

  • Active+ Member
On 3. 5. 2016 at 3:04 PM, VegaS said:

A small mistake which makes it easier to adapt introLoading xD

 

Delete:

 


def __SetServerInfo(self, name):
	        net.SetServerInfo(name.strip())

Change:


self.__SetServerInfo(serverName + m2_devChannel99)

with:


net.SetServerInfo(serverName + m2_devChannel99)

I paste this to intrologin.py and I got an error:

1462900487.png

There is an erorr:

1462900592.png

Edited by Metin2 Dev
Core X - External 2 Internal

I'll be always helpful!  😉

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.