| | |
| | | SendEventPack("PlayerDead", dataDict, curPlayer)
|
| | | return
|
| | |
|
| | |
|
| | | ## 给存奖励表物品
|
| | | # @param curPlayer: 玩家
|
| | | # @param rewardType: 奖励类型
|
| | | # @param itemID: 物品ID
|
| | | # @param itemCnt: 物品个数
|
| | | # @return
|
| | | def DR_PlayerGetReward(curPlayer, rewardType, itemID, itemCnt):
|
| | | dataDict = {'PlayerID':curPlayer.GetPlayerID(), "PlayerName":curPlayer.GetPlayerName(), |
| | | 'AccID':curPlayer.GetAccID(), 'itemID':itemID, 'itemCnt':itemCnt,
|
| | | 'rewardType':rewardType}
|
| | | |
| | | #发送封包
|
| | | SendEventPack("PlayerGetReward", dataDict, curPlayer)
|
| | | return
|
| | |
|
| | | ## 申请加入贵宾俱乐部
|
| | | # @param curPlayer
|
| | | # @param hasRegister: 之前是否已报名
|
| | |
| | | 'AccID':curPlayer.GetAccID(), 'content':content}
|
| | | #发送封包
|
| | | SendEventPack("PlayerSubmit_%s" % eventName, dataDict, curPlayer)
|
| | | return
|
| | |
|
| | | ## 资源找回记录
|
| | | # @param curPlayer
|
| | | # @return: None
|
| | | def DR_PlayerRecover(curPlayer, recoverWay, recoverCntDict, totalExp, totalMoney, totalSP, totalItemDict):
|
| | | |
| | | dataDict = {'PlayerID':curPlayer.GetPlayerID(), 'PlayerName':curPlayer.GetPlayerName(), |
| | | 'AccID':curPlayer.GetAccID(), 'recoverWay':recoverWay, 'recoverCntDict':recoverCntDict,
|
| | | 'totalExp':totalExp, 'totalMoney':totalMoney, 'totalSP':totalSP, 'totalItemDict':totalItemDict}
|
| | |
|
| | | #发送封包
|
| | | SendEventPack("PlayerRecover", dataDict, curPlayer)
|
| | | return
|
| | |
|
| | | def DR_GlobalDropCD(curPlayer, npcID, itemID):
|