5993 【1.5.100】七日巡礼活动相关流向记录
| | |
| | | #发送封包
|
| | | SendEventPack("FightPowerChangeInfo", dataDict, curPlayer)
|
| | | return
|
| | |
|
| | | ## 玩家周狂欢(七天巡礼)
|
| | | # @return
|
| | | def DR_WeekPartyPoint(curPlayer, dayIndex, point):
|
| | | dataDict = {'PlayerID':curPlayer.GetPlayerID(), |
| | | 'AccID':curPlayer.GetAccID(), 'dayIndex':dayIndex, 'point':point}
|
| | | |
| | | #发送封包
|
| | | SendEventPack("WeekPartyPoint", dataDict, curPlayer)
|
| | | return |
| | |
| | | return
|
| | | # 记录过关
|
| | | #EventReport.WriteEvent_FB(curPlayer, ChConfig.Def_FBMapID_ZhuXianTower, 0, ChConfig.CME_Log_End, 0, 1)
|
| | | unLockEquipPlace = ipyData.GetUnLockEquipPlace()
|
| | | if unLockEquipPlace:
|
| | | PlayerControl.WorldNotify(0, 'KillGodTowerInfo_1', [curPlayer.GetPlayerName(), fbLevel, unLockEquipPlace])
|
| | | |
| | | ipyMgr = IpyGameDataPY.IPY_Data()
|
| | | maxFloor = ipyMgr.GetZhuXianTowerByIndex(ipyMgr.GetZhuXianTowerCount() - 1).GetID()
|
| | | # 过关时间
|
| | |
| | | PlayerBillboard.UpdatePlayerBillboard(curPlayer, ShareDefine.Def_BT_ZhuXianTower, fbLevel, 10000-costTime/1000)
|
| | | isFirstS = 1 #是否首次S通关
|
| | | gameFB.SetGameFBDict(FBDict_isFirstS, isFirstS)
|
| | | |
| | | unLockEquipPlace = ipyData.GetUnLockEquipPlace()
|
| | | if isFirstS and unLockEquipPlace:
|
| | | PlayerControl.WorldNotify(0, 'KillGodTowerInfo_1', [curPlayer.GetPlayerName(), fbLevel, unLockEquipPlace])
|
| | | |
| | | # 给过关奖励
|
| | | prizeItemList = __GiveFBPassPrize(curPlayer, False)
|
| | |
|
| | |
| | | import ItemControler
|
| | | import ChPyNetSendPack
|
| | | import Operate_EquipStone
|
| | | import DataRecordPack
|
| | | import PlayerGodWeapon
|
| | | import NetPackCommon
|
| | | import ShareDefine
|
| | |
| | | itemList = awardDict[point]
|
| | | for itemID, itemCnt, isBind in itemList:
|
| | | totalItemDict[itemID] = totalItemDict.get(itemID, 0) + itemCnt
|
| | | DataRecordPack.DR_WeekPartyPoint(curPlayer, day, point)
|
| | | if not totalItemDict:
|
| | | return
|
| | | totalItemList = [[itemID, itemCnt, 1] for itemID, itemCnt in totalItemDict.items()]
|
| | |
| | | for itemID, itemCnt, isBind in itemList:
|
| | | ItemControler.GivePlayerItem(curPlayer, itemID, itemCnt, isBind, [IPY_GameWorld.rptItem])
|
| | | SyncWeekPartyPlayerInfo(curPlayer, day)
|
| | | DataRecordPack.DR_WeekPartyPoint(curPlayer, day, getPoint)
|
| | | return
|
| | |
|
| | |
|