Example #1
0
 def getGuildInfo(self,characterId):
     '''获取行会的信息'''
     corpsInfo = dbGuild.getGuildInfoById(self.id)
     guildInfo = self.guildinfo
     corpsInfo['corpsImg'] = guildInfo['emblemLevel']
     corpsInfo['level'] = guildInfo['level']
     corpsInfo['memberCount'] = corpsInfo['memberCount'] + ((guildInfo['emblemLevel']-1)*30)
     corpsInfo['bugle'] = guildInfo['bugle']
     corpsInfo['nickname'] = guildInfo['presidentname']
     corpsInfo['levelrequired'] = guildInfo['levelrequired']
     return corpsInfo
Example #2
0
 def getGuildInfo(self, characterId):
     '''获取行会的信息'''
     corpsInfo = dbGuild.getGuildInfoById(self.id)
     guildInfo = self.guildinfo
     corpsInfo['corpsImg'] = guildInfo['emblemLevel']
     corpsInfo['level'] = guildInfo['level']
     corpsInfo['memberCount'] = corpsInfo['memberCount'] + (
         (guildInfo['emblemLevel'] - 1) * 30)
     corpsInfo['bugle'] = guildInfo['bugle']
     corpsInfo['nickname'] = guildInfo['presidentname']
     corpsInfo['levelrequired'] = guildInfo['levelrequired']
     return corpsInfo
Example #3
0
 def creatGuild(self, guildName, president, camp):
     '''创建行会
     @param guildName: str 行会的名称
     @param president: int 会长的id
     '''
     if dbGuild.checkHasGuildByName(guildName):
         return -1
     gid = dbGuild.creatGuild(guildName, president, camp)
     if not gid:
         return 0
     dbGuild.insertCharacterGuildInfo(president, gid, post=4)
     guild = Guild('guild%d' % gid)
     guild.id = gid
     guildinfo = dbGuild.getGuildInfoById(gid)
     guild.initGuildData(guildinfo)
     nowguildlist = self.guildIdList
     nowguildlist.append(gid)
     self.self.guildIdList = nowguildlist
     self._guilds[gid] = guild
     return gid
Example #4
0
 def creatGuild(self,guildName,president,camp):
     '''创建行会
     @param guildName: str 行会的名称
     @param president: int 会长的id
     '''
     if dbGuild.checkHasGuildByName(guildName):
         return -1
     gid = dbGuild.creatGuild(guildName, president,camp)
     if not gid:
         return 0
     dbGuild.insertCharacterGuildInfo(president, gid, post=4)
     guild = Guild('guild%d'%gid)
     guild.id = gid
     guildinfo = dbGuild.getGuildInfoById(gid)
     guild.initGuildData(guildinfo)
     nowguildlist = self.guildIdList
     nowguildlist.append(gid)
     self.self.guildIdList=nowguildlist
     self._guilds[gid] = guild
     return gid