Jump to content
  • 0

How can I change name of the channel?


ReFresh

Question

10 answers to this question

Recommended Posts

  • 0

 

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
Link to comment
Share on other sites

  • 0
  • Silver
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! 👊 

Link to comment
Share on other sites

  • 0
  • Silver
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! 👊 

Link to comment
Share on other sites

  • 0
  • Silver
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! 👊 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Activity

    1. 3

      Once upon a time...

    2. 1183

      [40250] Reference Serverfile + Client + Src [15 Available Languages]

    3. 3

      Once upon a time...

    4. 3

      Once upon a time...

    5. 0

      problem ability

    6. 0

      Transmutation system error "unknow command server"

    7. 39

      Official Transmutation / Change Look

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.