| | |
| | | if curPlayer:
|
| | | pid = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_PlayerFromPID)
|
| | | dataDict["pid"] = pid
|
| | | dataDict["fightPower"] = curPlayer.GetFightPower()
|
| | | dataDict["time"] = str(datetime.datetime.today()).split(".")[0]
|
| | |
|
| | | dataStr = str(dataDict)
|
| | |
| | | name = curPlayer.GetName()
|
| | | logoutTime = curPlayer.GetLogoffTime()
|
| | | loginTime = curPlayer.GetLoginTime()
|
| | | |
| | | dataDict = {'Type':'logout', 'IP':ip, 'AccID':accID,
|
| | | 'Name':name, 'LoginTime':str(loginTime), |
| | | lv = curPlayer.GetLV()
|
| | | vipLV = curPlayer.GetVIPLv()
|
| | | gold = curPlayer.GetGold()
|
| | | goldPaper = curPlayer.GetGoldPaper()
|
| | | dataDict = {'Type':'logout', 'IP':ip, 'AccID':accID, 'LV':lv, 'VipLV':vipLV,
|
| | | 'Name':name, 'LoginTime':str(loginTime), 'Gold':gold, 'GoldPaper':goldPaper,
|
| | | 'LogoutTime':str(logoutTime)}
|
| | | #发送封包
|
| | | SendEventPack("LogInOut", dataDict, curPlayer)
|
| | |
| | | def DR_CTGOK(curPlayer, addDict):
|
| | | ## CTG成功记录
|
| | | dataDict = {'PlayerID':curPlayer.GetPlayerID(), 'PlayerName':curPlayer.GetPlayerName(),
|
| | | 'AccID':curPlayer.GetAccID()}
|
| | | 'AccID':curPlayer.GetAccID(), 'LV':curPlayer.GetLV()}
|
| | | dataDict.update(addDict)
|
| | |
|
| | | #发送封包
|
| | |
| | |
|
| | | dataDict = {'PlayerID':curPlayer.GetPlayerID(), 'PlayerName':curPlayer.GetPlayerName(),
|
| | | 'AccID':curPlayer.GetAccID(), 'PlayerLV':playerLV, 'PlayerTotalExp':playerTotalExp,
|
| | | 'CurLVRequireExp':curLVRequireExp}
|
| | | 'CurLVRequireExp':curLVRequireExp, 'IP':curPlayer.GetIP()}
|
| | |
|
| | | #发送封包
|
| | | SendEventPack("PlayerUpgrade", dataDict, curPlayer)
|
| | |
| | | 'AccID':curPlayer.GetAccID(), 'mwID':mwID, 'mwLV':mwLV}
|
| | | #发送封包
|
| | | SendEventPack("MagicWeaponActive", dataDict, curPlayer)
|
| | | return
|
| | |
|
| | | ## 玩家上线成就检查
|
| | | # @return
|
| | | def DR_CheckOldPlayerSuccess(curPlayer):
|
| | | dataDict = {'PlayerID':curPlayer.GetPlayerID(), "PlayerName":curPlayer.GetPlayerName(), |
| | | 'AccID':curPlayer.GetAccID()}
|
| | | |
| | | #发送封包
|
| | | SendEventPack("CheckOldPlayerSuccess", dataDict, curPlayer)
|
| | | return
|
| | |
|
| | | ## 玩家境界升级
|
| | | # @return
|
| | | def DR_RealmLVUp(curPlayer, realmlv, realmPoint, needRealmPoint):
|
| | | dataDict = {'PlayerID':curPlayer.GetPlayerID(), "PlayerName":curPlayer.GetPlayerName(), |
| | | 'AccID':curPlayer.GetAccID(), 'realmlv':realmlv, 'curRealmPoint':realmPoint, 'costRealmPoint':needRealmPoint,
|
| | | 'playerlv':curPlayer.GetLV(), 'power':curPlayer.GetFightPower()}
|
| | | |
| | | #发送封包
|
| | | SendEventPack("RealmLVUp", dataDict, curPlayer)
|
| | | return |