|  |  |  | 
|---|
|  |  |  | import GameWorld | 
|---|
|  |  |  | import datetime | 
|---|
|  |  |  | import ShareDefine | 
|---|
|  |  |  | import PlayerControl | 
|---|
|  |  |  | import ChConfig | 
|---|
|  |  |  | #=============================================================================== | 
|---|
|  |  |  | ##发送事件记录给EventShell | 
|---|
|  |  |  | 
|---|
|  |  |  | if curPlayer: | 
|---|
|  |  |  | pid = curPlayer.GetDictByKey(ChConfig.Def_PlayerKey_PlayerFromPID) | 
|---|
|  |  |  | dataDict["pid"] = pid | 
|---|
|  |  |  | dataDict["fightPower"] = curPlayer.GetFightPower() | 
|---|
|  |  |  | dataDict["fightPower"] = PlayerControl.GetFightPower(curPlayer) | 
|---|
|  |  |  | dataDict["PlayerLV"] = curPlayer.GetLV() | 
|---|
|  |  |  | dataDict["IP"] = curPlayer.GetIP() | 
|---|
|  |  |  |  | 
|---|
|  |  |  | dataDict["time"] = str(datetime.datetime.today()).split(".")[0] | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | #  @param familyName: 家族名 | 
|---|
|  |  |  | #  @param familyID: 家族ID | 
|---|
|  |  |  | #  @return None | 
|---|
|  |  |  | def DR_CreateFamily(accID, playerID, playerNaem, familyName, familyID): | 
|---|
|  |  |  | def DR_CreateFamily(accID, playerID, playerNaem, familyName, familyID, creatFamilyTimes): | 
|---|
|  |  |  |  | 
|---|
|  |  |  | dataDict = {'AccID':accID, 'PlayerID':playerID, "PlayerName":playerNaem, 'FamilyName':familyName, | 
|---|
|  |  |  | 'FamilyID':familyID} | 
|---|
|  |  |  | 'FamilyID':familyID, 'creatFamilyTimes':creatFamilyTimes} | 
|---|
|  |  |  |  | 
|---|
|  |  |  | #发送封包 | 
|---|
|  |  |  | SendEventPack("CreateFamily", dataDict) | 
|---|
|  |  |  | 
|---|
|  |  |  | dataDict.update(addDataDict) | 
|---|
|  |  |  |  | 
|---|
|  |  |  | #发送封包 | 
|---|
|  |  |  | SendEventPack(eventName, dataDict) | 
|---|
|  |  |  | SendEventPack("%s_%s" % (eventName, billboardType), dataDict) | 
|---|
|  |  |  | return | 
|---|
|  |  |  |  | 
|---|
|  |  |  | ## GM执行命令操作 | 
|---|
|  |  |  | 
|---|
|  |  |  | SendEventPack("CompensationPersonal", dataDict) | 
|---|
|  |  |  | return | 
|---|
|  |  |  |  | 
|---|
|  |  |  | ## 删除个人补偿流向 | 
|---|
|  |  |  | #  @param curPlayerID, GUID, ItemDictList | 
|---|
|  |  |  | #  @return: None | 
|---|
|  |  |  | def DR_DelPersonalCompensation(playerID, GUID, eventName): | 
|---|
|  |  |  | dataDict = {'PlayerID':playerID, 'GUID':GUID, 'eventName':eventName} | 
|---|
|  |  |  | #发送封包 | 
|---|
|  |  |  | SendEventPack("CompensationPersonalDel", dataDict) | 
|---|
|  |  |  | return | 
|---|
|  |  |  |  | 
|---|
|  |  |  | ## 添加全服补偿流向 | 
|---|
|  |  |  | #  @param GUID, ItemDictList | 
|---|
|  |  |  | #  @return: None | 
|---|
|  |  |  | 
|---|
|  |  |  | dataDict = {'GUID':GUID, "eventName":eventName} | 
|---|
|  |  |  | dataDict.update(addDict) | 
|---|
|  |  |  | SendEventPack("CompensationEntire", dataDict) | 
|---|
|  |  |  | return | 
|---|
|  |  |  |  | 
|---|
|  |  |  | ## 发送充值排行榜特惠活动奖励邮件记录流向 | 
|---|
|  |  |  | #  @param curPlayerID: 玩家ID | 
|---|
|  |  |  | #  @param GUID: | 
|---|
|  |  |  | #  @param actionID: 活动ID | 
|---|
|  |  |  | #  @param actionValue: 活动编号 | 
|---|
|  |  |  | #  @param order: 奖励排名 | 
|---|
|  |  |  | #  @param rewardItemList: 奖励物品列表 | 
|---|
|  |  |  | #  @return None | 
|---|
|  |  |  | def DR_SendRechareRankTeHuiRewardMail(curPlayerID, GUID, actionID, actionValue, order, rewardItemList): | 
|---|
|  |  |  |  | 
|---|
|  |  |  | dataDict = {'PlayerID':curPlayerID, 'GUID':GUID, 'ActionID':actionID, 'ActionValue':actionValue, | 
|---|
|  |  |  | 'Order':order, 'ItemList':rewardItemList} | 
|---|
|  |  |  |  | 
|---|
|  |  |  | #发送封包 | 
|---|
|  |  |  | SendEventPack("SendRechareRankTeHuiRewardMail", dataDict) | 
|---|
|  |  |  | return | 
|---|
|  |  |  |  | 
|---|
|  |  |  | ## 发送消费排行榜特惠活动奖励邮件记录流向 | 
|---|
|  |  |  | #  @param curPlayerID: 玩家ID | 
|---|
|  |  |  | #  @param GUID: | 
|---|
|  |  |  | #  @param actionID: 活动ID | 
|---|
|  |  |  | #  @param actionValue: 活动编号 | 
|---|
|  |  |  | #  @param order: 奖励排名 | 
|---|
|  |  |  | #  @param rewardItemList: 奖励物品列表 | 
|---|
|  |  |  | #  @return None | 
|---|
|  |  |  | def DR_SendCostRankTeHuiRewardMail(curPlayerID, GUID, actionID, actionValue, order, rewardItemList): | 
|---|
|  |  |  |  | 
|---|
|  |  |  | dataDict = {'PlayerID':curPlayerID, 'GUID':GUID, 'ActionID':actionID, 'ActionValue':actionValue, | 
|---|
|  |  |  | 'Order':order, 'ItemList':rewardItemList} | 
|---|
|  |  |  |  | 
|---|
|  |  |  | #发送封包 | 
|---|
|  |  |  | SendEventPack("SendCostRankTeHuiRewardMail", dataDict) | 
|---|
|  |  |  | return | 
|---|
|  |  |  |  | 
|---|