| | |
| | | return
|
| | |
|
| | | ## 玩家上线成就检查
|
| | | # @param tagObjType: 攻击方类型
|
| | | # @param tagObj: 攻击方ID
|
| | | # @param mapID: 死亡玩家所在地图ID
|
| | | # @return
|
| | | def DR_CheckOldPlayerSuccess(curPlayer):
|
| | | dataDict = {'PlayerID':curPlayer.GetPlayerID(), "PlayerName":curPlayer.GetPlayerName(),
|
| | |
| | | return
|
| | |
|
| | | ## 玩家境界升级
|
| | | # @param tagObjType: 攻击方类型
|
| | | # @param tagObj: 攻击方ID
|
| | | # @param mapID: 死亡玩家所在地图ID
|
| | | # @return
|
| | | def DR_RealmLVUp(curPlayer, realmlv, realmPoint):
|
| | | def DR_RealmLVUp(curPlayer, realmlv, realmPoint, needRealmPoint):
|
| | | dataDict = {'PlayerID':curPlayer.GetPlayerID(), "PlayerName":curPlayer.GetPlayerName(),
|
| | | 'AccID':curPlayer.GetAccID(), 'realmlv':realmlv, 'realmPoint':realmPoint}
|
| | | 'AccID':curPlayer.GetAccID(), 'realmlv':realmlv, 'curRealmPoint':realmPoint, 'costRealmPoint':needRealmPoint,
|
| | | 'playerlv':curPlayer.GetLV(), 'power':curPlayer.GetFightPower()}
|
| | |
|
| | | #发送封包
|
| | | SendEventPack("RealmLVUp", dataDict, curPlayer)
|
| | |
| | | curPlayer.SetOfficialRank(nextRealmLv)
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_RealmFBIsOpen, 0)
|
| | | realmPoint = PlayerControl.GetMoney(curPlayer, ShareDefine.TYPE_Price_RealmPoint)
|
| | | DataRecordPack.DR_RealmLVUp(curPlayer, nextRealmLv, realmPoint)
|
| | | #realmIpyData = GetRealmIpyData(curRealmLV)
|
| | | #if realmIpyData and realmIpyData.GetIsBigRealm():
|
| | | realmIpyData = GetRealmIpyData(curRealmLV)
|
| | | needRealmPoint = realmIpyData.GetNeedPoint() if realmIpyData else 0
|
| | | DataRecordPack.DR_RealmLVUp(curPlayer, nextRealmLv, realmPoint, needRealmPoint)
|
| | | PlayerControl.WorldNotify(0, 'RealmUpSuccess', [curPlayer.GetName(), nextRealmLv])
|
| | | RefreshOfficialAttr(curPlayer)
|
| | | GameFuncComm.DoFuncOpenLogic(curPlayer)
|