Files

190 lines
7.1 KiB
Erlang
Raw Permalink Normal View History

2026-05-23 22:10:14 +08:00
%%----------------------------------------------------
%% 圣夜奇境boss
%%
%% @author linguohui
%%----------------------------------------------------
-module(proto_275).
-export([info/0, cfg/0]).
-include("protocol.hrl").
info() -> {
"圣夜奇境boss"
,["formation.hrl", "combat.hrl"]
}.
-spec cfg() -> [#rpc{}].
cfg() ->
[
#rpc{
code = 27500
,log_title = "圣夜奇境信息"
,req_desc = "圣夜奇境信息"
,req = [
{uint8, id, "阶段id"}
]
,reply_desc = "圣夜奇境信息"
,reply = [
{uint8, flag, "是否开始"}
,{uint32, end_time, "活动结束时间戳"}
,{uint8, id, "阶段id"}
,{uint32, develop, "探索度"}
,{array, tuple, boss_list, "boss信息", [
{uint32, boss_id, "boss唯一Id"}
,{uint8, status, "状态 1:未解锁,2:可挑战 3:已击败, 4可追击"}
,{uint32, hp, "当前血量"}
,{uint32, max_hp, "最大血量"}
]}
]
}
,#rpc{
code = 27501
,log_title = "挑战Boss"
,req_desc = "挑战Boss"
,req = [
{uint8, id, "阶段Id"}
,{uint8, boss_id, "boss唯一id"}
,{uint16, formation_type, "阵法类型"}
,{array, formation_pos, pos_info, "阵法信息", [
{uint8, pos, "位置"}
,{uint32, id, "伙伴id"}
]}
,{uint32, hallows_id, "神器id"}
]
,reply_desc = "挑战Boss"
,reply = [
{uint8, flag, "是否成功"}
,{string, msg, "信息"}
]
}
,#rpc{
code = 27502
,log_title = "查看个人排行榜"
,req_desc = "查看个人排行榜"
,req = [
{uint8, id, "阶段Id"}
]
,reply_desc = "查看个人排行榜"
,reply = [
{uint8, id, "阶段Id"}
,{array, tuple, rank_list, "排行榜信息", [
{tuple, r_id, [
{uint32, rid, "ID"}
,{string, srv_id, "服务器ID"}
]}
,{string, name, "角色名"}
,{uint32, dps, "伤害量"}
,{uint32, lev, "等级"}
,{uint32, face_id, "头像id"}
,{uint32, avatar_bid, "头像框基础Id"}
,{uint32, power, "战力"}
,{uint32, rank, "排名"}
,{uint32, worship_num, "点赞数"}
,{uint32, worship_status, "点赞状态(0:可点赞 1:不可点赞)"}
]}
]
}
, #rpc{
code = 27503
,log_title = "获得boss阶段公会排行榜"
,req_desc = "获得boss阶段公会排行榜"
,req = [
{uint8, id, "阶段id"}
,{uint8, num, "0:前三名, 1:全部"}
]
,reply_desc = "获得boss阶段公会排行榜"
,reply = [
{uint8, id, "阶段id"}
,{array, tuple, guild_stage_rank, "公会具体排行榜数据", [
{tuple, gid, [
{uint32, gid, "ID"}
,{string, srv_id, "服务器ID"}
]}
,{string, name, "公会名"}
,{uint32, dps, "伤害量"}
,{uint32, rank, "排名"}
,{string, leader_name, "会长名字"}
,{uint32, member, "成员数量"}
,{uint32, member_max, "成员最大数量"}
,{uint32, lev, "公会等级"}
]}
,{tuple, guild, [
{tuple, r_gid, [
{uint32, r_gid, "ID"}
,{string, r_srv_id, "服务器ID"}
]}
,{string, r_name, "公会名"}
,{uint32, r_dps, "伤害量"}
,{uint32, r_rank, "排名"}
,{string, r_leader_name, "会长名字"}
,{uint32, r_member, "成员数量"}
,{uint32, r_member_max, "成员最大数量"}
,{uint32, r_lev, "公会等级"}
]}
]
}
, #rpc{
code = 27504
,log_title = "获得buff数据"
,req_desc = "获得buff数据"
,req = []
,reply_desc = "获得buff数据"
,reply = [
{array, tuple, buffs, "buff列表", [
{uint8, buff_id, "buff_id, 1攻击buff 2血量buff"}
,{uint32, val, "数值"}
]
}
]
}
, #rpc{
code = 27505
,log_title = "boss击败数"
,req_desc = "boss击败数"
,req = []
,reply_desc = "boss击败数"
,reply = [
{uint8, kill_num, "已击败数"}
,{uint32, all_num, "总数"}
]
}
, #rpc{
code = 27506
,log_title = "战斗结果"
,req_desc = "战斗结果"
,req = []
,reply_desc = "战斗结果"
,reply = [
{uint8, id, "阶段Id"}
,{uint8, boss_id, "boss唯一id"}
,{uint32, all_dps, "总伤害"}
,{uint32, best_partner, "最佳伙伴唯一ID"}
,{array, tuple, award_list, "奖励", [
{uint32, bid, "物品bid"}
,{uint32, num, "个数"}
]}
,{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, "英雄承受伤害"}
]}
]}
]
}
].