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

471 lines
16 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 liufenglin 240039421@qq.com
%%----------------------------------------------------
-module(proto_252).
-export([info/0,cfg/0]).
-include("protocol.hrl").
info() ->
{
"天界副本"
,["dungeon_heaven.hrl", "combat.hrl", "formation.hrl", "holy_eqm.hrl"]
}.
cfg() ->[
#rpc{
code = 25200
,log_title = "天界副本章节奖励信息"
,req_desc = "天界副本章节奖励信息"
,req = []
,reply_desc = "天界副本章节奖励信息"
,reply = [
{uint8, count, "剩余挑战次数"}
,{uint8, buy_count, "今日已购买挑战次数"}
,{uint32, max_dun_id, "最大通关副本id"}
,{array, tuple, chapter_info, "章节奖励信息", [
{uint32, id, "id"}
,{uint8, all_star, "总星数"}
,{array, tuple, award_info, "章节奖励信息", [
{uint8, id, "奖励id"}
,{uint8, flag, "奖励领取(0:未达成 1:可领取 2:已领取)"}
]}
,{uint8, is_finish, "是否通关(0:未通关 1:通关 2:满星通关)"}
]}
]
}
,#rpc{
code = 25201
,log_title = "章节副本信息"
,req_desc = "章节副本信息"
,req = [
{uint32, id, "章节id"}
]
,reply_desc = "章节副本信息"
,reply = [
{uint32, id, "章节id"}
,{uint8, all_star, "总星数"}
,{array, heaven_dun, dun_info, "章节副本信息", [
{uint32, id, "关卡序号"}
,{uint32, state, "是否可挑战"}
,{uint32, star, "通关星数"}
,{array, tuple, star_info, "星数任务信息", [
{uint8, star_id, "id"}
,{uint8, flag, "是否已完成(0:未完成 1:已完成)"}
]}
]}
]
}
,#rpc{
code = 25203
,log_title = "推送章节奖励信息变化"
,req_desc = "推送章节奖励信息变化"
,req = []
,reply_desc = "推送章节奖励信息变化"
,reply = [
{uint8, count, "剩余挑战次数"}
,{uint8, buy_count, "今日已购买挑战次数"}
,{uint32, max_dun_id, "最大通关副本id"}
,{array, tuple, chapter_info, "章节奖励信息", [
{uint32, id, "id"}
,{uint8, all_star, "总星数"}
,{array, tuple, award_info, "章节奖励信息", [
{uint8, id, "奖励id"}
,{uint8, flag, "奖励领取(0:未达成 1:可领取 2:已领取)"}
]}
,{uint8, is_finish, "是否通关(0:未通关 1:通关 2:满星通关)"}
]}
]
}
,#rpc{
code = 25204
,log_title = "推送章节副本信息变化"
,req_desc = "推送章节副本信息变化"
,req = [
]
,reply_desc = "推送章节副本信息变化"
,reply = [
{uint32, id, "章节id"}
,{array, heaven_dun, dun_info, "有变化的副本信息", [
{uint32, id, "关卡序号"}
,{uint32, state, "是否可挑战"}
,{uint32, star, "通关星数"}
,{array, tuple, star_info, "星数任务信息", [
{uint8, star_id, "id"}
,{uint8, flag, "是否已完成(0:未完成 1:已完成)"}
]}
]}
]
}
,#rpc{
code = 25205
,log_title = "挑战副本"
,req_desc = "挑战副本"
,req = [
{uint32, id, "章节id"}
,{uint32, order_id, "关卡序号"}
]
,reply = [
{uint8, code, "结果状态(0:失败 1:成功)"}
,{string, msg, "结果信息"}
]
}
,#rpc{
code = 25206
,log_title = "推送战斗结算"
,req_desc = "推送战斗结算"
,req = [
]
,reply_desc = "推送战斗结算"
,reply = [
{uint8, result, "1:胜利 2 失败"}
,{uint32, id, "章节id"}
,{uint32, order_id, "关卡序号"}
,{uint32, combat_type, "战斗类型"}
,{array, tuple, star_info, "星数信息", [
{uint32, id, "星数任务id"}
,{uint32, state, "完成状态(0:未完成 1:已完成)"}
]}
,{array, tuple, award, "奖励", [
{uint32, item_id, "物品id"}
,{uint32, num, "数量"}
]}
,{array, tuple, all_hurt_statistics, "伤害统计", [
{uint8, type, "第几次战斗"}
,{uint8, a_round, "攻击方队伍编号"}
,{uint8, b_round, "防守方队伍编号"}
,{string, target_role_name, "对方名字"}
,{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 = 25207
,log_title = "限时招募信息"
,req_desc = "购买挑战次数"
,req = [
]
,reply = [
{uint8, code, "结果状态(0:失败 1:成功)"}
,{string, msg, "结果信息"}
,{uint8, count, "剩余挑战次数"}
,{uint8, buy_count, "今日已购买挑战次数"}
]
}
,#rpc{
code = 25208
,log_title = "扫荡"
,req_desc = "扫荡"
,req = [
{uint32, id, "章节id"}
,{uint32, order_id, "关卡序号"}
]
,reply = [
{uint8, code, "结果状态(0:失败 1:成功)"}
,{string, msg, "结果信息"}
,{uint8, count, "剩余挑战次数"}
]
}
,#rpc{
code = 25210
,log_title = "请求神装副本功能阵法"
,req_desc = "请求神装副本功能阵法"
,req = [
{uint8, type, "类型(1:普通关 2:boss关)"}
]
,reply_desc = "请求神装副本功能阵法"
,reply = [
{uint8, type, "类型(1:普通关 2:boss关)"}
,{array, tuple, formations, "阵容", [
{uint8, order, "队伍序号"}
,{uint8, formation_type, "阵法类型"}
,{array, formation_pos, pos_info, "站位信息", [
{uint8, pos, "位置"}
,{uint32, id, "伙伴ID"}
]}
,{uint32, hallows_id, "使用的圣器id(没有传0)"}
]}
]
}
,#rpc{
code = 25211
,log_title = "设置神装副本功能阵法"
,req_desc = "设置神装副本功能阵法"
,req = [
{uint8, type, "类型(1:普通关 2:boss关)"}
,{array, tuple, formations, "阵容", [
{uint8, order, "队伍序号"}
,{uint8, formation_type, "阵法类型"}
,{array, tuple, pos_info, "站位信息", [
{uint8, pos, "位置"}
,{uint32, id, "伙伴ID"}
]}
,{uint32, hallows_id, "使用的圣器id(没有传0)"}
]}
]
,reply_desc = "设置神装副本功能阵法"
,reply = [
{uint8, code, "结果(0:失败 1:成功)"}
,{string, msg, "结果信息"}
]
}
,#rpc{
code = 25215
,log_title = "领取章节奖励"
,req_desc = "领取章节奖励"
,req = [
{uint32, id, "章节id"}
,{uint8, award_id, "奖励id"}
]
,reply = [
{uint8, code, "结果状态(0:失败 1:成功)"}
,{string, msg, "结果信息"}
,{uint32, id, "章节id"}
,{array, tuple, award_info, "章节奖励信息", [
{uint8, id, "奖励id"}
,{uint8, flag, "奖励领取(0:未达成 1:可领取 2:已领取)"}
]}
]
}
,#rpc{
code = 25216
,log_title = "推送是否还有战斗"
,req_desc = "推送是否还有战斗"
,req = [
]
,reply = [
{uint32, combat_type, "战斗类型"}
,{uint8, flag, "结果状态(0:没有 1:有)"}
]
}
, #rpc{
code = 25217
,log_title = "神装抽奖"
, req_desc = "神装抽奖"
, req = [
{uint16, group_id, "召唤编号"}
, {uint8, times, "召唤次数"}
, {uint8, recruit_type, "召唤方式,1:免费, 3:钻石兑换,4:道具"}]
, reply_desc = "神装抽奖"
, reply = [
{uint16, group_id, "召唤编号"}
, {uint8, times, "召唤次数"}
, {uint8, recruit_type, "召唤方式,1:免费, 3:钻石兑换,4:道具"}
, {array, tuple, rewards, "召唤奖励", [
{uint32, id, "物品id"}
, {uint32, base_id, "基础id"}
, {uint32, num, "数量"}
]
}
]
}
,#rpc{
code = 25218
,log_title = "抽奖日志"
,req_desc = "抽奖日志"
,req = [
{uint8, type, "类型(1:个人 2:全服)"}
,{uint16, group_id, "石像编号"}
]
,reply_desc = "抽奖日志"
,reply = [
{uint8, type, "类型(1:个人 2:全服)"}
,{uint16, group_id, "石像编号"}
, {array, tuple, log_list, "日志列表", [
{string, role_name, "角色名"}
,{uint32, bid, "物品bid"}
,{uint32, num, "物品数量"}
]}
]
}
,#rpc{
code = 25219
,log_title = "抽奖状态"
,req_desc = "抽奖状态"
,req = []
,reply = [
{array, tuple, recruit_list, "召唤信息", [
{uint16, group_id, "石像编号"}
,{uint8, free_times, "今日剩余免费次数"}
,{uint32, reset_time, "免费次数恢复时间"}
,{uint32, baodi_count, "剩余必出极品次数"}
,{array, tuple, lucky_holy_eqm, "许愿的神装组id", [
{uint8, pos, "许愿位置"}
,{uint32, lucky_holy_eqm, "许愿的神装组id"}
]}
,{uint32, all_award_count, "次数奖励计数"}
,{array, single, do_awards, "已领取的次数奖励", [
{uint32, award_id, "奖励id"}
]}
,{uint32, day_count, "今日已召唤次数"}
,{uint32, all_count, "总召唤次数"}
,{uint32, lev, "石像等级"}
,{uint8, is_open, "是否已开启 0:未开启 1:已开启)"}
]}
]
}
,#rpc{
code = 25220
,log_title = "当前神装套装状态"
,req_desc = "当前神装套装状态"
,req = []
,reply = [
{uint32, num, "当前的格子上限"}
,{array, holy_eqm_set_cell, holy_eqm_set_cell, "格子信息", [
{uint32, id, "神装套装ID"}
,{uint32, partner_id, "当前装备的伙伴ID"}
,{string, name, "套装名字"}
,{array, tuple, list, "神装信息", [
{uint32, partner_id, "伙伴ID(为0时则在背包寻找)"}
,{uint32, item_id, "物品ID"}
]}
]}
]
}
,#rpc{
code = 25221
,log_title = "新增神装套装"
,req_desc = "新增神装套装"
,req = [
{uint32, id, "神装套装ID0则没有)"}
,{uint32, partner_id, "当前装备的伙伴ID"}
,{string, name, "套装名字"}
,{array, tuple, holy_eqm, "神装信息", [
{uint32, partner_id, "伙伴ID(为0时则在背包寻找)"}
,{uint32, item_id, "物品ID"}
]}
]
,reply = [
{uint8, code, "结果(0:失败 1:成功)"}
,{string, msg, "结果信息"}
]
}
,#rpc{
code = 25222
,log_title = "更新某个神装套装状态"
,req_desc = "更新某个神装套装状态"
,req = []
,reply = [
{array, holy_eqm_set_cell, holy_eqm_set_cell, "格子信息", [
{uint32, id, "神装套装ID"}
,{uint32, partner_id, "当前装备的伙伴ID0则没有)"}
,{string, name, "套装名字"}
,{array, tuple, list, "神装信息", [
{uint32, partner_id, "伙伴ID(为0时则在背包寻找)"}
,{uint32, item_id, "物品ID"}
]}
]}
]
}
,#rpc{
code = 25223
,log_title = "购买新的格子"
,req_desc = "购买新的格子"
,req = []
,reply = [
{uint8, code, "结果(0:失败 1:成功)"}
,{string, msg, "结果信息"}
,{uint32, num, "当前的格子上限"}
]
}
,#rpc{
code = 25224
,log_title = "应用方案到英雄"
,req_desc = "应用方案到英雄"
,req = [
{uint32, partner_id, "伙伴ID"}
,{uint32, id, "神装套装ID"}
]
,reply = [
{uint8, code, "结果(0:失败 1:成功)"}
,{string, msg, "结果信息"}
]
}
,#rpc{
code = 25230
,log_title = "设置神装抽奖许愿"
,req_desc = "设置神装抽奖许愿(成功推送25219"
,req = [
{uint16, group_id, "石像编号"}
,{array, tuple, lucky_holy_eqm, "许愿的神装组id", [
{uint8, pos, "许愿位置"}
,{uint32, lucky_holy_eqm, "许愿的神装组id"}
]}
]
,reply = [
{uint8, flag, "0:失败 1:成功"}
,{string, msg, "结果信息"}
]
}
,#rpc{
code = 25231
,log_title = "战力前五神装总评分"
,req_desc = "领取保底礼包(成功推送25219"
,req = [
{uint16, group_id, "石像编号"}
,{uint16, id, "奖励id"}
]
,reply = [
{uint8, flag, "0:失败 1:成功"}
,{string, msg, "结果信息"}
]
}
,#rpc{
code = 25232
,log_title = "战力前五神装总评分"
,req_desc = "战力前五神装总评分"
,req = [
]
,reply = [
{uint32, score, "总评分"}
]
}
,#rpc{
code = 25233
,log_title = "神像升级"
,req_desc = "神像升级(成功推送25219"
,req = [
{uint16, group_id, "石像编号"}
]
,reply = [
{uint8, flag, "0:失败 1:成功"}
,{string, msg, "结果信息"}
]
}
,#rpc{
code = 25234
,log_title = "快捷出售选项"
,req_desc = "快捷出售选项"
,req = [
{array, single, options, "快捷出售选项", [
{uint8, flag, "0-未选择, 1-选择"}
]}
]
,reply = [
{array, single, options, "快捷出售选项", [
{uint8, flag, "0-未选择, 1-选择"}
]}
]
}
].