From 11e82d25c1aa5b91706689d0414fdc893ed52627 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期六, 13 四月 2019 11:11:38 +0800 Subject: [PATCH] 6459 【后端】【2.0】缥缈仙域开发单(妖王初版) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py | 22 +++++++++++++++++++--- 1 files changed, 19 insertions(+), 3 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py index 03288e3..4fa6942 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py @@ -230,13 +230,26 @@ #struct tagCMClientStartCustomScene #{ # tagHead Head; +# DWORD MapID; +# WORD FuncLineID; #}; def OnClientStartCustomScene(index, clientData, tick): curPlayer = GameWorld.GetPlayerManager().GetPlayerByIndex(index) - DoEnterCustomScene(curPlayer) + DoEnterCustomScene(curPlayer, clientData.MapID, clientData.FuncLineID) return -def DoEnterCustomScene(curPlayer): +#// A2 33 前端退出自定义场景 #tagCMClientExitCustomScene +# +#struct tagCMClientExitCustomScene +#{ +# tagHead Head; +#}; +def OnClientExitCustomScene(index, clientData, tick): + curPlayer = GameWorld.GetPlayerManager().GetPlayerByIndex(index) + DoExitCustomScene(curPlayer) + return + +def DoEnterCustomScene(curPlayer, mapID, lineID): ## 进入自定义场景状态 curPlayer.SetCanAttack(False) curPlayer.SetVisible(False) @@ -247,6 +260,8 @@ curPlayer.SetDict(ChConfig.Def_PlayerKey_ClientCustomScene, 1) GameWorld.Log("玩家开始自定义场景!", curPlayer.GetPlayerID()) + if mapID: + FBLogic.OnEnterCustomScene(curPlayer, mapID, lineID) return def DoExitCustomScene(curPlayer): @@ -474,7 +489,8 @@ # 离线过久恢复为非跨服状态 if PlayerControl.GetCrossMapID(curPlayer): PlayerControl.SetCrossMapID(curPlayer, 0) - + PyGameData.g_customFBPrizeInfo.pop(curPlayer.GetPlayerID(), None) + SyncGuideState(curPlayer) #上线检查一次装备属性 -- Gitblit v1.8.0