Files
fc/server/tools/gen_proto/cfg/proto_268.erl
T
2026-05-23 22:10:14 +08:00

234 lines
8.6 KiB
Erlang
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
%%----------------------------------------------------
%% 公会秘境
%%
%% @author linguohui
%%----------------------------------------------------
-module(proto_268).
-export([info/0, cfg/0]).
-include("protocol.hrl").
info() -> {
"公会秘境"
,["guild_secret_area.hrl", "formation.hrl", "combat.hrl"]
}.
-spec cfg() -> [#rpc{}].
cfg() ->
[
#rpc{
code = 26800
,log_title = "公会秘境基础信息"
,req_desc = "公会秘境基础信息"
,req = [
]
,reply_desc = "公会秘境基础信息"
,reply = [
{uint32, count, "剩余挑战次数"}
,{uint32, last_buy_time, "剩余购买次数"}
,{array, tuple, loss_list, "下一次购买需要的资产", [
{uint32, loss_id, "资产Id"}
,{uint32, num, "资产数量"}
]}
,{rec, guild_secret_area, guild_secret_area, [
{rec, boss_detail, boss_detail, [
{uint32, bid, "boss的base_id, 如果当前没有挑战 全部数据为0"}
,{uint32, hp, "当前血量"}
,{uint32, max_hp, "最大血量"}
,{uint32, end_time, "结束的时间戳"}
,{uint32, count_time, "结算时间戳"}
]}
,{array, single, boss_list, "可讨伐boss的id列表",[
{uint32, boss_id, "可讨伐boss的id"}
]}
]}
,{array, single, progress_reward, "已领取的阶段奖励序号", [
{uint32, order, "序号"}
]}
,{uint32, dps, "上一次挑战的伤害量"}
,{uint8, button, "按钮显示 1:开始讨伐, 0挑战"}
,{uint8, is_reward, "是否有资格领取阶段奖励 是:1 否:0"}
]
}
,#rpc{
code = 26801
,log_title = "公会秘境设置Boss"
,req_desc = "公会秘境设置Boss"
,req = [
{uint32, boss_id, "boss基础id"}
]
,reply_desc = "公会秘境基础信息"
,reply = [
{uint8, flag, "成功1 失败0"}
,{string, msg, "信息"}
]
}
, #rpc{
code = 26802
,log_title = "挑战公会秘境Boss"
,req_desc = "挑战公会秘境Boss"
,req = [
{uint32, boss_id, "BossID"}
,{uint16, formation_type, "阵法类型"}
,{array, formation_pos, pos_info, "阵法信息", [
{uint8, pos, "位置"}
,{uint32, id, "伙伴id"}
]}
,{uint32, hallows_id, "神器id"}
]
,reply_desc = "挑战公会秘境Boss结果"
,reply = [
{uint8, flag, "成功1 失败0"}
,{string, msg, "附加信息"}
,{uint8, combat_type, "战斗类型"}
]
}
, #rpc{
code = 26803
,log_title = "购买挑战次数"
,req_desc = "购买挑战次数"
,req = [
{uint32, boss_id, "boss基础id"}
]
,reply_desc = "购买挑战次数结果"
,reply = [
{uint8, flag, "成功1 失败0"}
,{string, msg, "附加信息"}
,{uint32, count, "剩余挑战次数"}
,{uint32, last_buy_time, "剩余购买次数"}
]
}
, #rpc{
code = 26804
,log_title = "领取阶段奖励"
,req_desc = "领取阶段奖励"
,req = [
{uint32, boss_id, "boss基础id"}
,{uint32, number, "序号"}
]
,reply_desc = "领取阶段奖励结果"
,reply = [
{uint8, flag, "成功1 失败0"}
,{string, msg, "附加信息"}
,{uint32, number, "序号"}
]
}
, #rpc{
code = 26805
,log_title = "扫荡公会秘境Boss"
,req_desc = "扫荡公会秘境Boss"
,req = [
{uint32, boss_id, "BossID"}
]
,reply_desc = "扫荡公会秘境Boss结果"
,reply = [
{uint8, flag, "成功1 失败0"}
,{string, msg, "附加信息"}
]
}
, #rpc{
code = 26806
,log_title = "获得秘境Boss排行榜"
,req_desc = "获得秘境Boss排行榜"
,req = [
{uint32, boss_id, "BossID"}
,{uint32, num, "0:前三名, 1:全部"}
]
,reply_desc = "秘境Boss排行榜"
,reply = [
{uint32, boss_id, "BossID"},
{array, role_rank, dps_list, "伤害排行榜", [
{tuple, r_id, [
{uint32, rid, "ID"}
,{string, srv_id, "服务器ID"}
]}
,{uint32, lev, "等级"}
,{uint32, face_id, "头像id"}
,{uint32, avatar_bid, "头像框基础Id"}
,{string, name, "角色名"}
,{uint32, dps, "伤害量"}
,{uint32, rank, "排名"}
,{uint32, max_dps, "最大伤害量"}
,{uint32, power, "战力"}
,{uint32, face_update_time, "自定义头像时间"}
,{string, face_file, "自定义头像"}
]}
]
}
, #rpc{
code = 26807
,log_title = "讨伐开始弹窗"
,req_desc = "讨伐开始弹窗"
,req = []
,reply_desc = "讨伐开始弹窗"
,reply = [
{uint8, flag, "是否要弹窗 0:弹 1:不弹"}
,{uint32, end_time, "剩余时间戳"}
]
}
, #rpc{
code = 26808
,log_title = "boss结算界面"
,req_desc = "boss结算界面"
,req = []
,reply_desc = "boss结算界面"
,reply = [
{uint8, flag, "是否成功 1:成功 0:失败"}
,{uint32, time, "通关时间"}
,{array, tuple, market_reward, "宝库奖励", [
{uint32, id, "物品id"}
,{uint32, num, "物品数量"}
]}
,{array, tuple, boss_reward, "讨伐奖励", [
{uint32, bid, "物品id"}
,{uint32, num, "物品数量"}
]}
]
}
, #rpc{
code = 26809
,log_title = "Boss战斗结果"
,req_desc = "Boss战斗结果"
,req = []
,reply_desc = "Boss战斗结果"
,reply = [
{uint8, result, "战斗结果(1:胜利 2:失败)"}
,{array, tuple, reward, "奖励", [
{uint32, bid, "物品id"}
,{uint32, num, "物品数量"}
]}
,{array, tuple, hurt_statistics, "伤害统计", [
{uint8, type, "1:进攻方 2:被攻击方"}
,{array, partner_hurt, partner_hurts, "伤害统计", [
{tuple, master_id, [
{uint32, rid, "拥有者ID"}
,{string, srvid, "拥有者服务器id"}
]}
,{uint32, id, id, "英雄bid"}
,{uint32, bid, bid, "英雄bid"}
,{uint32, star, star, "星级"}
,{uint32, lev, lev, "等级"}
,{uint32, camp_type, camp_type, "英雄阵营"}
,{uint32, dps, dps, "英雄伤害"}
,{uint32, cure, cure, "英雄治疗量"}
,{array, tuple, ext_data, "额外参数", [
{uint32, key, "键(5:皮肤id"}
,{uint32, val, ""}
]}
,{uint32, be_hurt, be_hurt, "英雄承受伤害"}
]}
]}
]
}
,#rpc{
code = 26810
,log_title = "公会活跃度"
,req_desc = "公会活跃度"
,req = []
,reply_desc = "公会活跃度"
,reply = [
{uint32, vitality, "活跃度"}
]
}
].