Active Member ReFresh 2340 Posted April 26, 2016 Active Member Share Posted April 26, 2016 Hi guys, How can I change the name of the channel in game? Example: I warp to CH99 from CH1 and on this CH99 still showing CH1 not CH99. So, how can i change it or solve it? I'll be always helpful! Link to comment Share on other sites More sharing options...
Active Member ReFresh 2340 Posted April 28, 2016 Author Active Member Share Posted April 28, 2016 #push I'll be always helpful! Link to comment Share on other sites More sharing options...
Active Member ReFresh 2340 Posted May 1, 2016 Author Active Member Share Posted May 1, 2016 #push I'll be always helpful! Link to comment Share on other sites More sharing options...
Active Member ReFresh 2340 Posted May 3, 2016 Author Active Member Share Posted May 3, 2016 #push I'll be always helpful! Link to comment Share on other sites More sharing options...
VegaS 1087 Posted May 3, 2016 Share Posted May 3, 2016 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. 1 Link to comment Share on other sites More sharing options...
Active Member ReFresh 2340 Posted May 3, 2016 Author Active Member Share Posted May 3, 2016 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 More sharing options...
VegaS 1087 Posted May 3, 2016 Share Posted May 3, 2016 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) Link to comment Share on other sites More sharing options...
Active Member ReFresh 2340 Posted May 3, 2016 Author Active Member Share Posted May 3, 2016 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 More sharing options...
Active Member ReFresh 2340 Posted May 10, 2016 Author Active Member Share Posted May 10, 2016 (edited) 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: There is an erorr: Edited August 24, 2022 by Metin2 Dev Core X - External 2 Internal I'll be always helpful! Link to comment Share on other sites More sharing options...
Active Member ReFresh 2340 Posted May 14, 2016 Author Active Member Share Posted May 14, 2016 #push I'll be always helpful! Link to comment Share on other sites More sharing options...
ZenkoKXO. 29 Posted May 14, 2016 Share Posted May 14, 2016 You added one useless tabulation; def Channel99_ListMapIndex(self): indexMap = ["season1/metin2_map_oxevent", "metin2_map_devilsCatacomb",] if str(background.GetCurrentMapName()) in indexMap: pass Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now