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

230 lines
7.2 KiB
Erlang

%%----------------------------------------------------
%
%% @author whjing2011@gmail.com
%%----------------------------------------------------
-module(proto_205).
-export([info/0, cfg/0]).
-include("protocol.hrl").
info() ->
{
"BOSS"
,["boss.hrl"]
}.
cfg() ->
[
#rpc{
code = 20500
,req_desc = "个人BOSS信息"
,log_title = "个人BOSS信息"
,req = []
,reply = [
{array, tuple, boss_list, "BOSS列表", [
{uint32, boss_id, "BOSSID"}
,{uint8, status, "状态(0:可挑战 1:可扫荡 2:已挑战)"}
,{uint8, first, "是否已首次通关"}
]}
,{array, tuple, ext_list, "额外BOSS列表", [
{uint8, ext_id, "额外Id( 1:荣耀月卡Boss, 2:至尊月卡Boss )"}
,{uint8, status, "状态(0:可挑战 1:可扫荡 2:已挑战)"}
]}
]
}
,#rpc{
code = 20501
,log_title = "挑战个人BOSS"
,req_desc = "挑战个人BOSS"
,req = [
{uint32, boss_id, "BOSSID"}
]
,reply = [
{uint8, code, "结果状态(0:失败 1:成功)"}
,{string, msg, "结果信息"}
]
}
,#rpc{
code = 20502
,log_title = "扫荡个人BOSS"
,req_desc = "扫荡个人BOSS"
,req = [
{uint32, boss_id, "BOSSID"}
]
,reply = [
{uint8, code, "结果状态(0:失败 1:成功)"}
,{string, msg, "结果信息"}
]
}
%%----------- 世界BOSS
,#rpc{
code = 20530
,log_title = "世界BOSS个人信息"
,req_desc = "世界BOSS个人信息"
,req = []
,reply = [
{uint8, can_combat_num, "可挑战次数"}
,{uint8, buy_combat_num, "今天已购买次数"}
,{uint32, num_time, "下一次增加次数时间(unixtime 0:次数已满,不需要恢复)"}
]
}
,#rpc{
code = 20531
,log_title = "购买挑战次数"
,req_desc = "购买挑战次数"
,req = []
,reply = [
{uint8, code, "结果状态(0:失败 1:成功)"}
,{string, msg, "结果信息"}
]
}
,#rpc{
code = 20532
,log_title = "挑战世界BOSS"
,req_desc = "挑战世界BOSS"
,req = [
{uint32, boss_id, "BOSSID"}
]
,reply = [
{uint8, code, "结果状态(0:失败 1:成功)"}
,{string, msg, "结果信息"}
]
}
,#rpc{
code = 20533
,log_title = "刷新复活世界BOSS"
,req_desc = "刷新复活世界BOSS"
,req = [
{uint32, boss_id, "BOSSID"}
]
,reply = [
{uint8, code, "结果状态(0:失败 1:成功)"}
,{string, msg, "结果信息"}
]
}
,#rpc{
code = 20535
,log_title = "世界BOSS信息"
,req_desc = "世界BOSS信息"
,req = []
,reply = [
{array, tuple, boss_list, "世界BOSS列表", [
{uint32, boss_id, "BOSSID"}
,{uint16, rnum, "挑战人数"}
,{uint32, hp, "当前血量"}
,{uint32, hp_max, "最大血量"}
,{uint32, ref_time, "下次刷新复活时间(unixtime)"}
]}
]
}
,#rpc{
code = 20536
,log_title = "刷新指定BOSS信息"
,req_desc = "刷新指定BOSS信息"
,reply = [
{uint32, boss_id, "BOSSID"}
,{uint16, rnum, "挑战人数"}
,{uint32, hp, "当前血量"}
,{uint32, hp_max, "最大血量"}
,{uint32, ref_time, "下次刷新复活时间(unixtime)"}
]
}
,#rpc{
code = 20537
,log_title = "BOSS伤害排行"
,req_desc = "BOSS伤害排行"
,req = [
{uint32, boss_id, "BOSSID"}
]
,reply = [
{uint32, boss_id, "BOSSID"}
,{array, world_boss_role, role_list, "排名信息", [
{tuple, id, [
{uint32, rid, "角色ID"}
,{string, srv_id, "服务器ID"}
]}
,{string, name, "角色名"}
,{uint32, hurt, "伤害值"}
]}
]
}
,#rpc{
code = 20538
,log_title = "BOSS击杀记录"
,req_desc = "BOSS击杀记录"
,req = [
{uint32, boss_id, "BOSSID"}
]
,reply = [
{uint32, boss_id, "BOSSID"}
,{array, world_boss_role, role_list, "击杀信息", [
{tuple, id, [
{uint32, rid, "角色ID"}
,{string, srv_id, "服务器ID"}
]}
,{string, name, "角色名"}
,{uint32, power, "战力"}
,{uint32, time, "击杀时间(unixtime)"}
]}
]
}
,#rpc{
code = 20539
,log_title = "世界BOSS结算"
,reply_desc = "世界BOSS结算"
,reply = [
{uint32, boss_id, "BOSSID"}
,{uint32, hurt, "本次战斗伤害"}
,{array, tuple, item_rewards, "道具奖励", [
{uint32, bid, "物品bid"}
,{uint8, is_bind, "是不是绑定 1 绑定 0 不绑定"}
,{uint32, num, "个数"}
,{uint32, id, "物品id"}
]}
]
}
,#rpc{
code = 20540
,log_title = "已设置提醒的BOSS信息"
,req_desc = "已设置提醒的BOSS信息"
,req = []
,reply = [
{array, single, boss_list, "已设置提醒的BOSS", [
{uint32, boss_id, "BOSSID"}
]}
]
}
,#rpc{
code = 20541
,log_title = "设置提醒的BOSS信息"
,req_desc = "设置提醒的BOSS信息"
,req = [
{array, single, boss_list, "已设置提醒的BOSS", [
{uint32, boss_id, "BOSSID"}
]}
]
,reply = [
]
}
,#rpc{
code = 20542
,log_title = "推送BOSS结算"
,req_desc = "推送BOSS结算"
,req = [
]
,reply_desc = "返回结算结果"
,reply = [
{uint8, result, "1:胜利 2 失败"}
,{array, tuple, first_award, "首通奖励", [
{uint32, item_id, "物品id"}
,{uint32, num, "数量"}
]}
,{array, tuple, award, "奖励", [
{uint32, item_id, "物品id"}
,{uint32, num, "数量"}
]}
]
}
].