| | |
| | | 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]
|
| | |
|
| | |
| | | type2 = billBoardData.GetType2()
|
| | | value1 = billBoardData.GetValue1()
|
| | | value2 = billBoardData.GetValue2()
|
| | | value3 = billBoardData.GetValue3()
|
| | | value4 = billBoardData.GetValue4()
|
| | | value5 = billBoardData.GetValue5()
|
| | | value6 = billBoardData.GetValue6()
|
| | | value7 = billBoardData.GetValue7()
|
| | | value8 = billBoardData.GetValue8()
|
| | | cmpValue = billBoardData.GetCmpValue()
|
| | | cmpValue2 = billBoardData.GetCmpValue2()
|
| | | cmpValue3 = billBoardData.GetCmpValue3()
|
| | | userData = billBoardData.GetUserData()
|
| | |
|
| | | dataDict = {"BillboardType":billboardType,
|
| | | "Place":index, "ObjID":objID, "ObjID2":objID2, "Name1":name1,
|
| | | "Name2":name2, "Type2":type2, "Value1":value1, "Value2":value2,
|
| | | "CmpValue":cmpValue, "CmpValue2":cmpValue2, "CmpValue3":cmpValue3,
|
| | | "CmpValue":cmpValue, "CmpValue2":cmpValue2, "CmpValue3":cmpValue3, |
| | | "Value3":value3, "Value4":value4, "Value5":value5, "Value6":value6, |
| | | "Value7":value7, "Value8":value8, "UserData":userData
|
| | | }
|
| | |
|
| | | 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
|