| | |
| | | # @change: "2014-12-01 19:10" ljd 增加领取合服活动登陆奖励事件记录
|
| | | # @change: "2014-12-21 23:00" hxp 增加功能奖励物品
|
| | | # @change: "2014-12-23 00:30" hxp 充值前/消费时流向信息扩展(增加各大功能信息)
|
| | | # @change: "2015-01-27 22:30" hxp 增加转生等级变更流向
|
| | | # @change: "2015-02-05 15:00" hxp 充值送礼流向扩展信息字典
|
| | | # @change: "2015-02-27 21:00" hxp 增加大师等级升级流向; 重新开启技能学习流向
|
| | | # @change: "2015-03-30 14:00" hxp 增加击杀NPC流向
|
| | |
| | | #发送封包
|
| | | SendEventPack("CTGError", dataDict, curPlayer)
|
| | | GameWorld.ErrLog("%s. %s" % (errorInfo, addDict), curPlayer.GetPlayerID())
|
| | | |
| | | GameWorld.SendGameStateMail("CTGError:%s - %s"%(errorInfo, dataDict))
|
| | | return
|
| | |
|
| | | def DR_CTGOK(curPlayer, addDict):
|
| | |
| | | #发送封包
|
| | | SendEventPack("PlayerCoinAfterCharge", dataDict, curPlayer)
|
| | | return
|
| | | |
| | | |
| | | ## 玩家商城购买物品
|
| | | # @param curPlayer: 玩家实例
|
| | | # @param buyItemID: 购买物品id
|
| | | # @param buyItemCount: 购买物品数量
|
| | | # @param buyItemGUID: GUID
|
| | | # @return: None
|
| | | def DR_PlayerSupermarket(curPlayer, buyItemID, buyItemCount, buyItemGUID):
|
| | |
|
| | | dataDict = {'PlayerID':curPlayer.GetPlayerID(), 'PlayerName':curPlayer.GetPlayerName(), |
| | | 'AccID':curPlayer.GetAccID(), 'ItemID':buyItemID, 'ItemCount':buyItemCount, |
| | | 'ItemGUID':buyItemGUID}
|
| | |
|
| | | #发送封包
|
| | | SendEventPack("PlayerSupermarket", dataDict, curPlayer)
|
| | | return
|
| | |
|
| | |
|
| | | ## 玩家升级
|
| | | # @param curPlayer: 玩家实例
|
| | |
| | |
|
| | | #发送封包
|
| | | SendEventPack("PlayerUpgrade", dataDict, curPlayer)
|
| | | return
|
| | |
|
| | | ## 玩家转生等级变更
|
| | | # @param curPlayer: 玩家实例
|
| | | # @param reincarnationLvBefore: 之前转生次数
|
| | | # @param playerLVExBefore: 之前转生等级
|
| | | # @param eventName: |
| | | # @return: None
|
| | | def DR_PlayerLVExChange(curPlayer, reincarnationLvBefore, playerLVExBefore, eventName, addDataDict={}):
|
| | |
|
| | | dataDict = {'PlayerID':curPlayer.GetPlayerID(), 'PlayerName':curPlayer.GetPlayerName(), |
| | | 'AccID':curPlayer.GetAccID(), 'ReincarnationLv':curPlayer.GetReincarnationLv(), |
| | | 'PlayerLV':curPlayer.GetLV(), 'PlayerLVEx':curPlayer.GetLVEx(), |
| | | 'TotalExp':curPlayer.GetTotalExp(), 'ReincarnationLvBefore':reincarnationLvBefore, |
| | | 'PlayerLVExBefore':playerLVExBefore, "EventName":eventName}
|
| | | |
| | | dataDict.update(addDataDict)
|
| | |
|
| | | #发送封包
|
| | | SendEventPack("PlayerLVExChange", dataDict, curPlayer)
|
| | | return
|
| | |
|
| | | ## 玩家大师等级变更
|
| | |
| | | elif moneyType in ShareDefine.TYPE_Price_CurrencyDict:
|
| | | SendEventPack("GiveCurrency_%s" % moneyType, dataDict)
|
| | |
|
| | | return
|
| | |
|
| | | ## 获得金钱失败
|
| | | def DR_GiveMoneyError(curPlayer, priceType, value, giveType, addDataDict):
|
| | | dataDict = {'PlayerID':curPlayer.GetPlayerID(), "PlayerName":curPlayer.GetPlayerName(), |
| | | 'AccID':curPlayer.GetAccID(), "GiveType":giveType, "GiveValue":value, "AddDataDict":addDataDict}
|
| | | SendEventPack("GiveMoneyError_%s" % priceType, dataDict, curPlayer)
|
| | | return
|
| | |
|
| | | ## 获得物品
|
| | |
| | |
|
| | | #发送封包
|
| | | SendEventPack("TreasureResult", dataDict, curPlayer)
|
| | | return
|
| | |
|
| | | ## 消费VIP升级记录
|
| | | # @param curPlayer
|
| | | # @param lastLV ԭVIPLV
|
| | | # @param curExp 当前VIP经验
|
| | | # @param addExp 增加VIP经验
|
| | | # @param costType 花费类型
|
| | | # @param costGold 花费数
|
| | | # @return: None
|
| | | def DR_PlayerCostVIPLV(curPlayer, lastLV, curExp, addExp, costType, costGold):
|
| | | |
| | | dataDict = {'PlayerID':curPlayer.GetPlayerID(), 'PlayerName':curPlayer.GetPlayerName(), |
| | | 'AccID':curPlayer.GetAccID(), 'VIPLv':curPlayer.GetVIPLv(), 'lastVIPLv':lastLV,
|
| | | 'curExp':curExp, 'addExp':addExp, 'costType':costType, 'costGold':costGold}
|
| | |
|
| | | #发送封包
|
| | | SendEventPack("PlayerCostVIPLV", dataDict, curPlayer)
|
| | | return
|
| | |
|
| | | ## 玩家提交bug及建议
|