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

265 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 wujinhan<947537249@qq.com>
%%----------------------------------------------------
-module(proto_267).
-export([info/0, cfg/0]).
-include("protocol.hrl").
info() -> {
"开学副本"
,["common.hrl", "quest.hrl", "holiday_term_begins.hrl", "combat.hrl"]
}.
-spec cfg() -> [#rpc{}].
cfg() ->
[
#rpc{
code = 26700
,log_title = "开学副本基础信息"
,req_desc = "开学副本基础信息"
,req = [
]
,reply_desc = "开学副本基础信息"
,reply = [
{uint8, round, "当前轮次"}
,{uint32, end_time, "本轮挑战结束时间(Boss结束时间)"}
,{uint32, difficulty, "当前难度"}
,{uint32, order, "当前关卡"}
,{uint32, cha_count, "剩余挑战次数"}
,{uint32, buy_count, "剩余购买次数"}
,{uint32, hp_per, "关卡怪物剩余血量百分比(扩大了1000倍)"}
,{uint8, boss_flag, "Boss是否已开启"}
,{uint32, paper_sum, "已提交的试卷总数"}
,{uint32, boss_id, "BossID"}
,{uint32, boss_time, "Boss开启倒计时/挑战剩余时间"}
,{uint32, boss_hp_per, "Boss剩余血量百分比(扩大了1000倍)"}
,{uint32, dps, "扫荡伤害量 (0:不能扫荡)"}
,{uint32, buff_per, "buff加成百分比(扩大100倍)"}
,{uint32, boss_rank, "boss伤害排名(扩大100倍)"}
]
}
,#rpc{
code = 26701
,log_title = "关卡购买挑战次数"
,req_desc = "关卡购买挑战次数"
,req = [
]
,reply_desc = "关卡购买挑战次数"
,reply = [
{uint8, code, "结果状态(0:失败 1:成功)"}
,{string, msg, "结果信息"}
,{uint32, count, "剩余挑战次数"}
,{uint32, buy_count, "剩余购买次数"}
]
}
,#rpc{
code = 26702
,log_title = "不放回抽奖"
,req_desc = "挑战关卡怪物"
,req = []
,reply_desc = "挑战关卡怪物"
,reply = [
{uint8, code, "结果状态(0:失败 1:成功)"}
,{string, msg, "结果信息"}
]
}
,#rpc{
code = 26703
,log_title = "关卡战斗结果"
,reply_desc = "关卡战斗结果"
,reply = [
{uint32, bossid, "bossid"}
,{uint8, result, "战斗结果(1:胜利 2:失败)"}
,{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, "英雄承受伤害"}
]}
]}
]
}
,#rpc{
code = 26704
,log_title = "提交试卷"
,req_desc = "提交试卷"
,req = [
{uint32, count, "提交数量"}
]
,reply_desc = "提交试卷"
,reply = [
{uint8, code, "结果状态(0:失败 1:成功)"}
,{string, msg, "结果信息"}
,{uint32, paper_sum, "已提交的试卷总数"}
]
}
,#rpc{
code = 26705
,log_title = "试卷收集进度信息"
,req_desc = "试卷收集进度信息"
,req = [
]
,reply_desc = "试卷收集进度信息"
,reply = [
{array, tuple, collect_schedule, "收集进度", [
{uint8, id, "已激活的进度id"}
,{uint8, staus, "领取状态(1可领取2已领取)"}
]}
,{uint32, num, "当前值"}
]
}
,#rpc{
code = 26706
,log_title = "领取试卷收集奖励"
,req_desc = "领取试卷收集奖励"
,req = [
{uint8, id, "进度id"}
]
,reply_desc = "领取试卷收集奖励"
,reply = [
{uint8, code, "结果状态(0:失败 1:成功)"}
,{string, msg, "结果信息"}
,{uint8, id, "进度id"}
]
}
,#rpc{
code = 26707
,log_title = "挑战Boss"
, req_desc = "挑战Boss"
,req = [
]
,reply_desc = "挑战Boss"
,reply = [
{uint8, code, "是否成功"},
{string, msg, "附加信息"}
]
}
,#rpc{
code = 26708
,log_title = "Boss战斗结果"
,reply_desc = "Boss战斗结果"
,reply = [
{uint32, bossid, "bossid"}
,{uint8, result, "战斗结果(1:胜利 2:失败)"}
,{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, "英雄承受伤害"}
]}
]}
]
}
,#rpc{
code = 26709
,log_title = "扫荡Boss"
, req_desc = "扫荡Boss"
,req = [
]
,reply_desc = "扫荡Boss"
,reply = [
{uint8, code, "是否成功"}
,{string, msg, "附加信息"}
]
}
,#rpc{
code = 26710
,log_title = "Boss伤害个人排行榜"
,req_desc = "Boss伤害个人排行榜"
,req = [
]
,reply_desc = "个人排行榜"
,reply = [
{uint32, rank, "自身排名"}
,{uint64, mydps, "自身dps"}
,{uint32, rank_per, "自身排名百分比"}
,{uint32, next_power, "距离下一奖励的伤害值"}
,{array, holiday_term_begins_boss_rank_role, rank_list, "排行榜", [
{uint32, rank, "排名"}
,{tuple, r_id, [
{uint32, r_rid, "ID"}
,{string, r_srvid, "服务器ID"}
]}
,{string, name, "名字"}
,{string, family_name, "所在联盟名名字"}
,{uint64, all_dps, "伤害量"}
,{uint32, face_id, "头像id"}
,{uint32, lev, "等级"}
,{uint32, power, "战力"}
,{uint32, avatar_bid, "头像框基础id"}
]}
]
}
,#rpc{
code = 26711
,log_title = "开学副本基础信息"
,req_desc = "开学副本基础信息"
,req = [
]
,reply_desc = "开学副本基础信息"
,reply = [
{uint8, round, "当前轮次"}
,{uint32, rank, "排行(扩大100倍)"}
,{uint32, count, "捐献数量"}
,{uint8, order, "击败怪物"}
]
}
,#rpc{
code = 26712
,log_title = "购买准考证"
,req_desc = "购买准考证"
,req = [
{uint16, num, "购买数量"}
,{uint8, flag, "标识"}
]
,reply_desc = "购买挑战次数"
,reply = [
{uint8, code, "是否成功"}
,{string, msg, "附加信息"}
,{uint8, flag, "标识"}
]
}
].