Files
2026-05-23 22:10:14 +08:00

344 lines
10 KiB
Erlang
Raw Permalink 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 Administrator
%%% @copyright (C) 2024, <COMPANY>
%%% @doc
%%%
%%% @end
%%% Created : 26. 1月 2024 9:22
%%%-------------------------------------------------------------------
-module(proto_313).
-author("Administrator").
%% API
-export([]).
-export([info/0, cfg/0]).
-include("protocol.hrl").
info() -> {
"战令"
,[ "camp_arena.hrl", "common.hrl", "formation.hrl", "combat.hrl"]
}.
-spec cfg() -> [#rpc{}].
cfg() ->
[
#rpc{
code = 31300
,log_title = "擂台赛信息"
,req_desc = "擂台赛信息"
,req = []
,reply = [
{uint8, period, "周期数, 0,1,3,5"}
,{uint32, is_open, "是否开启,0-未开启,1-开启"}
,{uint32, end_time, "结束时间"}
,{uint32, status, "当前阶段 0-空闲期, 1-pve阶段,2-结算期,3-pve排行榜公示期,4-布阵期,5-pvp战斗"}
,{uint32, step_status_time, "阶段距离结束时间(unixtime)"}
]
}
,#rpc{
code = 31301
,log_title = "设置阵法"
,req_desc = "设置阵法"
,req = [
{uint8, formation_type, "阵法类型"}
,{uint8, group, "活动组"}
,{array, tuple, pos_info, "站位信息", [
{uint8, pos, "位置"}
,{uint32, id, "伙伴ID"}
]}
,{uint32, hallows_id, "使用的圣器id(没有传0)"}
]
,reply_desc = "保存阵法"
,reply = [
{uint8, flag, "是否成功 是1 否0"}
,{string, msg, "信息"}
]
}
,#rpc{
code = 31302
,log_title = "请求阵法"
,req_desc = "请求阵法"
,reply_desc = "请求阵法"
,req = [
{uint8, formation_type, "阵法类型"}
,{uint8, group, "活动组"}
]
,reply = [
{uint8, formation_type, "阵法类型"}
,{array, formation_pos, pos_info, "站位信息", [
{uint8, pos, "位置"}
,{uint32, id, "伙伴ID"}
]}
,{uint32, hallows_id, "使用的圣器id(没有传0)"}
]
}
,#rpc{
code = 31303
,log_title = "打年兽"
,req_desc = "打年兽"
,req = []
,reply = [
{uint8, code, "标志(0:失败 1:成功)"}
,{string, msg, "提示信息"}
]
}
,#rpc{
code = 31304
,log_title = "pve公示期排行榜信息"
,req_desc = "pve公示期排行榜信息"
,req = [
{uint8, group, ""}
]
,reply = [
{array, tuple, rank_list, "排行榜", [
{rec, camp_arena_role, camp_arena_role, [
{tuple, id, [
{uint32, rid, "角色ID"}
,{string, srv_id, "服务器ID"}
]}
,{string, name, "角色名"}
,{uint16, lev, "等级"}
,{uint8, rank, "排名"}
,{uint8, sex, "性别"}
,{uint32, lookid, "外观ID"}
,{uint32, face, "头像"}
,{uint32, avatar_id, "头像框"}
,{array, tuple , pve_partners, "pve_阵容详情", [
{uint32, partner_id, "伙伴bid"}
,{uint8, star, "星级"}
,{uint32, lev, "等级"}
]}
,{uint32, dps, "伤害"}
]}
]}
]
}
,#rpc{
code = 31305
,log_title = "pvp公示期排行榜信息"
,req_desc = "pvp公示期排行榜信息"
,req = [
]
,reply = [
{array, tuple, rank_list, "排行榜", [
{rec, camp_arena_role, camp_arena_role, [
{tuple, id, [
{uint32, rid, "角色ID"}
,{string, srv_id, "服务器ID"}
]}
,{string, name, "角色名"}
,{uint16, lev, "等级"}
,{uint8, rank, "排名"}
,{uint8, sex, "性别"}
,{uint32, lookid, "外观ID"}
,{uint32, face, "头像"}
,{uint32, avatar_id, "头像框"}
,{array, tuple , pvp_partners, "pvp_阵容详情", [
{uint32, partner_id, "伙伴bid"}
,{uint8, star, "星级"}
,{uint32, lev, "等级"}
]}
]}
]}
]
}
,#rpc{
code = 31306
,log_title = "pvp每组人信息"
,req_desc = "pvp每组人信息"
,req = [
{uint8, group, ""}
]
,reply = [
{array, tuple, role_list, "排行榜", [
{rec, camp_arena_role, camp_arena_role, [
{tuple, id, [
{uint32, rid, "角色ID"}
,{string, srv_id, "服务器ID"}
]}
,{string, name, "角色名"}
,{uint16, lev, "等级"}
,{uint8, rank, "排名"}
,{uint8, sex, "性别"}
,{uint32, lookid, "外观ID"}
,{uint32, power, "战力"}
,{uint32, face, "头像"}
,{uint32, avatar_id, "头像框"}
,{array, tuple , pvp_partners, "pvp_阵容详情", [
{uint32, partner_id, "伙伴bid"}
,{uint8, star, "星级"}
,{uint32, lev, "等级"}
]}
]}
,{uint32, worship_num, "被点赞次数"}
]}
]
}
,#rpc{
code = 31307
,log_title = "pvp战斗"
,req_desc = "pvp战斗"
,req = [
{uint8, formation_type, "阵法类型"}
,{uint8, group, "活动组"}
,{array, tuple, pos_info, "站位信息", [
{uint8, pos, "位置"}
,{uint32, id, "伙伴ID"}
]}
,{uint32, hallows_id, "使用的圣器id(没有传0)"}
, {uint32, rid, "角色ID"}
,{string, srv_id, "服务器ID"}
]
,reply = [
{uint8, code, "标志(0:失败 1:成功)"}
,{string, msg, "提示信息"}
]
}
,#rpc{
code = 31308
,log_title = "个人基本信息"
,req_desc = "个人基本信息"
,req = []
,reply = [
{uint16, rank, "当前排名(0:表示没有参赛资格)"}
,{uint32, group, "我当前所在的组"}
]
}
,#rpc{
code = 31309
,log_title = "pve伤害结算排行榜信息"
,req_desc = "pve伤害结算排行榜信息"
,req = [
]
,reply = [
{array, tuple, rank_list, "排行榜", [
{rec, camp_arena_role, camp_arena_role, [
{tuple, id, [
{uint32, rid, "角色ID"}
,{string, srv_id, "服务器ID"}
]}
,{string, name, "角色名"}
,{uint16, lev, "等级"}
,{uint8, rank, "排名"}
,{uint8, sex, "性别"}
,{uint32, lookid, "外观ID"}
,{uint32, face, "头像"}
,{uint32, avatar_id, "头像框"}
,{array, tuple , pve_partners, "pve_阵容详情", [
{uint32, partner_id, "伙伴bid"}
,{uint8, star, "星级"}
,{uint32, lev, "等级"}
]}
,{uint32, dps, "伤害"}
]}
]}
,{uint32, my_dps, "伤害"}
]
}
, #rpc{
code = 31310
,log_title = "战斗结果"
,req_desc = "战斗结果"
,req = []
,reply_desc = "战斗结果"
,reply = [
{uint8, result, "战斗结果(1:成功 2:失败)"}
,{uint32, all_dps, "总伤害"}
,{uint32, best_partner, "最佳伙伴唯一ID租借的英雄为0"}
,{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, "英雄承受伤害"}
]}
]}
,{uint32, replay_id, "录像id"}
,{uint32, combat_type, "战斗类型"}
]
}
,#rpc{
code = 31311
,log_title = "请求录像"
,req_desc = "请求录像"
,reply_desc = "请求录像"
,req = [
{uint8, group, "分组"}
]
,reply = [
{array, tuple, replay_list, "录像数组", [
{string, name1, "左边名称"},
{uint32, rank1, "左边排名"},
{string, name2, "右边名称"},
{uint32, rank2, "右边排名"},
{uint32, is_win, "对局结果,1-左边胜利,0-左边失败"},
{uint32, replay_id, "录像ID"},
{string, replay_srv_id, "录像服务器ID"}
]}
]
}
, #rpc{
code = 31312
,log_title = "推送前三名名次变动"
,req_desc = "推送前三名名次变动"
,req = []
,reply_desc = "推送前三名名次变动"
,reply = [
{rec, camp_arena_role, camp_arena_role, [
{tuple, id, [
{uint32, rid, "角色ID"}
,{string, srv_id, "服务器ID"}
]}
,{string, name, "角色名"}
,{uint16, lev, "等级"}
,{uint8, rank, "排名"}
,{uint8, sex, "性别"}
,{uint32, lookid, "外观ID"}
,{uint32, face, "头像"}
,{uint32, avatar_id, "头像框"}
,{uint32, vip, "VIP等级"}
,{uint32, honor, "徽章id"}
]
}
]
} ,#rpc{
code = 31313
,log_title = "设置防御阵法"
,req_desc = "设置防御阵法"
,req = [
{uint8, formation_type, "阵法类型"}
,{uint8, group, "活动组"}
,{array, tuple, pos_info, "站位信息", [
{uint8, pos, "位置"}
,{uint32, id, "伙伴ID"}
]}
,{uint32, hallows_id, "使用的圣器id(没有传0)"}
]
,reply_desc = "保存阵法"
,reply = [
{uint8, flag, "是否成功 是1 否0"}
,{string, msg, "信息"}
]
}
].