| | |
| | | SendEventPack("UseCurrency_%s" % moneyType, dataDict, curPlayer)
|
| | |
|
| | | #战盟贡献
|
| | | elif moneyType == ShareDefine.TYPE_Price_Family_Contribution:
|
| | | SendEventPack("UseFamilyContribution", dataDict, curPlayer)
|
| | | #elif moneyType == ShareDefine.TYPE_Price_Family_Contribution:
|
| | | # SendEventPack("UseFamilyContribution", dataDict, curPlayer)
|
| | |
|
| | | return
|
| | |
|
| | |
| | | SendEventPack("OneTimeCoinGiveGold", dataDict, curPlayer)
|
| | | return
|
| | |
|
| | |
|
| | | ## 增加玩家家族活跃度
|
| | | # @param curPlayer: 玩家实例
|
| | | # @param addValue: 增加值
|
| | | # @param curValue: 增加后值
|
| | | # @param reason:增加原因
|
| | | # @return |
| | | def DR_AddPlayerFamilyActiveValue(curPlayer, addValue, curValue, reason):
|
| | | return
|
| | |
|
| | | dataDict = {'PlayerID':curPlayer.GetPlayerID(), "PlayerName":curPlayer.GetPlayerName(), |
| | | 'AccID':curPlayer.GetAccID(),
|
| | | 'addValue':addValue, 'FamilyActiveValue':curValue, 'Reason':reason}
|
| | | #发送封包
|
| | | SendEventPack("AddPlayerFamilyActiveValue", dataDict, curPlayer)
|
| | | return
|
| | |
|
| | |
|
| | | ## 宠物加点
|
| | | # @param curPlayer: 玩家实例
|
| | | # @param petID: 宠物id
|
| | |
| | |
|
| | | #发送封包
|
| | | 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
|
| | |
|
| | | ## 申请加入贵宾俱乐部
|
| | |
| | | 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):
|
| | | # 全局掉落CD掉落记录
|
| | | dataDict = {'PlayerID':curPlayer.GetPlayerID(), 'PlayerName':curPlayer.GetPlayerName(),
|
| | |
| | | 'ItemID':itemID, 'KilledCnt':killedCnt, 'DropRate':dropRate}
|
| | | #发送封包
|
| | | SendEventPack("GlobalDropRate", dataDict, curPlayer)
|
| | | return
|
| | |
|
| | | ## 玩家上线成就检查
|
| | | # @return
|
| | | def DR_CheckOldPlayerSuccess(curPlayer):
|
| | | dataDict = {'PlayerID':curPlayer.GetPlayerID(), "PlayerName":curPlayer.GetPlayerName(), |
| | | 'AccID':curPlayer.GetAccID()}
|
| | | |
| | | #发送封包
|
| | | SendEventPack("CheckOldPlayerSuccess", dataDict, curPlayer)
|
| | | return
|
| | |
|
| | | ## 玩家境界升级
|