| | |
| | | SendEventPack("SetMoneyInWarehouse", dataDict, curPlayer)
|
| | | return
|
| | |
|
| | |
|
| | | ## 出售物品获得金钱 |
| | | # @param curPlayer: 玩家实例
|
| | | # @param moneyType: 金钱类型
|
| | | # @param moneyCount: 金钱数量
|
| | | # @return: None
|
| | | def DR_GetMoneyBySellPackItem(curPlayer, moneyType, moneyCount):
|
| | |
|
| | | dataDict = {'PlayerID':curPlayer.GetPlayerID(), 'PlayerName':curPlayer.GetPlayerName(), |
| | | 'AccID':curPlayer.GetAccID(), |
| | | 'MoneyType':moneyType, 'MoneyCount':moneyCount, |
| | | 'PlayerMoneyCount':PlayerControl.GetMoney(curPlayer, moneyType)}
|
| | |
|
| | | #发送封包
|
| | | SendEventPack("GetMoneyBySellPackItem", dataDict, curPlayer)
|
| | | return
|
| | |
|
| | | def DR_CTGError(curPlayer, errorInfo, addDict):
|
| | | ## CTG异常信息
|
| | | dataDict = {'PlayerID':curPlayer.GetPlayerID(), 'PlayerName':curPlayer.GetPlayerName(),
|
| | |
| | | return
|
| | |
|
| | |
|
| | | ## 出售指定背包物品
|
| | | # @param curPlayer: 玩家实例
|
| | | # @param dataDict: 记录信息字典
|
| | | # @return: |
| | | def DR_SellPackItem(curPlayer, dataDict):
|
| | | dataDict.update({"PlayerID":curPlayer.GetPlayerID(), "PlayerName":curPlayer.GetPlayerName(), |
| | | "AccID":curPlayer.GetAccID()})
|
| | | SendEventPack("SellPackItem", dataDict, curPlayer)
|
| | | return
|
| | |
|
| | |
|
| | | ## 删除背包物品
|
| | | # @param curPlayer: 玩家实例
|
| | | # @param dataDict: 记录信息字典
|
| | |
| | | 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: 玩家实例
|
| | |
| | | '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
|
| | |
|
| | | ## 玩家境界升级
|