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

412 lines
14 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_130).
-export([info/0,cfg/0]).
-include("protocol.hrl").
info() -> {
""
,["formation.hrl", "dungeon.hrl", "combat.hrl"]
}.
cfg() -> [
#rpc{
code = 13000
,log_title = "剧情副本数据"
,req_desc = "剧情副本数据"
,req = []
,reply = [
{uint8, mode, "当前难度"}
,{uint8, chapter_id, "当前章节"}
,{uint32, dun_id, "当前关卡"}
,{uint8, status, "当前关卡状态(1:制作中 2:可挑战 3:已通关)"}
,{uint8, is_first, "是否首次挑战当前关卡"}
,{uint32, cool_time, "当前关卡冷却时间(unixtime)"}
,{uint32, max_dun_id, "最大通关关卡"}
,{uint8, auto_num, "今天扫荡已用次数"}
,{uint8, auto_num_max, "今天扫荡次数上限"}
,{array, tuple, mode_list, "难度关卡列表(1:普通)", [
{uint8, mode, "当前难度"}
,{array, tuple, chapter_list, "章节列表", [
{uint8, chapter_id, "章节ID"}
,{uint8, status, "状态(0:未通关 1:全部通关)"}
,{array, tuple, dun_list, "关卡列表信息(未开始制作不在列表中)", [
{uint32, dun_id, "关卡ID"}
,{uint8, status, "关卡状态(1:制作中 2:可挑战 3:已通关)"}
,{uint32, cool_time, "关卡冷却时间(unixtime)"}
,{uint8, auto_num, "今天已扫荡次数"}
]}
]}
]}
]
}
,#rpc{
code = 13001
,reply_desc = "更新当前关卡信息"
,reply = [
{uint8, mode, "当前难度"}
,{uint8, chapter_id, "当前章节"}
,{uint32, dun_id, "当前关卡"}
,{uint8, status, "当前关卡状态(1:制作中 2:可挑战 3:已通关)"}
,{uint8, is_first, "是否首次挑战当前关卡"}
,{uint32, cool_time, "当前关卡冷却时间(unixtime)"}
,{uint32, max_dun_id, "最大通关关卡"}
]
}
,#rpc{
code = 13002
,log_title = "制作下一关卡"
,req_desc = "制作下一关卡"
,req = [
]
,reply = [
{uint8, code, "结果状态(0:失败 1:成功)"}
,{string, msg, "结果信息"}
]
}
,#rpc{
code = 13003
,log_title = "挑战领主"
,req_desc = "挑战领主"
,req = [
{uint8, is_auto, "是否自动连续作战(0:否 1:是 2:停)"}
]
,reply = [
{uint8, code, "结果状态(0:失败 1:成功)"}
,{string, msg, "结果信息"}
]
}
,#rpc{
code = 13004
,log_title = "快速战斗"
,req_desc = "快速战斗"
,req = [
]
,reply = [
{uint8, code, "结果状态(0:失败 1:成功)"}
,{string, msg, "结果信息"}
]
}
,#rpc{
code = 13005
,log_title = "扫荡关卡"
,req_desc = "扫荡关卡"
,req = [
{uint32, dun_id, "关卡"}
,{uint16, num, "次数"}
]
,reply = [
{uint8, code, "结果状态(0:失败 1:成功)"}
,{string, msg, "结果信息"}
,{uint32, dun_id, "关卡"}
,{uint16, num, "次数"}
,{array, tuple, items, "获得奖励", [
{uint32, bid, "奖励ID"}
,{uint32, num, "数量"}
]}
]
}
,#rpc{
code = 13006
,log_title = "剧情副本常规信息"
,req_desc = "剧情副本常规信息"
,req = []
,reply = [
{uint8, fast_combat_num, "今天快速战斗已用次数"}
,{uint8, fast_combat_max, "今天快速战斗次数上限"}
,{uint8, auto_num, "今天扫荡已用次数"}
,{uint8, auto_num_max, "今天扫荡次数上限"}
,{uint8, is_auto_combat, "是否自动挑战中"}
,{uint16, fast_combat_add_time, "快速战斗增加时间"}
,{uint8, fast_combat_w_num, "今天已用活动快速作战次数"}
,{uint8, fast_combat_p_num, "今天已用特权快速作战次数"}
,{uint8, fast_combat_free_num, "今天快速作战剩余免费次数"}
,{uint8, is_holiday, "是否活动期间"}
]
}
,#rpc{
code = 13007
,reply_desc = "副本挂机奖励"
,reply = [
{uint8, type, "类型(1:离线 2:快速战斗)"}
,{uint32, dun_id, "关卡ID"}
,{uint32, time, "时间"}
,{uint8, old_lev, "前等级"}
,{uint8, new_lev, "新等级"}
,{array, tuple, items, "获得奖励", [
{uint32, bid, "奖励ID"}
,{uint32, num, "数量"}
]}
,{uint32, auto_start_dun_id, "自动战场开始关卡ID(0:表示没有)"}
,{uint32, auto_end_dun_id, "自动战场结束关卡ID"}
,{uint32, fast_add_time1, "快速作战增加时间1"}
,{uint32, fast_add_time2, "快速作战增加时间2"}
,{uint32, old_exp, "原角色经验"}
,{uint32, new_exp, "现在角色经验"}
,{uint32, vip_buff, "vip加成千分比"}
,{uint32, honor_buff, "称号加成千分比"}
]
}
,#rpc{
code = 13008
,log_title = "通关奖励展示"
,req_desc = "通关奖励展示"
,req = []
,reply = [
{array, single, list, "已领奖励列表", [
{uint8, id, "序号"}
]},
{array, single, spe_list, "已领特殊奖励列表", [
{uint8, id, "序号"}
]}
]
}
,#rpc{
code = 13009
,log_title = "领取通关奖励"
,req_desc = "领取通关奖励"
,req = [
{uint8, type, "类型,0-普通,1-特殊奖励"}
,{uint32, id, "序号"}
]
,reply = [
{uint8, code, "结果状态(0:失败 1:成功)"}
,{string, msg, "结果信息"}
,{uint8, type, "类型,0-普通,1-特殊奖励"}
,{uint32, id, "序号"}
]
}
,#rpc{
code = 13010
,reply_desc = "开通下一章节"
,reply = [
{uint32, dun_id, "关卡ID"}
,{uint8, chapter_id, "章节ID"}
]
}
,#rpc{
code = 13011
,log_title = "BUFF信息"
,req_desc = "BUFF信息"
,req = []
,reply = [
{array, tuple, buff_list, "BUFF列表", [
{uint32, bid, "BUFFID"}
,{uint32, end_time, "BUFF结束时间(unixtime)"}
]}
]
}
,#rpc{
code = 13012
,log_title = "请求剧情章节奖励信息"
,req_desc = "请求剧情章节奖励信息"
,req = []
,reply = [
{array, tuple, chapter_list, "奖励信息", [
{uint32, chapter_id, "章节id"}
,{array, tuple, award_list, "奖励信息", [
{uint32, award_id, "奖励id"}
,{uint32, status, "状态(0:不可领取 1:可领取 2:已领取)"}
]}
]}
]
}
,#rpc{
code = 13013
,log_title = "推送剧情章节奖励变更"
,req_desc = "推送剧情章节奖励变更"
,req = []
,reply = [
{array, tuple, chapter_list, "奖励信息", [
{uint32, chapter_id, "章节id"}
,{array, tuple, award_list, "奖励信息", [
{uint32, award_id, "奖励id"}
,{uint32, status, "状态(0:不可领取 1:可领取 2:已领取)"}
]}
]}
]
}
,#rpc{
code = 13014
,log_title = "领取剧情章节奖励"
,req_desc = "领取剧情章节奖励"
,req = [
{uint32, chapter_id, "章节id"}
,{uint32, award_id, "奖励id"}
]
,reply = [
{uint8, code, "结果状态(0:失败 1:成功)"}
,{string, msg, "结果信息"}
,{uint32, chapter_id, "章节id"}
,{uint32, award_id, "奖励id"}
,{uint32, status, "状态(0:不可领取 1:可领取 2:已领取)"}
]
}
,#rpc{
code = 13015
,log_title = "请求副本通关录像"
,req_desc = "请求副本通关录像"
,req = [
{uint32, dun_id, "副本ID"}
]
,reply_desc = "副本通关录像"
,reply = [
{array, dungeon_replay_log, dungeon_replay_log, "录像", [
{uint32, rid, "玩家id"}
,{string, sid, "玩家服务器id"}
,{string, name, "名字"}
,{uint32, face_id, "头像"}
,{uint32, power, "战力"}
,{uint32, time, "通关时间"}
,{uint32, repaly_id, "录像id"}
,{uint8, type, "通关记录类型(1:最少时间 2:最低战力 3:最近通关)"}
,{uint32, face_update_time, "自定义头像时间"}
,{string, face_file, "自定义头像"}
]}
]
}
,#rpc{
code = 13016
,log_title = "剧情副本战斗结果"
,reply_desc = "返回战斗结果"
,reply = [
{uint8, result, "战斗结果 1 胜利 2:失败"}
,{array, tuple, item_rewards, "道具奖励", [
{uint32, bid, "物品bid"}
,{uint8, is_bind, "是不是绑定 1 绑定 0 不绑定"}
,{uint32, num, "个数"}
,{uint32, id, "物品id"}
]}
,{uint16, combat_type, "什么类型的战斗"}
,{uint32, partner_bid, "MVP伙伴基本ID"}
,{uint32, partner_hurt, "MVP伙伴伤害输出"}
,{uint32, partner_total_hurt, "伙伴总伤害输出"}
,{uint8, lev, "角色等级"}
,{uint32, exp, "角色经验"}
,{uint8, new_lev, "现在角色等级"}
,{uint32, new_exp, "现在角色经验"}
,{uint16, auto_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, "英雄承受伤害"}
]}
]}
,{uint32, use_skin, "MVP伙伴使用的皮肤"}
]
}
,#rpc{
code = 13017
,log_title = "累计挂机信息"
,req_desc = "累计挂机信息"
,req = []
,reply = [
{uint32, hook_time, "累计时间"}
,{array, tuple, list, "累计奖励", [
{uint32, bid, "奖励道具bid"}
,{uint32, num, "奖励道具数量"}
]}
,{array, tuple, list1, "暴击奖励", [
{uint32, bid, "奖励道具bid"}
,{uint32, num, "奖励道具数量"}
]}
]
}
,#rpc{
code = 13018
,log_title = "领取挂机奖励"
,req_desc = "领取挂机奖励"
,req = []
,reply = [
{uint8, code, "结果状态(0:失败 1:成功)"}
,{string, msg, "结果信息"}
]
}
,#rpc{
code = 13019
,log_title = "挂机奖励通知"
,req_desc = "挂机奖励通知"
,req = []
,reply = [
]
}
,#rpc{
code = 13020
,log_title = "获取推图超越全服玩家百分比"
,req_desc = "获取推图超越全服玩家百分比(数据扩大了1000)"
,req = []
,reply = [
{uint32, val, "超越全服玩家百分比(数据扩大了1000)"}
]
}
,#rpc{
code = 13030
,log_title = "材料副本信息"
,req_desc = "材料副本信息"
,req = [
]
,reply = [
{array, tuple, list, "材料副本列表信息", [
{uint32, type, "副本类型"}
,{uint8, day_num, "今天已挑战/扫荡次数"}
]}
,{array, single, pass_list, "已通关的副本Id", [
{uint32, id, "副本ID"}
]}
]
}
,#rpc{
code = 13031
,log_title = "挑战材料副本"
,req_desc = "挑战材料副本"
,req = [
{uint32, id, "序号"}
]
,reply = [
{uint8, code, "结果状态(0:失败 1:成功)"}
,{string, msg, "结果信息"}
]
}
,#rpc{
code = 13032
,log_title = "扫荡材料副本"
,req_desc = "扫荡材料副本"
,req = [
{uint32, id, "序号"}
,{uint32, num, "扫荡次数"}
]
,reply = [
{uint8, code, "结果状态(0:失败 1:成功)"}
,{string, msg, "结果信息"}
,{uint32, id, "序号"}
]
}
,#rpc{
code = 13033
,log_title = "客户端通知结束"
,req_desc = "客户端通知结束"
,req = [
{uint32, dun_id, "关卡"}
]
,reply = []
}
].