diff --git a/common/constant.go b/common/constant.go index 686fde0..f47485d 100644 --- a/common/constant.go +++ b/common/constant.go @@ -811,9 +811,10 @@ var ( ) const ( - AttributeGuideStep = 1 // 引导步骤 - AttributeGuideSkip = 2 // 跳过引导 - AttributeGuideTest = 3 // 测试引导 + AttributeGuideStep = 1 // 引导步骤 + AttributeGuideSkip = 2 // 跳过引导 + AttributeGuideTest = 3 // 测试引导 + AttributeGuideCustom = 4 // 竞技馆引导页 ) const ( diff --git a/protocol/player/player.proto b/protocol/player/player.proto index a736228..00af367 100644 --- a/protocol/player/player.proto +++ b/protocol/player/player.proto @@ -1344,7 +1344,7 @@ message WindowsInfo{ //PACKET_CSUpdateAttribute message CSUpdateAttribute{ - int32 Tp = 1; // 1.更新引导阶段 2.跳过引导 3.更新引导状态(测试用) + int32 Tp = 1; // 1.更新引导阶段 2.跳过引导 3.更新引导状态(测试用) 4.标记竞技馆引导页面已经显示过 repeated int64 Param = 2; int32 GuideId = 3; //引导ID 1-新手引导 2-竞技馆引导 } @@ -1364,7 +1364,7 @@ message GuideInfo { int32 On = 2; // 引导开关 1开启 2关闭 int32 Skip = 3; // 引导跳过开关 1开启 2关闭 int32 GuideId = 4; // 引导类型 1-新手引导 2-竞技馆引导 - repeated ItemInfo Awards = 5; // 进入房间消耗 + repeated ItemInfo Awards = 5; //奖励 int32 MaxStep = 6; // 步骤长度 int32 AwardStep = 7;//领奖步骤 } diff --git a/worldsrv/action_player.go b/worldsrv/action_player.go index 1c853d5..f9945dc 100644 --- a/worldsrv/action_player.go +++ b/worldsrv/action_player.go @@ -3249,6 +3249,11 @@ func CSUpdateAttribute(s *netlib.Session, packetId int, data interface{}, sid in pack.OpRetCode = player_proto.OpResultCode_OPRC_Sucess send() return nil + case common.AttributeGuideCustom: + p.MarkFlag(common.PlayerFlagsGuideCustom) + pack.OpRetCode = player_proto.OpResultCode_OPRC_Sucess + send() + return nil } return nil }