| | |
| | | import PlayerCompensation
|
| | | import PlayerFamilyParty
|
| | | import PlayerFamilySWRH
|
| | | import PlayerViewCache
|
| | | import GameWorldBoss
|
| | | import PlayerTalk
|
| | |
|
| | | import copy
|
| | |
| | | PlayerControl.NotifyCode(curPlayer, "DungeonGuardSkyText2")
|
| | | return
|
| | |
|
| | | if GameWorld.GetGameWorld().GetDictByKey(ShareDefine.Def_Notify_WorldKey_DailyActionState % ShareDefine.DailyActionID_FamilyRobBoss): |
| | | PlayerControl.NotifyCode(curPlayer, "FairyGrabBossExitError")
|
| | | return
|
| | | |
| | | tagPlayerName = curTagMember.GetName() # 被踢玩家名
|
| | | tagPlayerID = curTagMember.GetPlayerID() # 被踢玩家ID
|
| | | tagFamilyLV = curTagMember.GetFamilyLV() # 被踢玩家职位
|
| | |
| | | if PlayerFamilySWRH.IsInFamilySWRH():
|
| | | PlayerControl.NotifyCode(curPlayer, "DungeonGuardSkyText1")
|
| | | return
|
| | | |
| | | if GameWorld.GetGameWorld().GetDictByKey(ShareDefine.Def_Notify_WorldKey_DailyActionState % ShareDefine.DailyActionID_FamilyRobBoss): |
| | | PlayerControl.NotifyCode(curPlayer, "FairyGrabBossExitError")
|
| | | return
|
| | | |
| | | #XW_JZ_LeaveFamily <n color="0,190,255">{%S1%}</n><n color="255,255,0">退出了家族!</n> 25 - -
|
| | | NotifyAllFamilyMemberMsg(curFamily, curPlayer, "XW_JZ_LeaveFamily", [curPlayer.GetName()])
|
| | |
|
| | |
| | | # 玩家战盟名变更处理
|
| | | __OnFamilyNameChange(leavePlayerID, '')
|
| | | AddFamilyIDToFightPowerChangeList(curFamily.GetID())
|
| | | PlayerViewCache.OnPlayerLeaveFamily(leavePlayerID)
|
| | | return
|
| | |
|
| | | #//////////////////////////////////////////////////////////////
|
| | |
| | |
|
| | | familyMoney = family.GetMoney()
|
| | |
|
| | | useMoney = GetFamilySetting(family, ChConfig.Def_FamilySetting_SystemLostMoney)
|
| | | |
| | | #家族资金不足, 解散
|
| | | if familyMoney < useMoney:
|
| | | family.SetMoney(0)
|
| | | delFamilyList.append(family)
|
| | | continue
|
| | | # useMoney = GetFamilySetting(family, ChConfig.Def_FamilySetting_SystemLostMoney)
|
| | | # |
| | | # #家族资金不足, 解散
|
| | | # if familyMoney < useMoney:
|
| | | # family.SetMoney(0)
|
| | | # delFamilyList.append(family)
|
| | | # continue
|
| | | #多久没人上线,解散
|
| | | offlineDay = GetLastOnlineMemberOfflineTime(family)
|
| | | GameWorld.DebugLog(' 仙盟%s %s天没人上线了'%(family.GetID(), offlineDay))
|
| | |
| | | ChConfig.Def_Family_ClearRequestAddNote_Day)
|
| | |
|
| | | #此处不通知地图服务器家族资金变更
|
| | | family.SetMoney(familyMoney - useMoney)
|
| | | if useMoney > 0:
|
| | | #帮会日常维持消耗{%S1%}银两帮会资金
|
| | | PlayerControl.FamilyNotify(family.GetID(), 'jiazu_lhs_272921', [useMoney])
|
| | | # family.SetMoney(familyMoney - useMoney)
|
| | | # if useMoney > 0:
|
| | | # #帮会日常维持消耗{%S1%}银两帮会资金
|
| | | # PlayerControl.FamilyNotify(family.GetID(), 'jiazu_lhs_272921', [useMoney])
|
| | | #自动传位
|
| | | __AutoChangeLeader(family)
|
| | |
|