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

139 lines
4.9 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 whjing2011@gmail.com
%%----------------------------------------------------
-module(proto_207).
-export([info/0, cfg/0]).
-include("protocol.hrl").
info() -> {
"最强仙尊——"
,["primus.hrl", "combat.hrl"]
}.
-spec cfg() -> [#rpc{}].
cfg() ->
[
#rpc{
code = 20700
,log_title = "基本信息"
,req_desc = "基本信息"
,req = []
,reply = [
{uint8, num, "今天已挑战次数"}
,{uint32, time, "冷却时间"}
]
}
,#rpc{
code = 20701
,log_title = "列表信息"
,req_desc = "列表信息"
,req = []
,reply = [
{array, tuple, list, "位置列表信息", [
{uint8, pos, "位置"}
,{uint32, num, "进化次数"}
,{uint8, status, "状态(0:正常 1:正被攻击)"}
,{uint32, look_id, "外观"}
,{uint32, rid, "角色ID"}
,{string, srv_id, "角色服务器ID"}
,{string, name, "玩家名称(空未人占)"}
,{uint16, lev, "玩家等级"}
,{uint32, face_id, "头像"}
,{uint32, unit_id, "单位ID"}
,{uint32, face_update_time, "自定义头像时间"}
,{string, face_file, "自定义头像"}
]}
]
}
,#rpc{
code = 20702
,log_title = "挑战"
,req_desc = "挑战"
,req = [
{uint8, pos, "位置"}
,{uint8, num, "进化次数"}
]
,reply = [
{uint8, code, "结果(0:失败 1:成功)"}
,{string, msg, "结果信息"}
]
}
,#rpc{
code = 20703
,log_title = "挑战日志信息"
,req_desc = "挑战日志信息"
,req = [
{uint8, pos, "位置"}
]
,reply = [
{uint8, pos, "位置"}
,{array, primus_log, list, "挑战日志信息", [
{tuple, role_id, [
{uint32, rid, "角色ID"}
,{string, srv_id, "角色服务器ID"}
]}
,{string, name, "角色名"}
,{uint8, lev, "等级"}
,{uint32, power, "战力"}
,{uint32, face_id, "头像"}
,{uint32, time, "时间"}
,{uint32, num, "进化次数"}
,{uint32, replay_id, "录像ID"}
,{uint8, formation_type, "阵法"}
,{uint8, formation_lev, "阵法等级"}
,{uint32, face_update_time, "自定义头像时间"}
,{string, face_file, "自定义头像"}
,{array, new_map, partner_list, "伙伴信息", [
{uint32, bid, "伙伴BID"}
,{uint16, lev, "伙伴等级"}
,{uint8, star, "伙伴星级"}
]}
]}
]
}
,#rpc{
code = 20705
,log_title = "战斗胜利结果"
,reply_desc = "战斗胜利结果"
,reply = [
{uint8, pos, "位置"}
,{uint32, num1, "原进化值"}
,{uint32, num2, "现进化值"}
,{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 = 20706
,log_title = "是否显示红点"
,req_desc = "是否显示红点"
,req = []
,reply_desc = "是否显示红点"
,reply = [
{uint8, is_show, "是否显示红点"}
]
}
].