Files
fc/server/tools/gen_proto/cfg/proto_254.erl
T

194 lines
6.2 KiB
Erlang
Raw Normal View History

2026-05-23 22:10:14 +08:00
%%----------------------------------------------------
% 活动boss
%% @author liufenglin 240039421@qq.com
%%----------------------------------------------------
-module(proto_254).
-export([info/0,cfg/0]).
-include("protocol.hrl").
info() ->
{
"活动boss"
,["combat.hrl"]
}.
cfg() ->[
#rpc{
code = 25400
,log_title = "活动boss活动界面数据"
,req_desc = "活动boss活动界面数据"
,req = []
,reply_desc = "活动boss活动界面数据"
,reply = [
{uint8, order, "已占领的id"}
,{uint32, score, "积分"}
,{uint32, rank, "排名"}
,{uint8, count, "剩余挑战次数"}
]
}
,#rpc{
code = 25401
,log_title = "活动boss信息"
,req_desc = "活动boss信息"
,req = [
]
,reply_desc = "活动boss信息"
,reply = [
{uint8, order, "正在挑战的关卡id"}
,{uint32, score, "积分"}
,{uint32, rank, "排名"}
,{uint8, count, "剩余挑战次数"}
,{uint8, buy_count, "今日已购买次数"}
,{uint32, hp_per, "boss血量百分比(扩大了1000倍)"}
,{array, single, award_info, "已领取的奖励id", [
{uint32, award_id, "奖励id"}
]}
]
}
,#rpc{
code = 25402
,log_title = "购买挑战次数"
,req_desc = "购买挑战次数"
,req = [
]
,reply = [
{uint8, code, "结果状态(0:失败 1:成功)"}
,{string, msg, "结果信息"}
,{uint8, count, "剩余挑战次数"}
,{uint8, buy_count, "今日已购买挑战次数"}
]
}
,#rpc{
code = 25403
,log_title = "领取奖励"
,req_desc = "领取奖励"
,req = [
]
,reply = [
{uint8, code, "结果状态(0:失败 1:成功)"}
,{string, msg, "结果信息"}
,{array, single, award_info, "已领取的奖励id", [
{uint32, award_id, "奖励id"}
]}
]
}
,#rpc{
code = 25404
,log_title = "挑战活动boss"
,req_desc = "挑战活动boss"
,req = []
,reply_desc = "挑战活动boss"
,reply = [
{uint8, code, "结果状态(0:失败 1:成功)"}
,{string, msg, "结果信息"}
]
}
,#rpc{
code = 25405
,log_title = "推送战斗结算(会推送25401"
,req_desc = "推送战斗结算(会推送25401"
,req = [
]
,reply_desc = "推送战斗结算"
,reply = [
{uint8, result, "1:胜利 2 失败"}
,{uint32, dps_score, "伤害积分"}
,{uint32, kill_score, "战胜积分"}
,{uint32, all_dps, "总伤害"}
,{uint32, best_partner, "最佳伙伴唯一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, "英雄承受伤害"}
]}
]}
]
}
,#rpc{
code = 25410
,log_title = "活动boss信息"
,req_desc = "活动boss信息"
,req = [
]
,reply_desc = "活动boss信息"
,reply = [
{uint8, round, "当前轮次"}
,{uint8, difficulty, "难度"}
,{uint8, order, "正在挑战的关卡id"}
,{uint8, order_type, "关卡类型"}
,{uint32, round_combat, "本轮已挑战次数"}
,{uint32, round_boss, "本轮已击败怪物"}
,{uint8, count, "剩余挑战次数"}
,{uint8, buy_count, "今日已购买次数"}
,{uint32, endtime, "本轮结束时间"}
,{uint32, hp_per, "boss血量百分比(扩大了1000倍)"}
,{uint8, status, "奖励领取状态 0不可领取 1可领取 2已领取"}
]
}
,#rpc{
code = 25411
,log_title = "购买挑战次数"
,req_desc = "购买挑战次数"
,req = [
]
,reply = [
{uint8, code, "结果状态(0:失败 1:成功)"}
,{string, msg, "结果信息"}
,{uint8, count, "剩余挑战次数"}
,{uint8, buy_count, "今日已购买挑战次数"}
]
}
,#rpc{
code = 25412
,log_title = "领取奖励"
,req_desc = "领取奖励"
,req = [
]
,reply = [
{uint8, code, "结果状态(0:失败 1:成功)"}
,{string, msg, "结果信息"}
]
}
,#rpc{
code = 25413
,log_title = "挑战活动boss"
,req_desc = "挑战活动boss"
,req = []
,reply_desc = "挑战活动boss"
,reply = [
{uint8, code, "结果状态(0:失败 1:成功)"}
,{string, msg, "结果信息"}
]
}
,#rpc{
code = 25414
,log_title = "当前伙伴已使用次数"
,req_desc = "当前伙伴已使用次数"
,req = [
]
,reply = [
{array, tuple, p_list, "自己伙伴列表", [
{uint32, id, "伙伴ID"}
,{uint8, count, "本轮已使用次数"}
]}
]
}
].