| | |
| | | def OnExec(curPlayer, gmList):
|
| | |
|
| | | if not gmList:
|
| | | GameWorld.DebugAnswer(curPlayer, "CreatFamily 创建假仙盟个数 可选参数(是否设置联赛名次)")
|
| | | GameWorld.DebugAnswer(curPlayer, "CreatFamily 创建假仙盟个数 可选参数(仙盟等级 是否设置联赛名次)")
|
| | | GameWorld.DebugAnswer(curPlayer, "删除创建的假仙盟: CreatFamily 0")
|
| | | return
|
| | |
|
| | |
| | | FakeLeaderName = "假盟主".decode(ShareDefine.Def_Game_Character_Encoding).encode(GameWorld.GetCharacterEncoding())
|
| | | succCreatCount = 0
|
| | | creatCount = min(100, creatCount)
|
| | | warRank = gmList[1] if len(gmList) > 1 else 0
|
| | | familyLV = gmList[1] if len(gmList) > 1 else 1
|
| | | warRank = gmList[2] if len(gmList) > 2 else 0
|
| | | familyManager = GameWorld.GetFamilyManager()
|
| | | curCnt = familyManager.GetCount()
|
| | | for i in xrange(curCnt + 1, creatCount + curCnt + 1):
|
| | |
| | | succCreatCount += 1
|
| | | #---创建假仙盟---
|
| | | curFamily.SetCreateTime(creatTime)
|
| | | curFamily.SetLV(1)
|
| | | curFamily.SetLV(familyLV)
|
| | | curFamily.SetAcceptJoin(ShareDefine.FamilyAcceptJoin_Refuse) # 设置拒绝申请
|
| | | curFamily.SetLeaderName("%s%s" % (FakeLeaderName, i))
|
| | | minTotalFightPower -= 1
|