From 23d372d54c4c0c5a7ccde5707cfd3186c966a669 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期三, 15 一月 2025 15:00:41 +0800 Subject: [PATCH] 10371 【越南】【英文】【BT】【砍树】所有寻宝类型都加上每日寻宝次数上限 --- ServerPython/CoreServerGroup/GameServer/Script/Player/CreateRole.py | 34 ++++++++++++++++++++++------------ 1 files changed, 22 insertions(+), 12 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/Player/CreateRole.py b/ServerPython/CoreServerGroup/GameServer/Script/Player/CreateRole.py index 2692310..1464b90 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/Player/CreateRole.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/Player/CreateRole.py @@ -116,9 +116,9 @@ 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() @@ -151,6 +151,7 @@ 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 @@ -162,14 +163,21 @@ # return #----------------------脸型校验 - #=========================================================================== - # if sendPack_Face not in ChConfig.Def_RoleFace[sendPack_Job][sendPack_Sex - 1]: - # #脸型错误 - # GameWorld.Log("Face = %d Error!,踢玩家下线"%(sendPack_Face) , curPlayerID) - # curPlayer.Kick(IPY_GameServer.disCreateRoleFaceError) - # return - #=========================================================================== - + if sendPack_Face: + faceIpyData = IpyGameDataPY.GetIpyGameData("PlayerFace", sendPack_Face) + if not faceIpyData or not faceIpyData.GetUnlockDefault(): + #curPlayer.Kick(IPY_GameServer.disCreateRoleFaceError) + 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 + #---------------------五行检查 #=========================================================================== # if sendPack_PlayerType not in range(1 , 5 + 1): @@ -240,7 +248,9 @@ IPY_GameServer.TYPE_Price_Gold_Paper, #默认使用金票 (金子/金票) IPY_GameServer.TYPE_Price_Silver_Money, #默认使用银子 (银子/银票) 80, #默认自动回血设定 inputHPRestoreSetting - 80 #默认自动回魔设定 inputMPRestoreSetting + 80, #默认自动回魔设定 inputMPRestoreSetting + 0, #roleType + 0 #modelMark ) # 创角流向 -- Gitblit v1.8.0