| | |
| | | sendPack_Sex = 1 #sendPack.GetSex()
|
| | | sendPack_Hair = 10001 #sendPack.GetHair()
|
| | | sendPack_HairColor = 1 #sendPack.GetHairColor()
|
| | | sendPack_Face = 10005 #sendPack.GetFace()
|
| | | sendPack_FacePic = 0 # 固定为0,需与客户端配置一致
|
| | | serverID = 1 #sendPack.GetFacePic() # 脸谱作为serverID用
|
| | | sendPack_Face = sendPack.GetFace()
|
| | | sendPack_FacePic = sendPack.GetFacePic()
|
| | | serverID = 1
|
| | | sendPack_PlayerType = 1 #sendPack.GetPlayerType()
|
| | | sendPack_Job = sendPack.GetJob()
|
| | |
|
| | |
| | | openJob = IpyGameDataPY.GetFuncEvalCfg("OpenJob", 1)
|
| | | if sendPack_Job not in openJob:
|
| | | #curPlayer.Kick(IPY_GameServer.disCreateRoleJobError)
|
| | | GameWorld.ErrLog("创角异常职业! sendPack_Job=%s" % sendPack_Job, curPlayerID)
|
| | | PlayerControl.NotifyCode(curPlayer, "CreatUnusual")
|
| | | return
|
| | |
|
| | |
| | | # return
|
| | |
|
| | | #----------------------脸型校验
|
| | | #===========================================================================
|
| | | # if sendPack_Face not in ChConfig.Def_RoleFace[sendPack_Job][sendPack_Sex - 1]:
|
| | | # #脸型错误
|
| | | # GameWorld.Log("Face = %d Error!,踢玩家下线"%(sendPack_Face) , curPlayerID)
|
| | | if sendPack_Face:
|
| | | faceIpyData = IpyGameDataPY.GetIpyGameData("PlayerFace", sendPack_Face)
|
| | | if not faceIpyData or not faceIpyData.GetUnlockDefault():
|
| | | # curPlayer.Kick(IPY_GameServer.disCreateRoleFaceError)
|
| | | # return
|
| | | #===========================================================================
|
| | | GameWorld.ErrLog("创角异常头像! sendPack_Face=%s" % sendPack_Face, curPlayerID)
|
| | | PlayerControl.NotifyCode(curPlayer, "CreatUnusual")
|
| | | return
|
| | | if sendPack_FacePic:
|
| | | facePicIpyData = IpyGameDataPY.GetIpyGameData("PlayerFacePic", sendPack_FacePic)
|
| | | if not facePicIpyData or not facePicIpyData.GetUnlockDefault():
|
| | | #curPlayer.Kick(IPY_GameServer.disCreateRoleFaceError)
|
| | | GameWorld.ErrLog("创角异常头像框! sendPack_FacePic=%s" % sendPack_FacePic, curPlayerID)
|
| | | PlayerControl.NotifyCode(curPlayer, "CreatUnusual")
|
| | | return
|
| | |
|
| | | #---------------------五行检查
|
| | | #===========================================================================
|