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

184 lines
7.2 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<576623536@qq.com>
%%----------------------------------------------------
-module(proto_291).
-export([info/0, cfg/0]).
-include("protocol.hrl").
info() -> {
"英灵武神殿"
,["formation.hrl", "common.hrl", "combat.hrl", "holiday_practise_tower.hrl"]
}.
-spec cfg() -> [#rpc{}].
cfg() ->
[
#rpc{
code = 29100
,log_title = "查看活动信息"
,req_desc = "查看活动信息"
,req = []
,reply_desc = "查看活动信息"
,reply = [
{uint8, flag, "活动是否开启,是:1 否:0"}
,{uint32, id, "当前已通关关数"}
,{uint32, time, "剩余可挑战次数"}
,{uint32, last_buy_time, "剩余可购买次数"}
,{uint8, radio, "boss血量比例(百分比)"}
,{uint32, last_unixtime, "挑战结束时间戳"}
,{array, practise_role_rank, practise_role_rank, "前三名排行榜", [
{tuple, id, [
{uint32, rid, "id"}
,{string, srv_id, "服务器ID"}
]}
,{uint32, lev, "等级"}
,{uint32, face_id, "头像id"}
,{uint32, avatar_bid, "头像框基础Id"}
,{string, name, "名字"}
,{uint32, val, "关卡数"}
,{uint32, unixtime, "更新时间戳"}
,{uint32, power, "战力"}
,{uint32, rank, "排名"}
,{uint32, video_id, "录像Id"}
,{uint32, face_update_time, "自定义头像时间"}
,{string, face_file, "自定义头像时间"}
]}
,{uint32, role_rank, "自己排名 0表示没上榜"}
,{uint8, is_recombat, "当前是否重新挑战 1是0否"}
]
}
,#rpc{
code = 29101
,log_title = "挑战Boss"
,req_desc = "挑战Boss"
,req = [
{uint32, id, "挑战关卡"}
,{uint16, formation_type, "阵法类型"}
,{array, formation_pos, pos_info, "阵法信息", [
{uint8, pos, "位置"}
,{uint32, id, "伙伴id"}
]}
,{uint32, hallows_id, "神器id"}
]
,reply = [
{uint8, flag, "是否成功"}
,{string, msg, "返回信息"}
]
}
, #rpc{
code = 29102
,log_title = "战斗结果"
,req_desc = "战斗结果"
,req = []
,reply_desc = "战斗结果"
,reply = [
{uint8, flag, "胜负 1:胜利 0:失败"}
,{uint32, all_dps, "总伤害"}
,{uint32, best_partner, "最佳伙伴唯一ID"}
,{uint32, bid, "最佳伙伴bid"}
,{uint16, lev, "最佳伙伴等级"}
,{uint8, star, "最佳伙伴星级"}
,{uint32, use_skin, "最佳伙伴皮肤id"}
,{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, "英雄承受伤害"}
]}
]}
,{array, tuple, reward, "奖励列表", [
{uint32, base_id, "物品Id"}
,{uint32, num, "数量"}
]}
,{uint32, last_anew_times, "剩余可重新挑战次数"}
,{uint32, number, "当前挑战的关卡"}
]
}
,#rpc{
code = 29103
,log_title = "重新挑战"
,req_desc = "重新挑战"
,req = []
,reply = [
{uint8, flag, "是否成功"}
,{string, msg, "返回信息"}
]
}
,#rpc{
code = 29104
,log_title = "购买挑战次数"
,req_desc = "购买挑战次数"
,req = []
,reply = [
{uint8, flag, "是否成功"}
,{string, msg, "返回信息"}
]
}
,#rpc{
code = 29105
,log_title = "查看排行榜"
,req_desc = "查看排行榜"
,req = []
,reply_desc = "查看排行榜"
,reply = [
{uint8, flag, "活动是否开启,是:1 否:0"}
,{array, practise_role_rank, practise_role_rank, "排行榜", [
{tuple, id, [
{uint32, rid, "id"}
,{string, srv_id, "服务器ID"}
]}
,{uint32, lev, "等级"}
,{uint32, face_id, "头像id"}
,{uint32, avatar_bid, "头像框基础Id"}
,{string, name, "名字"}
,{uint32, val, "关卡数"}
,{uint32, unixtime, "更新时间戳"}
,{uint32, power, "战力"}
,{uint32, rank, "排名"}
,{uint32, video_id, "录像Id"}
,{uint32, face_update_time, "自定义头像时间"}
,{string, face_file, "自定义头像时间"}
]}
,{uint32, role_rank, "自己排名 0表示没上榜"}
,{uint32, role_val, "自己关卡数"}
,{uint32, role_unixtime, "自己更新时间戳"}
,{uint32, role_video_id, "自己录像Id"}
]
}
,#rpc{
code = 29106
,log_title = "当前自身排名"
,req_desc = "当前自身排名"
,req = []
,reply = [
{uint32, role_rank, "自己排名 0表示没上榜"}
]
}
,#rpc{
code = 29107
,log_title = "日志上报"
,req_desc = "日志上报"
,req = [
{uint8, type, "类型 1进入活动界面 2进入爬塔界面"}
]
,reply = []
}
].