Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- g_ip = "5.154.174.118"
- def SetChannel(self, ch):
- for key, button in self.channelButton.items():
- button.SetUp()
- self.channelButton[ch].Down()
- self.stream.SetConnectInfo(g_ip, self.ChannelPort(ch, 0), g_ip, self.ChannelPort("LOGIN"))
- net.SetMarkServer(g_ip, self.ChannelPort("LOGO"))
- app.SetGuildMarkPath("10.tga")
- app.SetGuildSymbolPath("10")
- net.SetServerInfo(self.ChannelPort(ch, 2))
- def ChannelPort(self, ch, value=0):
- channel = {
- 0 : 13000,
- 1 : 13001,
- 2 : 13002,
- 3 : 13003,
- 4 : 13004,
- 5 : 13005}
- if ch == "LOGIN":
- return 11002
- elif ch == "LOGO":
- return channel[0]
- elif value == 2:
- return "Arianea, Channel %s" % (ch+1)
- else:
- return channel[ch]
- def Connect(self, id, pwd):
- if constInfo.SEQUENCE_PACKET_ENABLE:
- net.SetPacketSequenceMode()
- constInfo.LastAccount = id.lower()
- self.stream.popupWindow.Close()
- self.stream.popupWindow.Open(localeInfo.LOGIN_CONNETING, self.EmptyFunc, localeInfo.UI_CANCEL)
- self.stream.SetLoginInfo(id, pwd)
- self.stream.Connect()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement