99 lines
3.7 KiB
Erlang
99 lines
3.7 KiB
Erlang
%%----------------------------------------------------
|
||
%% 运营活动_女神试炼
|
||
%%
|
||
%% @author linguohui<576623536@qq.com>
|
||
%%----------------------------------------------------
|
||
-module(proto_288).
|
||
-export([info/0, cfg/0]).
|
||
-include("protocol.hrl").
|
||
|
||
info() -> {
|
||
"运营活动_女神试炼"
|
||
,["formation.hrl", "common.hrl", "combat.hrl"]
|
||
}.
|
||
|
||
-spec cfg() -> [#rpc{}].
|
||
cfg() ->
|
||
[
|
||
#rpc{
|
||
code = 28800
|
||
,log_title = "查询活动信息"
|
||
,req_desc = "查询活动信息"
|
||
,req = []
|
||
,reply = [
|
||
{uint32, id, "唯一id"}
|
||
,{uint8, time, "剩余可挑战次数"}
|
||
,{uint8, buy_time, "剩余可购买次数"}
|
||
]
|
||
}
|
||
,#rpc{
|
||
code = 28801
|
||
,log_title = "挑战Boss"
|
||
,req_desc = "挑战Boss"
|
||
,req = [
|
||
{uint32, id, "唯一id"}
|
||
,{uint16, formation_type, "阵法类型"}
|
||
,{array, formation_pos, pos_info, "阵法信息", [
|
||
{uint8, pos, "位置"}
|
||
,{uint32, id, "伙伴id"}
|
||
]}
|
||
,{uint32, hallows_id, "神器id"}
|
||
]
|
||
,reply = [
|
||
{uint8, flag, "是否成功"}
|
||
,{string, msg, "返回信息"}
|
||
]
|
||
}
|
||
, #rpc{
|
||
code = 28802
|
||
,log_title = "战斗结果"
|
||
,req_desc = "战斗结果"
|
||
,req = []
|
||
,reply_desc = "战斗结果"
|
||
,reply = [
|
||
{uint32, all_dps, "总伤害"}
|
||
,{uint32, best_partner, "最佳伙伴唯一ID"}
|
||
,{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, "英雄承受伤害"}
|
||
]}
|
||
]}
|
||
,{array, tuple, reward, "奖励列表", [
|
||
{uint32, base_id, "物品Id"}
|
||
,{uint32, num, "数量"}
|
||
]}
|
||
]
|
||
}
|
||
,#rpc{
|
||
code = 28803
|
||
,log_title = "购买挑战次数"
|
||
,req_desc = "购买挑战次数"
|
||
,req = []
|
||
,reply = [
|
||
{uint8, flag, "是否成功"}
|
||
,{string, msg, "返回信息"}
|
||
]
|
||
}
|
||
].
|