|  |  |  | 
|---|
|  |  |  | 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 | 
|---|