| | |
| | | GameWorld.DebugLog("__AddTeamVIPBuff sameMapVIPLV=%s,isOK=%s" % (sameMapVIPLV, isOK), playerID)
|
| | | return
|
| | |
|
| | | def RefreshTeamVIPBuff_OnNoTeam(curPlayer, tick):
|
| | | ## 刷新队伍VIPbuff,注意该函数只能无队伍时触发
|
| | | sameMapVIPLV = 0
|
| | | playerVIPLV = curPlayer.GetVIPLv()
|
| | | teamVIPBuffIpyData = PlayerVip.GetVipPrivilegeData(ChConfig.VIPPrivilege_TeamVIPBuff)
|
| | | if teamVIPBuffIpyData and hasattr(teamVIPBuffIpyData, "GetVIP%d" % playerVIPLV) \
|
| | | and getattr(teamVIPBuffIpyData, "GetVIP%d" % playerVIPLV)():
|
| | | sameMapVIPLV += 1
|
| | | __RefreshTeamVIPBuff(curPlayer, sameMapVIPLV, tick)
|
| | | return
|
| | |
|
| | | ## 刷新玩家队伍ID
|
| | | # @param curPlayer 当前玩家
|
| | | # @param teamID 队伍ID
|
| | |
| | | #GameWorld.DebugLog(" 玩家有队伍,处理玩家离队!", playerID)
|
| | | __OnLeaveTeam(curPlayer, tick)
|
| | |
|
| | | sameMapVIPLV = 0
|
| | | playerVIPLV = curPlayer.GetVIPLv()
|
| | | teamVIPBuffIpyData = PlayerVip.GetVipPrivilegeData(ChConfig.VIPPrivilege_TeamVIPBuff)
|
| | | if teamVIPBuffIpyData and hasattr(teamVIPBuffIpyData, "GetVIP%d" % playerVIPLV) \
|
| | | and getattr(teamVIPBuffIpyData, "GetVIP%d" % playerVIPLV)():
|
| | | sameMapVIPLV += 1
|
| | | __RefreshTeamVIPBuff(curPlayer, sameMapVIPLV, tick)
|
| | | RefreshTeamVIPBuff_OnNoTeam(curPlayer, tick)
|
| | | return
|
| | |
|
| | | #--------------世界服务器组队表中有队伍
|