| | |
| | | if CheckFamilyNameExists(crossPlayer, newName, fromServerID):
|
| | | return
|
| | |
|
| | | zoneMgr = familyMgr.GetZoneFamilyMgrByFamilyID(familyID)
|
| | | if not zoneMgr:
|
| | | return
|
| | | |
| | | if not zoneMgr.FamilyRemainName(family, newName):
|
| | | return
|
| | | |
| | | if cdHours:
|
| | | SetRenameTime(family, curTime)
|
| | | |
| | | moneyType, moneyValue = IpyGameDataPY.GetFuncEvalCfg("FamilyRename", 1)
|
| | | if moneyType and moneyValue:
|
| | | CrossPlayer.CostPlayerResources(crossPlayer, "FamilyRename", costMoneyDict={moneyType:moneyValue})
|
| | | |
| | | family.SetName(newName) |
| | | if cdHours:
|
| | | SetRenameTime(family, curTime)
|
| | |
|
| | | crossPlayerMgr = CrossPlayer.GetCrossPlayerMgr()
|
| | | for index in xrange(family.GetCount()):
|