Esempio n. 1
0
def helpme(characterId,argument):
    '''帮助'''
    player = PlayersManager().getPlayerByID(characterId)
    if not player:
        return
    s = globals()
    helps = []
    for key,item in s.items():
        if type(item)==type(helpme):
            info = "\\"+key + ":" + item.func_doc+"\n"
            helps.append(info)
    helpstr = ""
    helpstr = helpstr.join(helps)
    pushObjectNetInterface.pushEnterMessage(helpstr.decode('utf8'), [player.getDynamicId()])
Esempio n. 2
0
def helpme(characterId, argument):
    '''帮助'''
    player = PlayersManager().getPlayerByID(characterId)
    if not player:
        return
    s = globals()
    helps = []
    for key, item in s.items():
        if type(item) == type(helpme):
            info = "\\" + key + ":" + item.func_doc + "\n"
            helps.append(info)
    helpstr = ""
    helpstr = helpstr.join(helps)
    pushObjectNetInterface.pushEnterMessage(helpstr.decode('utf8'),
                                            [player.getDynamicId()])
Esempio n. 3
0
 def disconnectClient(self):
     '''断开'''
     msg = u"您账户其他地方登录"
     pushEnterMessage(msg, [self.dynamicId])
Esempio n. 4
0
 def disconnectClient(self):
     """断开"""
     msg = u"您账户其他地方登录"
     pushEnterMessage(msg, [self.dynamicId])